summaryrefslogtreecommitdiff
path: root/libpeas
diff options
context:
space:
mode:
authorChristian Hergert <chergert@redhat.com>2023-03-16 16:10:13 -0700
committerChristian Hergert <chergert@redhat.com>2023-03-22 16:44:35 -0700
commit091d591334094d0842b2ab5085ea30f45e8c4a5c (patch)
treef53e1c005bd51599ea550237d334bb51d2d4eb33 /libpeas
parent6ec3df8841c092cd1de097bbd768a0a8ea1dbfd3 (diff)
downloadlibpeas-091d591334094d0842b2ab5085ea30f45e8c4a5c.tar.gz
libpeas: remove peas_extension_set_call()
This is a long-deprecated feature that does not need to come along into the libpeas-2 world.
Diffstat (limited to 'libpeas')
-rw-r--r--libpeas/peas-extension-set.c122
-rw-r--r--libpeas/peas-extension-set.h28
2 files changed, 0 insertions, 150 deletions
diff --git a/libpeas/peas-extension-set.c b/libpeas/peas-extension-set.c
index 6625714..4af49fa 100644
--- a/libpeas/peas-extension-set.c
+++ b/libpeas/peas-extension-set.c
@@ -332,25 +332,6 @@ peas_extension_set_dispose (GObject *object)
G_OBJECT_CLASS (peas_extension_set_parent_class)->dispose (object);
}
-static gboolean
-peas_extension_set_call_real (PeasExtensionSet *set,
- const gchar *method_name,
- GIArgument *args)
-{
- PeasExtensionSetPrivate *priv = GET_PRIV (set);
- gboolean ret = TRUE;
- GList *l;
- GIArgument dummy;
-
- for (l = priv->extensions.head; l != NULL; l = l->next)
- {
- ExtensionItem *item = (ExtensionItem *) l->data;
- ret = peas_extension_callv (item->exten, method_name, args, &dummy) && ret;
- }
-
- return ret;
-}
-
static void
peas_extension_set_class_init (PeasExtensionSetClass *klass)
{
@@ -362,8 +343,6 @@ peas_extension_set_class_init (PeasExtensionSetClass *klass)
object_class->constructed = peas_extension_set_constructed;
object_class->dispose = peas_extension_set_dispose;
- klass->call = peas_extension_set_call_real;
-
/**
* PeasExtensionSet::extension-added:
* @set: A #PeasExtensionSet.
@@ -483,107 +462,6 @@ peas_extension_set_get_extension (PeasExtensionSet *set,
}
/**
- * peas_extension_set_call: (skip)
- * @set: A #PeasExtensionSet.
- * @method_name: the name of the method that should be called.
- * @...: arguments for the method.
- *
- * Call a method on all the [alias@Extension] instances contained in @set.
- *
- * Deprecated: 1.2: Use [method@ExtensionSet.foreach] instead.
- *
- * Returns: %TRUE on successful call.
- */
-gboolean
-peas_extension_set_call (PeasExtensionSet *set,
- const gchar *method_name,
- ...)
-{
- va_list args;
- gboolean result;
-
- g_return_val_if_fail (PEAS_IS_EXTENSION_SET (set), FALSE);
- g_return_val_if_fail (method_name != NULL, FALSE);
-
- va_start (args, method_name);
- result = peas_extension_set_call_valist (set, method_name, args);
- va_end (args);
-
- return result;
-}
-
-/**
- * peas_extension_set_call_valist: (skip)
- * @set: A #PeasExtensionSet.
- * @method_name: the name of the method that should be called.
- * @va_args: the arguments for the method.
- *
- * Call a method on all the [alias@Extension] instances contained in @set.
- *
- * Deprecated: 1.2: Use [class@ExtensionSet.foreach] instead.
- *
- * Returns: %TRUE on successful call.
- */
-gboolean
-peas_extension_set_call_valist (PeasExtensionSet *set,
- const gchar *method_name,
- va_list va_args)
-{
- PeasExtensionSetPrivate *priv = GET_PRIV (set);
- GICallableInfo *callable_info;
- GIArgument *args;
- gint n_args;
-
- g_return_val_if_fail (PEAS_IS_EXTENSION_SET (set), FALSE);
- g_return_val_if_fail (method_name != NULL, FALSE);
-
- callable_info = peas_gi_get_method_info (priv->exten_type, method_name);
-
- if (callable_info == NULL)
- {
- g_warning ("Method '%s.%s' was not found",
- g_type_name (priv->exten_type), method_name);
- return FALSE;
- }
-
- n_args = g_callable_info_get_n_args (callable_info);
- g_return_val_if_fail (n_args >= 0, FALSE);
-
- args = g_newa (GIArgument, n_args);
- peas_gi_valist_to_arguments (callable_info, va_args, args, NULL);
-
- g_base_info_unref ((GIBaseInfo *) callable_info);
-
- return peas_extension_set_callv (set, method_name, args);
-}
-
-/**
- * peas_extension_set_callv: (skip)
- * @set: A #PeasExtensionSet.
- * @method_name: the name of the method that should be called.
- * @args: the arguments for the method.
- *
- * Call a method on all the [alias@Extension] instances contained in @set.
- *
- * Returns: %TRUE on successful call.
- *
- * Deprecated: 1.2: Use [method@ExtensionSet.foreach] instead.
- */
-gboolean
-peas_extension_set_callv (PeasExtensionSet *set,
- const gchar *method_name,
- GIArgument *args)
-{
- PeasExtensionSetClass *klass;
-
- g_return_val_if_fail (PEAS_IS_EXTENSION_SET (set), FALSE);
- g_return_val_if_fail (method_name != NULL, FALSE);
-
- klass = PEAS_EXTENSION_SET_GET_CLASS (set);
- return klass->call (set, method_name, args);
-}
-
-/**
* peas_extension_set_foreach:
* @set: A #PeasExtensionSet.
* @func: (scope call): A function call for each extension.
diff --git a/libpeas/peas-extension-set.h b/libpeas/peas-extension-set.h
index 5f83851..ae9a04f 100644
--- a/libpeas/peas-extension-set.h
+++ b/libpeas/peas-extension-set.h
@@ -58,7 +58,6 @@ struct _PeasExtensionSet {
/**
* PeasExtensionSetClass:
* @parent_class: The parent class.
- * @call: The VFunc for peas_extension_set_call().
* @extension_added: Signal class handler for the
* #PeasExtensionSet::extension-added signal.
* @extension_removed: Signal class handler for the
@@ -69,16 +68,6 @@ struct _PeasExtensionSet {
struct _PeasExtensionSetClass {
GObjectClass parent_class;
- /* Virtual public methods */
-#ifndef PEAS_DISABLE_DEPRECATED
- gboolean (*call) (PeasExtensionSet *set,
- const gchar *method_name,
- GIArgument *args);
-#else
- /*< private >*/
- gpointer __DEPRECATED_call;
-#endif
-
/*< public >*/
/* Signals */
void (*extension_added) (PeasExtensionSet *set,
@@ -115,23 +104,6 @@ typedef void (*PeasExtensionSetForeachFunc) (PeasExtensionSet *set,
PEAS_AVAILABLE_IN_ALL
GType peas_extension_set_get_type (void) G_GNUC_CONST;
-#ifndef __GI_SCANNER__
-#ifndef PEAS_DISABLE_DEPRECATED
-PEAS_AVAILABLE_IN_ALL
-gboolean peas_extension_set_call (PeasExtensionSet *set,
- const gchar *method_name,
- ...);
-PEAS_AVAILABLE_IN_ALL
-gboolean peas_extension_set_call_valist (PeasExtensionSet *set,
- const gchar *method_name,
- va_list va_args);
-PEAS_AVAILABLE_IN_ALL
-gboolean peas_extension_set_callv (PeasExtensionSet *set,
- const gchar *method_name,
- GIArgument *args);
-#endif
-#endif
-
PEAS_AVAILABLE_IN_ALL
void peas_extension_set_foreach (PeasExtensionSet *set,
PeasExtensionSetForeachFunc func,