[PATCH] [3/4] kill unused functions
- From: Benoit Boissinot <bboissin+networkmanager gmail com>
- To: networkmanager-list gnome org
- Subject: [PATCH] [3/4] kill unused functions
- Date: Sun, 27 Apr 2008 19:02:22 +0200
nm_system_device_has_active_routes, nm_system_flush_loopback_routes,
nm_system_flush_arp_cache and nm_system_device_update_resolv_conf are
currently unused, kill them.
diff -r 42e27e385d32 src/NetworkManagerSystem.h
--- a/src/NetworkManagerSystem.h Fri Apr 25 22:43:26 2008 +0200
+++ b/src/NetworkManagerSystem.h Sun Apr 27 17:46:25 2008 +0200
@@ -33,7 +33,6 @@
*/
void nm_system_init (void);
-gboolean nm_system_device_has_active_routes (NMDevice *dev);
void nm_system_device_flush_ip4_routes (NMDevice *dev);
void nm_system_device_flush_ip4_routes_with_iface (const char *iface);
@@ -48,8 +47,6 @@
void nm_system_device_flush_ip4_addresses_with_iface (const char *iface);
void nm_system_enable_loopback (void);
-void nm_system_flush_loopback_routes (void);
-void nm_system_flush_arp_cache (void);
void nm_system_kill_all_dhcp_daemons (void);
void nm_system_update_dns (void);
void nm_system_restart_mdns_responder (void);
@@ -70,8 +67,6 @@
gboolean nm_system_device_set_up_down (NMDevice *dev, gboolean up);
gboolean nm_system_device_set_up_down_with_iface (const char *iface, gboolean up);
-gboolean nm_system_device_update_resolv_conf (void *data, int len, const char *domain_name);
-
void nm_system_set_hostname (NMIP4Config *config);
void nm_system_activate_nis (NMIP4Config *config);
void nm_system_shutdown_nis (void);
diff -r 42e27e385d32 src/backends/NetworkManagerArch.c
--- a/src/backends/NetworkManagerArch.c Fri Apr 25 22:43:26 2008 +0200
+++ b/src/backends/NetworkManagerArch.c Sun Apr 27 17:46:25 2008 +0200
@@ -189,32 +189,6 @@
nm_system_device_set_up_down_with_iface ("lo", TRUE);
}
-
-/*
- * nm_system_flush_loopback_routes
- *
- * Flush all routes associated with the loopback device, because it
- * sometimes gets the first route for ZeroConf/Link-Local traffic.
- *
- */
-void nm_system_flush_loopback_routes (void)
-{
- nm_generic_flush_loopback_routes ();
-}
-
-
-/*
- * nm_system_flush_arp_cache
- *
- * Flush all entries in the arp cache.
- *
- */
-void nm_system_flush_arp_cache (void)
-{
- nm_generic_flush_arp_cache ();
-}
-
-
/*
* nm_system_kill_all_dhcp_daemons
*
diff -r 42e27e385d32 src/backends/NetworkManagerDebian.c
--- a/src/backends/NetworkManagerDebian.c Fri Apr 25 22:43:26 2008 +0200
+++ b/src/backends/NetworkManagerDebian.c Sun Apr 27 17:46:25 2008 +0200
@@ -67,32 +67,6 @@
nm_spawn_process ("/sbin/ifup lo");
}
-
-/*
- * nm_system_flush_loopback_routes
- *
- * Flush all routes associated with the loopback device, because it
- * sometimes gets the first route for ZeroConf/Link-Local traffic.
- *
- */
-void nm_system_flush_loopback_routes (void)
-{
- nm_generic_flush_loopback_routes ();
-}
-
-
-/*
- * nm_system_flush_arp_cache
- *
- * Flush all entries in the arp cache.
- *
- */
-void nm_system_flush_arp_cache (void)
-{
- nm_generic_flush_arp_cache ();
-}
-
-
/*
* nm_system_kill_all_dhcp_daemons
*
diff -r 42e27e385d32 src/backends/NetworkManagerFrugalware.c
--- a/src/backends/NetworkManagerFrugalware.c Fri Apr 25 22:43:26 2008 +0200
+++ b/src/backends/NetworkManagerFrugalware.c Sun Apr 27 17:46:25 2008 +0200
@@ -51,19 +51,6 @@
}
/*
- * nm_system_device_has_active_routes
- *
- * Find out whether the specified device has any routes in the routing
- * table.
- *
- */
-gboolean nm_system_device_has_active_routes (NMDevice *dev)
-{
- return FALSE;
-}
-
-
-/*
* nm_system_enable_loopback
*
* Bring up the loopback interface
@@ -113,30 +100,6 @@
{
nm_spawn_process ("/etc/rc.d/rc.avahi-daemon restart");
}
-}
-
-/*
- * nm_system_flush_loopback_routes
- *
- * Flush all routes associated with the loopback device, because it
- * sometimes gets the first route for ZeroConf/Link-Local traffic.
- *
- */
-void nm_system_flush_loopback_routes (void)
-{
- nm_system_device_flush_ip4_routes_with_iface ("lo");
-}
-
-
-/*
- * nm_system_flush_arp_cache
- *
- * Flush all entries in the arp cache.
- *
- */
-void nm_system_flush_arp_cache (void)
-{
- nm_spawn_process ("/usr/sbin/ip neigh flush all");
}
/*
diff -r 42e27e385d32 src/backends/NetworkManagerGeneric.c
--- a/src/backends/NetworkManagerGeneric.c Fri Apr 25 22:43:26 2008 +0200
+++ b/src/backends/NetworkManagerGeneric.c Sun Apr 27 17:46:25 2008 +0200
@@ -62,32 +62,6 @@
nm_spawn_process (IP_BINARY_PATH" link set dev lo up");
nm_spawn_process (IP_BINARY_PATH" addr add 127.0.0.1/8 brd 127.255.255.255 dev lo scope host label lo");
}
-
-
-/*
- * nm_generic_flush_loopback_routes
- *
- * Flush all routes associated with the loopback device, because it
- * sometimes gets the first route for ZeroConf/Link-Local traffic.
- *
- */
-void nm_generic_flush_loopback_routes (void)
-{
- nm_system_device_flush_ip4_routes_with_iface ("lo");
-}
-
-
-/*
- * nm_generic_flush_arp_cache
- *
- * Flush all entries in the arp cache.
- *
- */
-void nm_generic_flush_arp_cache (void)
-{
- nm_spawn_process (IP_BINARY_PATH" neigh flush all");
-}
-
/*
* nm_generic_kill_all_dhcp_daemons
diff -r 42e27e385d32 src/backends/NetworkManagerGeneric.h
--- a/src/backends/NetworkManagerGeneric.h Fri Apr 25 22:43:26 2008 +0200
+++ b/src/backends/NetworkManagerGeneric.h Sun Apr 27 17:46:25 2008 +0200
@@ -34,7 +34,6 @@
*/
void nm_generic_init (void);
-gboolean nm_generic_device_has_active_routes (NMDevice *dev);
void nm_generic_device_flush_ip4_routes (NMDevice *dev);
void nm_generic_device_flush_ip4_routes_with_iface (const char *iface);
@@ -43,8 +42,6 @@
void nm_generic_device_flush_ip4_addresses_with_iface (const char *iface);
void nm_generic_enable_loopback (void);
-void nm_generic_flush_loopback_routes (void);
-void nm_generic_flush_arp_cache (void);
void nm_generic_kill_all_dhcp_daemons (void);
void nm_generic_update_dns (void);
void nm_generic_restart_mdns_responder (void);
@@ -63,8 +60,6 @@
gboolean nm_generic_device_set_up_down (NMDevice *dev, gboolean up);
gboolean nm_generic_device_set_up_down_with_iface (NMDevice *dev, const char *iface, gboolean up);
-gboolean nm_generic_device_update_resolv_conf (void *data, int len, const char *domain_name);
-
void nm_generic_set_hostname (NMIP4Config *config);
void nm_generic_activate_nis (NMIP4Config *config);
void nm_generic_shutdown_nis (void);
diff -r 42e27e385d32 src/backends/NetworkManagerGentoo.c
--- a/src/backends/NetworkManagerGentoo.c Fri Apr 25 22:43:26 2008 +0200
+++ b/src/backends/NetworkManagerGentoo.c Sun Apr 27 17:46:25 2008 +0200
@@ -54,19 +54,6 @@
nm_generic_init ();
}
-/*
- * nm_system_device_has_active_routes
- *
- * Find out whether the specified device has any routes in the routing
- * table.
- *
- */
-gboolean nm_system_device_has_active_routes (NMDevice *dev)
-{
- /* TODO */
- return (FALSE);
-}
-
#if 0
/* Alert other computers of our new address */
temp_addr.s_addr = addr;
@@ -91,32 +78,6 @@
if (nm_spawn_process ("/etc/init.d/net.lo status") != 0)
nm_spawn_process("/etc/init.d/net.lo start");
}
-
-
-/*
- * nm_system_flush_loopback_routes
- *
- * Flush all routes associated with the loopback device, because it
- * sometimes gets the first route for ZeroConf/Link-Local traffic.
- *
- */
-void nm_system_flush_loopback_routes (void)
-{
- nm_generic_flush_loopback_routes ();
-}
-
-/*
- * nm_system_flush_arp_cache
- *
- * Flush all entries in the arp cache.
- *
- */
-void nm_system_flush_arp_cache (void)
-{
- nm_generic_flush_arp_cache ();
-}
-
-
/*
* nm_system_kill_all_dhcp_daemons
diff -r 42e27e385d32 src/backends/NetworkManagerMandriva.c
--- a/src/backends/NetworkManagerMandriva.c Fri Apr 25 22:43:26 2008 +0200
+++ b/src/backends/NetworkManagerMandriva.c Sun Apr 27 17:46:25 2008 +0200
@@ -52,19 +52,6 @@
nm_generic_init ();
}
-
-/*
- * nm_system_device_has_active_routes
- *
- * Find out whether the specified device has any routes in the routing
- * table.
- *
- */
-gboolean nm_system_device_has_active_routes (NMDevice *dev)
-{
- return (FALSE);
-}
-
#if 0
/* Alert other computers of our new address */
temp_addr.s_addr = addr;
@@ -88,32 +75,6 @@
{
nm_generic_enable_loopback ();
}
-
-
-/*
- * nm_system_flush_loopback_routes
- *
- * Flush all routes associated with the loopback device, because it
- * sometimes gets the first route for ZeroConf/Link-Local traffic.
- *
- */
-void nm_system_flush_loopback_routes (void)
-{
- nm_generic_flush_loopback_routes ();
-}
-
-
-/*
- * nm_system_flush_arp_cache
- *
- * Flush all entries in the arp cache.
- *
- */
-void nm_system_flush_arp_cache (void)
-{
- nm_generic_flush_arp_cache ();
-}
-
/*
* nm_system_kill_all_dhcp_daemons
diff -r 42e27e385d32 src/backends/NetworkManagerPaldo.c
--- a/src/backends/NetworkManagerPaldo.c Fri Apr 25 22:43:26 2008 +0200
+++ b/src/backends/NetworkManagerPaldo.c Sun Apr 27 17:46:25 2008 +0200
@@ -54,18 +54,6 @@
}
/*
- * nm_system_device_has_active_routes
- *
- * Find out whether the specified device has any routes in the routing
- * table.
- *
- */
-gboolean nm_system_device_has_active_routes (NMDevice *dev)
-{
- return (FALSE);
-}
-
-/*
* nm_system_enable_loopback
*
* Bring up the loopback interface
@@ -75,32 +63,6 @@
{
nm_generic_enable_loopback ();
}
-
-
-/*
- * nm_system_flush_loopback_routes
- *
- * Flush all routes associated with the loopback device, because it
- * sometimes gets the first route for ZeroConf/Link-Local traffic.
- *
- */
-void nm_system_flush_loopback_routes (void)
-{
- nm_generic_flush_loopback_routes ();
-}
-
-
-/*
- * nm_system_flush_arp_cache
- *
- * Flush all entries in the arp cache.
- *
- */
-void nm_system_flush_arp_cache (void)
-{
- nm_generic_flush_arp_cache ();
-}
-
/*
* nm_system_kill_all_dhcp_daemons
diff -r 42e27e385d32 src/backends/NetworkManagerRedHat.c
--- a/src/backends/NetworkManagerRedHat.c Fri Apr 25 22:43:26 2008 +0200
+++ b/src/backends/NetworkManagerRedHat.c Sun Apr 27 17:46:25 2008 +0200
@@ -50,18 +50,6 @@
nm_generic_init ();
}
-/*
- * nm_system_device_has_active_routes
- *
- * Find out whether the specified device has any routes in the routing
- * table.
- *
- */
-gboolean nm_system_device_has_active_routes (NMDevice *dev)
-{
- return (FALSE);
-}
-
#if 0
/* Alert other computers of our new address */
temp_addr.s_addr = addr;
@@ -85,32 +73,6 @@
{
nm_generic_enable_loopback ();
}
-
-
-/*
- * nm_system_flush_loopback_routes
- *
- * Flush all routes associated with the loopback device, because it
- * sometimes gets the first route for ZeroConf/Link-Local traffic.
- *
- */
-void nm_system_flush_loopback_routes (void)
-{
- nm_generic_flush_loopback_routes ();
-}
-
-
-/*
- * nm_system_flush_arp_cache
- *
- * Flush all entries in the arp cache.
- *
- */
-void nm_system_flush_arp_cache (void)
-{
- nm_generic_flush_arp_cache ();
-}
-
/*
* nm_system_kill_all_dhcp_daemons
diff -r 42e27e385d32 src/backends/NetworkManagerSlackware.c
--- a/src/backends/NetworkManagerSlackware.c Fri Apr 25 22:43:26 2008 +0200
+++ b/src/backends/NetworkManagerSlackware.c Sun Apr 27 17:46:25 2008 +0200
@@ -54,19 +54,6 @@
}
/*
- * nm_system_device_has_active_routes
- *
- * Find out whether the specified device has any routes in the routing
- * table.
- *
- */
-gboolean nm_system_device_has_active_routes (NMDevice *dev)
-{
- return FALSE;
-}
-
-
-/*
* nm_system_enable_loopback
*
* Bring up the loopback interface
@@ -111,30 +98,6 @@
*/
void nm_system_restart_mdns_responder (void)
{
-}
-
-/*
- * nm_system_flush_loopback_routes
- *
- * Flush all routes associated with the loopback device, because it
- * sometimes gets the first route for ZeroConf/Link-Local traffic.
- *
- */
-void nm_system_flush_loopback_routes (void)
-{
- nm_generic_flush_loopback_routes ();
-}
-
-
-/*
- * nm_system_flush_arp_cache
- *
- * Flush all entries in the arp cache.
- *
- */
-void nm_system_flush_arp_cache (void)
-{
- nm_generic_flush_arp_cache ();
}
/*
diff -r 42e27e385d32 src/backends/NetworkManagerSuSE.c
--- a/src/backends/NetworkManagerSuSE.c Fri Apr 25 22:43:26 2008 +0200
+++ b/src/backends/NetworkManagerSuSE.c Sun Apr 27 17:46:25 2008 +0200
@@ -60,18 +60,6 @@
}
/*
- * nm_system_device_has_active_routes
- *
- * Find out whether the specified device has any routes in the routing
- * table.
- *
- */
-gboolean nm_system_device_has_active_routes (NMDevice *dev)
-{
- return FALSE;
-}
-
-/*
* nm_system_enable_loopback
*
* Bring up the loopback interface
@@ -81,32 +69,6 @@
{
nm_generic_enable_loopback ();
}
-
-
-/*
- * nm_system_flush_loopback_routes
- *
- * Flush all routes associated with the loopback device, because it
- * sometimes gets the first route for ZeroConf/Link-Local traffic.
- *
- */
-void nm_system_flush_loopback_routes (void)
-{
- nm_generic_flush_loopback_routes ();
-}
-
-
-/*
- * nm_system_flush_arp_cache
- *
- * Flush all entries in the arp cache.
- *
- */
-void nm_system_flush_arp_cache (void)
-{
- nm_generic_flush_arp_cache ();
-}
-
/*
* nm_system_kill_all_dhcp_daemons
--
:wq
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]