From 37d3c56d422e679e2d07bdab5439cd2707edc4f7 Mon Sep 17 00:00:00 2001 From: George Kiagiadakis <george.kiagiadakis@collabora.com> Date: Wed, 18 Mar 2020 18:29:04 +0200 Subject: [PATCH] session-item: remove get_config_spec, in favor of using WpSiFactory --- lib/wp/session-item.c | 29 ----------------------------- lib/wp/session-item.h | 5 ----- 2 files changed, 34 deletions(-) diff --git a/lib/wp/session-item.c b/lib/wp/session-item.c index 623de048..cfe52910 100644 --- a/lib/wp/session-item.c +++ b/lib/wp/session-item.c @@ -180,35 +180,6 @@ wp_session_item_clear_flag (WpSessionItem * self, WpSiFlags flag) } } -/** - * wp_session_item_get_config_spec: (virtual get_config_spec) - * @self: the session item - * - * Constructs and returns a description of all the configuration options - * that this item has. Configuration options are a way for items to accept - * input from external sources that affects their behavior, or to provide - * output for other items to consume as their configuration. - * - * The returned GVariant has the a(ssymv) type. This is an array of tuples, - * where each tuple has the following values, in order: - * * s (string): the name of the option - * * s (string): a GVariant type string, describing the type of the data - * * y (byte): a combination of #WpSiConfigOptionFlags - * * mv (optional variant): optionally, an additional variant - * This is provided to allow extensions. - * - * Returns: (transfer floating): the configuration description - */ -GVariant * -wp_session_item_get_config_spec (WpSessionItem * self) -{ - g_return_val_if_fail (WP_IS_SESSION_ITEM (self), NULL); - g_return_val_if_fail (WP_SESSION_ITEM_GET_CLASS (self)->get_config_spec, - NULL); - - return WP_SESSION_ITEM_GET_CLASS (self)->get_config_spec (self); -} - /** * wp_session_item_configure: (virtual configure) * @self: the session item diff --git a/lib/wp/session-item.h b/lib/wp/session-item.h index e7da76df..9cf24d15 100644 --- a/lib/wp/session-item.h +++ b/lib/wp/session-item.h @@ -63,7 +63,6 @@ typedef enum { /** * WpSessionItemClass: - * @get_config_spec: See wp_session_item_get_config_spec() * @configure: See wp_session_item_configure() * @get_configuration: See wp_session_item_get_configuration() * @get_next_step: Implements #WpTransitionClass.get_next_step() for the @@ -76,7 +75,6 @@ struct _WpSessionItemClass { GObjectClass parent_class; - GVariant * (*get_config_spec) (WpSessionItem * self); gboolean (*configure) (WpSessionItem * self, GVariant * args); GVariant * (*get_configuration) (WpSessionItem * self); @@ -104,9 +102,6 @@ void wp_session_item_clear_flag (WpSessionItem * self, WpSiFlags flag); /* configuration */ -WP_API -GVariant * wp_session_item_get_config_spec (WpSessionItem * self); - WP_API gboolean wp_session_item_configure (WpSessionItem * self, GVariant * args); -- GitLab