summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2020-01-20 13:28:58 +0100
committerMax Kellermann <max@musicpd.org>2020-01-20 13:33:01 +0100
commit49309b419f47d7acd4ba3ab2c6d1923df875587f (patch)
tree13baf14af8ccc6359f89b6a161ea562c222ec2d9 /src/client
parent879bafb8375da2b413d68307c0bcfcd5edb27e69 (diff)
Partition: add a local idle_monitor
Make idle events per-partition, but leave Instance::EmitIdle() and its underlying idle_monitor which broadcasts idle events to all partitions.
Diffstat (limited to 'src/client')
-rw-r--r--src/client/List.cxx9
-rw-r--r--src/client/List.hxx2
2 files changed, 0 insertions, 11 deletions
diff --git a/src/client/List.cxx b/src/client/List.cxx
index 64fcd4c47..bc1f60487 100644
--- a/src/client/List.cxx
+++ b/src/client/List.cxx
@@ -34,12 +34,3 @@ ClientList::Remove(Client &client) noexcept
list.erase(list.iterator_to(client));
}
-
-void
-ClientList::IdleAdd(unsigned flags) noexcept
-{
- assert(flags != 0);
-
- for (auto &client : list)
- client.IdleAdd(flags);
-}
diff --git a/src/client/List.hxx b/src/client/List.hxx
index f62322d33..d82ec889f 100644
--- a/src/client/List.hxx
+++ b/src/client/List.hxx
@@ -56,8 +56,6 @@ public:
}
void Remove(Client &client) noexcept;
-
- void IdleAdd(unsigned flags) noexcept;
};
#endif