]> xenbits.xensource.com Git - libvirt.git/commitdiff
network: remove conditional declarations
authorDaniel P. Berrangé <berrange@redhat.com>
Thu, 25 Jan 2018 09:35:51 +0000 (09:35 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 9 Feb 2018 11:05:10 +0000 (11:05 +0000)
The networkDnsmasqConfContents() method is only used by the test suite
and that's only built with WITH_NETWORK is set. So there is no longer
any reason to conditionalize the declaration of this method.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/network/bridge_driver.h

index 2cf886a7e6187c37431913e0778e8d1f5c2a2991..b70881a690f080516fb271726be722a069ad7f0a 100644 (file)
@@ -34,8 +34,6 @@
 int
 networkRegister(void);
 
-# if WITH_NETWORK
-
 int
 networkDnsmasqConfContents(virNetworkObjPtr obj,
                            const char *pidfile,
@@ -43,11 +41,4 @@ networkDnsmasqConfContents(virNetworkObjPtr obj,
                            dnsmasqContext *dctx,
                            dnsmasqCapsPtr caps);
 
-# else
-/* Define no-op replacements that don't drag in any link dependencies.  */
-#  define networkDnsmasqConfContents(network, pidfile, configstr, \
-                    dctx, caps) 0
-
-# endif
-
 #endif /* __VIR_NETWORK__DRIVER_H */