[gnome-builder/wip/gtk4-port: 1694/1774] libide/foundry: remove IdeRunner
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/gtk4-port: 1694/1774] libide/foundry: remove IdeRunner
- Date: Mon, 11 Jul 2022 22:31:54 +0000 (UTC)
commit 525871ea9e665e9fa2303c03ac46b13b5453089f
Author: Christian Hergert <chergert redhat com>
Date: Tue Jun 28 04:03:04 2022 -0700
libide/foundry: remove IdeRunner
This is no longer necessary now that we have IdeRunCommand and
IdeRunContext.
src/libide/foundry/ide-foundry-types.h | 2 -
src/libide/foundry/ide-runner-addin.c | 148 ----
src/libide/foundry/ide-runner-addin.h | 87 --
src/libide/foundry/ide-runner.c | 1454 --------------------------------
src/libide/foundry/ide-runner.h | 151 ----
src/libide/foundry/ide-runtime.c | 26 -
src/libide/foundry/ide-runtime.h | 5 -
src/libide/foundry/libide-foundry.h | 2 -
src/libide/foundry/meson.build | 4 -
9 files changed, 1879 deletions(-)
---
diff --git a/src/libide/foundry/ide-foundry-types.h b/src/libide/foundry/ide-foundry-types.h
index b9b7db06d..77c31e874 100644
--- a/src/libide/foundry/ide-foundry-types.h
+++ b/src/libide/foundry/ide-foundry-types.h
@@ -55,8 +55,6 @@ typedef struct _IdeRunContext IdeRunContext;
typedef struct _IdeRunCommand IdeRunCommand;
typedef struct _IdeRunCommandProvider IdeRunCommandProvider;
typedef struct _IdeRunManager IdeRunManager;
-typedef struct _IdeRunner IdeRunner;
-typedef struct _IdeRunnerAddin IdeRunnerAddin;
typedef struct _IdeRuntime IdeRuntime;
typedef struct _IdeRuntimeManager IdeRuntimeManager;
typedef struct _IdeRuntimeProvider IdeRuntimeProvider;
diff --git a/src/libide/foundry/ide-runtime.c b/src/libide/foundry/ide-runtime.c
index 2e4b70fdb..5c87eb15f 100644
--- a/src/libide/foundry/ide-runtime.c
+++ b/src/libide/foundry/ide-runtime.c
@@ -39,7 +39,6 @@
#include "ide-pipeline.h"
#include "ide-run-context.h"
#include "ide-runtime.h"
-#include "ide-runner.h"
#include "ide-toolchain.h"
#include "ide-triplet.h"
@@ -582,31 +581,6 @@ ide_runtime_prepare_configuration (IdeRuntime *self,
IDE_RUNTIME_GET_CLASS (self)->prepare_configuration (self, configuration);
}
-/**
- * ide_runtime_create_runner:
- * @self: An #IdeRuntime
- * @build_target: (nullable): An #IdeBuildTarget or %NULL
- *
- * Creates a new runner that can be used to execute the build target within
- * the runtime. This should be used to implement such features as "run target"
- * or "run unit test" inside the target runtime.
- *
- * If @build_target is %NULL, the runtime should create a runner that allows
- * the caller to specify the binary using the #IdeRunner API.
- *
- * Returns: (transfer full) (nullable): An #IdeRunner if successful, otherwise
- * %NULL and @error is set.
- */
-IdeRunner *
-ide_runtime_create_runner (IdeRuntime *self,
- IdeBuildTarget *build_target)
-{
- g_return_val_if_fail (IDE_IS_RUNTIME (self), NULL);
- g_return_val_if_fail (!build_target || IDE_IS_BUILD_TARGET (build_target), NULL);
-
- return IDE_RUNTIME_GET_CLASS (self)->create_runner (self, build_target);
-}
-
GQuark
ide_runtime_error_quark (void)
{
diff --git a/src/libide/foundry/ide-runtime.h b/src/libide/foundry/ide-runtime.h
index 5cd87d644..8c1b274a8 100644
--- a/src/libide/foundry/ide-runtime.h
+++ b/src/libide/foundry/ide-runtime.h
@@ -62,8 +62,6 @@ struct _IdeRuntimeClass
void (*prepare_to_build) (IdeRuntime *self,
IdePipeline *pipeline,
IdeRunContext *run_context);
- IdeRunner *(*create_runner) (IdeRuntime *self,
- IdeBuildTarget *build_target);
GFile *(*translate_file) (IdeRuntime *self,
GFile *file);
gchar **(*get_system_include_dirs) (IdeRuntime *self);
@@ -93,9 +91,6 @@ void ide_runtime_prepare_to_build (IdeRuntime *s
IdePipeline *pipeline,
IdeRunContext *run_context);
IDE_AVAILABLE_IN_ALL
-IdeRunner *ide_runtime_create_runner (IdeRuntime *self,
- IdeBuildTarget *build_target);
-IDE_AVAILABLE_IN_ALL
void ide_runtime_prepare_configuration (IdeRuntime *self,
IdeConfig *configuration);
IDE_AVAILABLE_IN_ALL
diff --git a/src/libide/foundry/libide-foundry.h b/src/libide/foundry/libide-foundry.h
index 1e33862c1..5a2066856 100644
--- a/src/libide/foundry/libide-foundry.h
+++ b/src/libide/foundry/libide-foundry.h
@@ -60,8 +60,6 @@ G_BEGIN_DECLS
#include "ide-run-context.h"
#include "ide-run-manager.h"
#include "ide-run-tool.h"
-#include "ide-runner-addin.h"
-#include "ide-runner.h"
#include "ide-runtime-manager.h"
#include "ide-runtime-provider.h"
#include "ide-runtime.h"
diff --git a/src/libide/foundry/meson.build b/src/libide/foundry/meson.build
index c16abb462..9b3e529d3 100644
--- a/src/libide/foundry/meson.build
+++ b/src/libide/foundry/meson.build
@@ -45,8 +45,6 @@ libide_foundry_public_headers = [
'ide-run-context.h',
'ide-run-manager.h',
'ide-run-tool.h',
- 'ide-runner-addin.h',
- 'ide-runner.h',
'ide-runtime-manager.h',
'ide-runtime-provider.h',
'ide-runtime.h',
@@ -127,8 +125,6 @@ libide_foundry_public_sources = [
'ide-run-context.c',
'ide-run-manager.c',
'ide-run-tool.c',
- 'ide-runner-addin.c',
- 'ide-runner.c',
'ide-runtime-manager.c',
'ide-runtime-provider.c',
'ide-runtime.c',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]