summaryrefslogtreecommitdiff
path: root/libgupnp/gupnp-context-manager.c
diff options
context:
space:
mode:
authorJens Georg <mail@jensge.org>2016-09-30 13:43:21 +0200
committerJens Georg <mail@jensge.org>2016-10-15 21:08:10 +0200
commit997e950e592956ade2a6e9028830af358361a4c5 (patch)
tree156e8feeacfb26ef5d69a1d2f193567763dfa6c3 /libgupnp/gupnp-context-manager.c
parent228cebc15651f9e6720dcb5271d2a5feaf8efd6e (diff)
downloadgupnp-997e950e592956ade2a6e9028830af358361a4c5.tar.gz
Remove deprecated functions
Signed-off-by: Jens Georg <mail@jensge.org>
Diffstat (limited to 'libgupnp/gupnp-context-manager.c')
-rw-r--r--libgupnp/gupnp-context-manager.c61
1 files changed, 0 insertions, 61 deletions
diff --git a/libgupnp/gupnp-context-manager.c b/libgupnp/gupnp-context-manager.c
index 76915d9..2ac4388 100644
--- a/libgupnp/gupnp-context-manager.c
+++ b/libgupnp/gupnp-context-manager.c
@@ -75,7 +75,6 @@ struct _GUPnPContextManagerPrivate {
enum {
PROP_0,
- PROP_MAIN_CONTEXT,
PROP_PORT,
PROP_WHITE_LIST
};
@@ -313,13 +312,6 @@ gupnp_context_manager_set_property (GObject *object,
case PROP_PORT:
priv->port = g_value_get_uint (value);
break;
- case PROP_MAIN_CONTEXT:
- if (g_value_get_pointer (value) != NULL)
- g_warning ("GUPnPContextManager:main-context is "
- "deprecated. Use "
- "g_main_context_push_thread_default()"
- "instead.");
- break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
break;
@@ -340,13 +332,6 @@ gupnp_context_manager_get_property (GObject *object,
case PROP_PORT:
g_value_set_uint (value, manager->priv->port);
break;
- case PROP_MAIN_CONTEXT:
- g_warning ("GUPnPContextManager:main-context is deprecated. "
- "Use g_main_context_push_thread_default()"
- "instead.");
- g_value_set_pointer (value,
- g_main_context_get_thread_default ());
- break;
case PROP_WHITE_LIST:
g_value_set_object (value, manager->priv->white_list);
break;
@@ -403,27 +388,6 @@ gupnp_context_manager_class_init (GUPnPContextManagerClass *klass)
g_type_class_add_private (klass, sizeof (GUPnPContextManagerPrivate));
/**
- * GSSDPClient:main-context:
- *
- * The #GMainContext to pass to created #GUPnPContext objects. Set to
- * NULL to use the default.
- *
- * Deprecated: 0.17.2: Use g_main_context_push_thread_default()
- * instead.
- **/
- g_object_class_install_property
- (object_class,
- PROP_MAIN_CONTEXT,
- g_param_spec_pointer
- ("main-context",
- "Main context",
- "GMainContext to pass to created GUPnPContext"
- " objects",
- G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY |
- G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK |
- G_PARAM_STATIC_BLURB));
-
- /**
* GUPnPContextManager:port:
*
* Port the contexts listen on, or 0 if you don't care what
@@ -499,31 +463,6 @@ gupnp_context_manager_class_init (GUPnPContextManagerClass *klass)
GUPNP_TYPE_CONTEXT);
}
-/**
- * gupnp_context_manager_new:
- * @main_context: (allow-none): Deprecated: 0.17.2: %NULL. If you want to use
- * a different main context use
- * g_main_context_push_thread_default() instead.
- * @port: Port to create contexts for, or 0 if you don't care what port is used.
- *
- * Same as gupnp_context_manager_create().
- *
- * Returns: (transfer full): A new #GUPnPContextManager object.
- * Since: 0.13.0
- * Deprecated: 0.17.2: Use gupnp_context_manager_create().
- **/
-GUPnPContextManager *
-gupnp_context_manager_new (GMainContext *main_context,
- guint port)
-{
- if (main_context)
- g_warning ("gupnp_context_manager_new::main_context is"
- " deprecated. Use "
- " g_main_context_push_thread_default() instead");
-
- return gupnp_context_manager_create (port);
-}
-
#ifdef HAVE_LINUX_RTNETLINK_H
#include "gupnp-linux-context-manager.h"
#endif