[gnome-boxes/gnome-3-20] util: Drop now redundant run_in_thread()



commit b6cb29d74c706673e780a267584116c5f1811a92
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Wed Mar 23 12:57:31 2016 +0000

    util: Drop now redundant run_in_thread()
    
    https://bugzilla.gnome.org/show_bug.cgi?id=761479

 src/util.vala |   22 ----------------------
 1 files changed, 0 insertions(+), 22 deletions(-)
---
diff --git a/src/util.vala b/src/util.vala
index 2906d70..a12cd67 100644
--- a/src/util.vala
+++ b/src/util.vala
@@ -221,28 +221,6 @@ namespace Boxes {
         }
     }
 
-    public delegate void RunInThreadFunc () throws  GLib.Error;
-    public async void run_in_thread (owned RunInThreadFunc func) throws GLib.Error {
-        GLib.Error e = null;
-        GLib.SourceFunc resume = run_in_thread.callback;
-        new GLib.Thread<void*> (null, () => {
-            try {
-                func ();
-            } catch (GLib.Error err) {
-                e = err;
-            }
-
-            Idle.add ((owned) resume);
-
-            return null;
-        });
-
-        yield;
-
-        if (e != null)
-            throw e;
-    }
-
     public async void exec (string[] argv,
                             Cancellable? cancellable,
                             out string? standard_output = null,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]