Commit edafe626 authored by Ross Burton's avatar Ross Burton
Browse files

Remove unused variables noticed by clang

parent c60f1b4c
......@@ -42,15 +42,13 @@ static GUPnPDeviceInfo *
gupnp_device_proxy_get_device (GUPnPDeviceInfo *info,
xmlNode *element)
{
GUPnPDeviceProxy *proxy, *device;
GUPnPDeviceProxy *device;
GUPnPResourceFactory *factory;
GUPnPContext *context;
GUPnPXMLDoc *doc;
const char *location;
const SoupURI *url_base;
proxy = GUPNP_DEVICE_PROXY (info);
factory = gupnp_device_info_get_resource_factory (info);
context = gupnp_device_info_get_context (info);
doc = _gupnp_device_info_get_document (info);
......@@ -72,7 +70,6 @@ static GUPnPServiceInfo *
gupnp_device_proxy_get_service (GUPnPDeviceInfo *info,
xmlNode *element)
{
GUPnPDeviceProxy *proxy;
GUPnPResourceFactory *factory;
GUPnPServiceProxy *service;
GUPnPContext *context;
......@@ -80,8 +77,6 @@ gupnp_device_proxy_get_service (GUPnPDeviceInfo *info,
const char *location, *udn;
const SoupURI *url_base;
proxy = GUPNP_DEVICE_PROXY (info);
factory = gupnp_device_info_get_resource_factory (info);
context = gupnp_device_info_get_context (info);
doc = _gupnp_device_info_get_document (info);
......
......@@ -1284,7 +1284,7 @@ got_introspection (GUPnPServiceInfo *info,
const GError *error,
gpointer user_data)
{
GUPnPService *service = user_data;
GUPnPService *service;
const GList *state_variables, *l;
GHashTableIter iter;
gpointer data;
......@@ -1343,7 +1343,6 @@ gupnp_service_constructor (GType type,
{
GObjectClass *object_class;
GObject *object;
GUPnPService *service;
GUPnPServiceInfo *info;
GUPnPContext *context;
SoupServer *server;
......@@ -1357,7 +1356,6 @@ gupnp_service_constructor (GType type,
n_construct_params,
construct_params);
service = GUPNP_SERVICE (object);
info = GUPNP_SERVICE_INFO (object);
/* Get introspection and save state variable names */
......@@ -1570,7 +1568,6 @@ static void
gupnp_service_class_init (GUPnPServiceClass *klass)
{
GObjectClass *object_class;
GUPnPServiceInfoClass *info_class;
object_class = G_OBJECT_CLASS (klass);
......@@ -1580,8 +1577,6 @@ gupnp_service_class_init (GUPnPServiceClass *klass)
object_class->dispose = gupnp_service_dispose;
object_class->finalize = gupnp_service_finalize;
info_class = GUPNP_SERVICE_INFO_CLASS (klass);
g_type_class_add_private (klass, sizeof (GUPnPServicePrivate));
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment