[gnome-builder/wip/gtk4-port: 1669/1774] libide/foundry: remove unused code
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/gtk4-port: 1669/1774] libide/foundry: remove unused code
- Date: Mon, 11 Jul 2022 22:31:53 +0000 (UTC)
commit e05930aeb7a0613ce3483515199188a321eaf19c
Author: Christian Hergert <chergert redhat com>
Date: Mon Jun 27 13:43:30 2022 -0700
libide/foundry: remove unused code
We went in another direction using run contexts, so just remove this.
src/libide/foundry/ide-run-command.c | 54 -----------------------------
src/libide/foundry/ide-run-command.h | 6 ----
src/plugins/meson/gbp-meson-run-command.c | 56 -------------------------------
src/plugins/meson/gbp-meson-run-command.h | 31 -----------------
src/plugins/meson/meson.build | 1 -
5 files changed, 148 deletions(-)
---
diff --git a/src/libide/foundry/ide-run-command.c b/src/libide/foundry/ide-run-command.c
index 875f793b6..0ae301706 100644
--- a/src/libide/foundry/ide-run-command.c
+++ b/src/libide/foundry/ide-run-command.c
@@ -54,32 +54,6 @@ G_DEFINE_TYPE_WITH_PRIVATE (IdeRunCommand, ide_run_command, G_TYPE_OBJECT)
static GParamSpec *properties [N_PROPS];
-static char **
-ide_run_command_real_get_arguments (IdeRunCommand *self,
- const char * const *wrapper)
-{
- IdeRunCommandPrivate *priv = ide_run_command_get_instance_private (self);
- GPtrArray *ar;
-
- g_assert (IDE_IS_RUN_COMMAND (self));
-
- if (wrapper == NULL || wrapper[0] == NULL)
- return g_strdupv (priv->argv);
-
- ar = g_ptr_array_new ();
- for (guint i = 0; wrapper[i]; i++)
- g_ptr_array_add (ar, g_strdup (wrapper[i]));
- if (priv->argv != NULL)
- {
- for (guint i = 0; priv->argv[i]; i++)
- g_ptr_array_add (ar, g_strdup (priv->argv[i]));
- }
-
- g_ptr_array_add (ar, NULL);
-
- return (char **)g_ptr_array_free (ar, FALSE);
-}
-
static void
ide_run_command_finalize (GObject *object)
{
@@ -199,8 +173,6 @@ ide_run_command_class_init (IdeRunCommandClass *klass)
object_class->get_property = ide_run_command_get_property;
object_class->set_property = ide_run_command_set_property;
- klass->get_arguments = ide_run_command_real_get_arguments;
-
properties [PROP_ARGV] =
g_param_spec_boxed ("argv", NULL, NULL,
G_TYPE_STRV,
@@ -421,32 +393,6 @@ ide_run_command_set_priority (IdeRunCommand *self,
}
}
-/**
- * ide_run_command_get_arguments:
- * @self: a #IdeRunCommand
- * @wrapper: (nullable) (array zero-terminated=1): optional wrapper
- * argument vector for the command, such as "gdb" or "valgrind"
- *
- * Creates an argument vector for the command which contains the
- * wrapper program inserted into the correct position to control
- * the target run command.
- *
- * Some command providers may use this to place @wrapper inside
- * an argument to another program such as
- * "meson test --wrapper='shell command'".
- *
- * Returns: (transfer full) (array zero-terminated=1) (element-type utf8): A
- * %NULL-terminated array containing the arguments to execute the program.
- */
-char **
-ide_run_command_get_arguments (IdeRunCommand *self,
- const char * const *wrapper)
-{
- g_return_val_if_fail (IDE_IS_RUN_COMMAND (self), NULL);
-
- return IDE_RUN_COMMAND_GET_CLASS (self)->get_arguments (self, wrapper);
-}
-
IdeRunCommandKind
ide_run_command_get_kind (IdeRunCommand *self)
{
diff --git a/src/libide/foundry/ide-run-command.h b/src/libide/foundry/ide-run-command.h
index 2d3f81cd6..8e711be14 100644
--- a/src/libide/foundry/ide-run-command.h
+++ b/src/libide/foundry/ide-run-command.h
@@ -46,9 +46,6 @@ G_DECLARE_DERIVABLE_TYPE (IdeRunCommand, ide_run_command, IDE, RUN_COMMAND, GObj
struct _IdeRunCommandClass
{
GObjectClass parent_class;
-
- char **(*get_arguments) (IdeRunCommand *self,
- const char * const *wrapper);
};
IDE_AVAILABLE_IN_ALL
@@ -84,9 +81,6 @@ IDE_AVAILABLE_IN_ALL
void ide_run_command_set_priority (IdeRunCommand *self,
int priority);
IDE_AVAILABLE_IN_ALL
-char **ide_run_command_get_arguments (IdeRunCommand *self,
- const char * const *wrapper);
-IDE_AVAILABLE_IN_ALL
IdeRunCommandKind ide_run_command_get_kind (IdeRunCommand *self);
IDE_AVAILABLE_IN_ALL
void ide_run_command_set_kind (IdeRunCommand *self,
diff --git a/src/plugins/meson/meson.build b/src/plugins/meson/meson.build
index 92ef1b935..3c1e0f8df 100644
--- a/src/plugins/meson/meson.build
+++ b/src/plugins/meson/meson.build
@@ -8,7 +8,6 @@ plugins_sources += files([
'gbp-meson-build-target.c',
'gbp-meson-introspection.c',
'gbp-meson-pipeline-addin.c',
- 'gbp-meson-run-command.c',
'gbp-meson-run-command-provider.c',
'gbp-meson-test-provider.c',
'gbp-meson-test.c',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]