[gnome-boxes] util: Remove unused Cancellable arg of run_in_thread
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] util: Remove unused Cancellable arg of run_in_thread
- Date: Tue, 4 Mar 2014 20:47:35 +0000 (UTC)
commit b271ea8c0693d572fb1eb75f8bc6442462276426
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Tue Mar 4 20:36:50 2014 +0000
util: Remove unused Cancellable arg of run_in_thread
Its not used so it only gives false hope to callers. If caller needs
cancellable, they can act on it on their own when in the passed
callback.
src/util.vala | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/util.vala b/src/util.vala
index a5efd92..4270ffc 100644
--- a/src/util.vala
+++ b/src/util.vala
@@ -188,7 +188,7 @@ namespace Boxes {
}
public delegate void RunInThreadFunc () throws GLib.Error;
- public async void run_in_thread (owned RunInThreadFunc func, Cancellable? cancellable = null) 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, () => {
@@ -220,7 +220,7 @@ namespace Boxes {
yield run_in_thread (() => {
exec_sync (argv_copy, out std_output, out std_error);
- }, cancellable);
+ });
standard_output = std_output;
standard_error = std_error;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]