diff options
author | Max Kellermann <max@duempel.org> | 2014-08-26 10:02:06 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-08-26 10:02:06 +0200 |
commit | bd371af0b3bf41ddf282b3db139612f6531f3427 (patch) | |
tree | 97cbd91fed4d346e70484a1dd33f07fa94a29f0d | |
parent | 9d79c72c179208137c6dcdba07a1bfcc8ffa3799 (diff) | |
download | mpd-bd371af0b3bf41ddf282b3db139612f6531f3427.tar.gz mpd-bd371af0b3bf41ddf282b3db139612f6531f3427.tar.xz mpd-bd371af0b3bf41ddf282b3db139612f6531f3427.zip |
ZeroconfAvahi: remove unused flag "avahi_running"
This flag is never read.
-rw-r--r-- | src/zeroconf/ZeroconfAvahi.cxx | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/zeroconf/ZeroconfAvahi.cxx b/src/zeroconf/ZeroconfAvahi.cxx index 35f3dc9dc..84e748167 100644 --- a/src/zeroconf/ZeroconfAvahi.cxx +++ b/src/zeroconf/ZeroconfAvahi.cxx @@ -39,7 +39,6 @@ static constexpr Domain avahi_domain("avahi"); static char *avahiName; -static bool avahi_running; static MyAvahiPoll *avahi_poll; static AvahiClient *avahiClient; static AvahiEntryGroup *avahiGroup; @@ -85,7 +84,6 @@ static void avahiGroupCallback(AvahiEntryGroup * g, avahi_strerror(avahi_client_errno (avahi_entry_group_get_client(g)))); /* Some kind of failure happened while we were registering our services */ - avahi_running = false; break; case AVAHI_ENTRY_GROUP_UNCOMMITED: @@ -142,7 +140,7 @@ static void avahiRegisterService(AvahiClient * c) return; fail: - avahi_running = false; + return; } /* Callback when avahi changes state */ @@ -185,13 +183,11 @@ static void avahiClientCallback(AvahiClient * c, AvahiClientState state, FormatWarning(avahi_domain, "Could not reconnect: %s", avahi_strerror(reason)); - avahi_running = false; } } else { FormatWarning(avahi_domain, "Client failure: %s (terminal)", avahi_strerror(reason)); - avahi_running = false; } break; @@ -239,8 +235,6 @@ AvahiInit(EventLoop &loop, const char *serviceName) avahiName = avahi_strdup(serviceName); - avahi_running = true; - avahi_poll = new MyAvahiPoll(loop); int error; |