[gnome-builder] gdb: remove sync variant of exec



commit 6090b324c1f0d4af81ddbffeff217e8662ae4196
Author: Christian Hergert <chergert redhat com>
Date:   Fri Sep 1 23:10:35 2017 -0700

    gdb: remove sync variant of exec
    
    This didn't get used, so we might as well just remove it.
    
    Fixes CID 175139

 plugins/gdb/gbp-gdb-debugger.c |   55 ----------------------------------------
 plugins/gdb/gbp-gdb-debugger.h |    5 ---
 2 files changed, 0 insertions(+), 60 deletions(-)
---
diff --git a/plugins/gdb/gbp-gdb-debugger.c b/plugins/gdb/gbp-gdb-debugger.c
index 79fdb95..05e701e 100644
--- a/plugins/gdb/gbp-gdb-debugger.c
+++ b/plugins/gdb/gbp-gdb-debugger.c
@@ -2609,61 +2609,6 @@ gbp_gdb_debugger_check_ready (GbpGdbDebugger  *self,
 }
 
 static void
-gbp_gdb_debugger_exec_cb (GObject      *object,
-                          GAsyncResult *result,
-                          gpointer      user_data)
-{
-  GbpGdbDebugger *self = (GbpGdbDebugger *)object;
-  SyncHandle *sync_handle = user_data;
-
-  g_assert (GBP_IS_GDB_DEBUGGER (self));
-  g_assert (G_IS_ASYNC_RESULT (result));
-  g_assert (sync_handle != NULL);
-
-  sync_handle->output = gbp_gdb_debugger_exec_finish (self, result, sync_handle->error);
-  sync_handle->completed = TRUE;
-
-  g_assert (sync_handle->output != NULL || *sync_handle->error != NULL);
-
-  g_main_context_wakeup (sync_handle->context);
-}
-
-struct gdbwire_mi_output *
-gbp_gdb_debugger_exec (GbpGdbDebugger     *self,
-                       IdeDebuggerThread  *thread,
-                       const gchar        *command,
-                       GCancellable       *cancellable,
-                       GError            **error)
-{
-  SyncHandle sync_handle;
-
-  g_return_val_if_fail (GBP_IS_GDB_DEBUGGER (self), NULL);
-  g_return_val_if_fail (command != NULL, NULL);
-  g_return_val_if_fail (!thread || IDE_IS_DEBUGGER_THREAD (thread), NULL);
-  g_return_val_if_fail (!cancellable || G_IS_CANCELLABLE (cancellable), NULL);
-
-  sync_handle.context = g_main_context_ref_thread_default ();
-  sync_handle.error = error;
-  sync_handle.output = NULL;
-  sync_handle.completed = FALSE;
-
-  gbp_gdb_debugger_exec_async (self,
-                               thread,
-                               command,
-                               cancellable,
-                               gbp_gdb_debugger_exec_cb,
-                               &sync_handle);
-
-  while (!sync_handle.completed)
-    g_main_context_iteration (sync_handle.context, TRUE);
-  g_main_context_unref (sync_handle.context);
-
-  g_assert (sync_handle.output != NULL || *sync_handle.error != NULL);
-
-  return sync_handle.output;
-}
-
-static void
 gbp_gdb_debugger_write_cb (GObject      *object,
                            GAsyncResult *result,
                            gpointer      user_data)
diff --git a/plugins/gdb/gbp-gdb-debugger.h b/plugins/gdb/gbp-gdb-debugger.h
index feadd41..a8259a8 100644
--- a/plugins/gdb/gbp-gdb-debugger.h
+++ b/plugins/gdb/gbp-gdb-debugger.h
@@ -32,11 +32,6 @@ GbpGdbDebugger           *gbp_gdb_debugger_new                (void);
 void                      gbp_gdb_debugger_connect            (GbpGdbDebugger       *self,
                                                                GIOStream            *io_stream,
                                                                GCancellable         *cancellable);
-struct gdbwire_mi_output *gbp_gdb_debugger_exec               (GbpGdbDebugger       *self,
-                                                               IdeDebuggerThread    *thread,
-                                                               const gchar          *command,
-                                                               GCancellable         *cancellable,
-                                                               GError              **error);
 void                      gbp_gdb_debugger_exec_async         (GbpGdbDebugger       *self,
                                                                IdeDebuggerThread    *thread,
                                                                const gchar          *command,


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