[libdmapsharing] A few more cleanups for dmap-mdns-browser-dnssd.c Signed-off-by: W. Michael Petullo <mike flyn org>



commit bbcdd4faf1c5d236179d24943df4c57e9a09e6d7
Author: W. Michael Petullo <mike flyn org>
Date:   Wed Mar 30 22:30:28 2011 -0500

    A few more cleanups for dmap-mdns-browser-dnssd.c
    Signed-off-by: W. Michael Petullo <mike flyn org>

 libdmapsharing/dmap-mdns-browser-dnssd.c |   25 ++-----------------------
 1 files changed, 2 insertions(+), 23 deletions(-)
---
diff --git a/libdmapsharing/dmap-mdns-browser-dnssd.c b/libdmapsharing/dmap-mdns-browser-dnssd.c
index 6857580..7ea79f1 100644
--- a/libdmapsharing/dmap-mdns-browser-dnssd.c
+++ b/libdmapsharing/dmap-mdns-browser-dnssd.c
@@ -59,8 +59,6 @@ enum
 	LAST_SIGNAL
 };
 
-static void print_browser (DMAPMdnsBrowser * browser);
-
 static gboolean
 add_sd_to_event_loop (DMAPMdnsBrowser * browser, DNSServiceRef sdRef);
 
@@ -110,9 +108,9 @@ gboolean dmap_mdns_browser_stop (DMAPMdnsBrowser * browser, GError ** error);
 
 static guint dmap_mdns_browser_signals[LAST_SIGNAL] = { 0, };
 
-G_DEFINE_TYPE (DMAPMdnsBrowser, dmap_mdns_browser, G_TYPE_OBJECT)
+G_DEFINE_TYPE (DMAPMdnsBrowser, dmap_mdns_browser, G_TYPE_OBJECT);
 
-     static void dmap_mdns_browser_init (DMAPMdnsBrowser * browser)
+static void dmap_mdns_browser_init (DMAPMdnsBrowser * browser)
 {
 	g_debug ("dmap_mdns_browser_init ()");
 
@@ -483,22 +481,3 @@ free_service (DMAPMdnsBrowserService * service)
 	g_free (service->pair);
 	g_free (service);
 }
-
-static void
-print_browser (DMAPMdnsBrowser * browser)
-{
-	printf ("\n======= Browser Fields =======\n");
-
-	printf ("     reg_type: %s\n", browser->priv->reg_type);
-	printf (" service_name: %s\n", browser->priv->service_name);
-	printf ("    full_name: %s\n", browser->priv->full_name);
-	printf ("  host_target: %s\n", browser->priv->host_target);
-	printf ("       domain: %s\n", browser->priv->domain);
-
-	printf ("         port: %d\n", browser->priv->port);
-	printf ("  iface index: %d\n", browser->priv->interface_index);
-	printf ("        flags: %d\n", browser->priv->flags);
-	printf ("==============================\n");
-
-	printf ("\n");
-}



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