summaryrefslogtreecommitdiff
path: root/adw/src/helpers/async_callback.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'adw/src/helpers/async_callback.cpp')
-rw-r--r--adw/src/helpers/async_callback.cpp34
1 files changed, 0 insertions, 34 deletions
diff --git a/adw/src/helpers/async_callback.cpp b/adw/src/helpers/async_callback.cpp
deleted file mode 100644
index f8a8b27..0000000
--- a/adw/src/helpers/async_callback.cpp
+++ /dev/null
@@ -1,34 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#include "adwaitamm/helpers/async_callback.hpp"
-
-#include <glibmm/exceptionhandler.h>
-#include <glibmm/object.h>
-
-#include <giomm/asyncresult.h>
-
-#include <memory>
-
-namespace Adwaita::helpers
-{
-
- auto async_callback(GObject *, GAsyncResult * result, void * data) noexcept -> void
- {
- auto slot = std::unique_ptr<Gio::SlotAsyncReady>(static_cast<Gio::SlotAsyncReady *>(data));
-
- try
- {
- auto actual_result = Glib::wrap(result, true);
- (*slot)(actual_result);
- }
- catch (...)
- {
- Glib::exception_handlers_invoke();
- }
- }
-
-} // namespace Adwaita::helpers \ No newline at end of file