[gupnp/gupnp-0.18: 9/12] cleanup code from dead assignments



commit 826c7a929e7922342fef1db7a61d8f2c3fdb49d4
Author: Lukasz Pawlik <lucas pawlik gmail com>
Date:   Thu Nov 17 13:38:10 2011 +0100

    cleanup code from dead assignments
    
    Variable context is not read anywhere so remove it.

 libgupnp/gupnp-service.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/libgupnp/gupnp-service.c b/libgupnp/gupnp-service.c
index a2b40df..d9e1df3 100644
--- a/libgupnp/gupnp-service.c
+++ b/libgupnp/gupnp-service.c
@@ -1154,7 +1154,6 @@ subscribe (GUPnPService *service,
 {
         SubscriptionData *data;
         char *start, *end, *uri;
-        GUPnPContext *context;
 
         data = g_slice_new0 (SubscriptionData);
 
@@ -1196,7 +1195,6 @@ subscribe (GUPnPService *service,
                                data,
                                NULL);
 
-        context = gupnp_service_info_get_context (GUPNP_SERVICE_INFO (service));
         g_source_attach (data->timeout_src,
                          g_main_context_get_thread_default ());
 
@@ -1220,7 +1218,6 @@ resubscribe (GUPnPService *service,
              const char   *sid)
 {
         SubscriptionData *data;
-        GUPnPContext *context;
 
         data = g_hash_table_lookup (service->priv->subscriptions, sid);
         if (!data) {
@@ -1241,7 +1238,6 @@ resubscribe (GUPnPService *service,
                                data,
                                NULL);
 
-        context = gupnp_service_info_get_context (GUPNP_SERVICE_INFO (service));
         g_source_attach (data->timeout_src,
                          g_main_context_get_thread_default ());
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]