summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-07-01 01:22:29 +0200
committerCarl Hetherington <cth@carlh.net>2021-07-01 01:22:29 +0200
commiteff6f92fe5d63ba067ef4eac21c2a82e5fb58197 (patch)
treed333851cb17f4b312332822c2a1aafee65fab547 /src
parent31de5b1272d928557a7272977584f5dcc9876c75 (diff)
Remove unused variable.
Diffstat (limited to 'src')
-rw-r--r--src/lib/update_checker.cc1
-rw-r--r--src/lib/update_checker.h1
2 files changed, 0 insertions, 2 deletions
diff --git a/src/lib/update_checker.cc b/src/lib/update_checker.cc
index 29d41cd92..704b7b497 100644
--- a/src/lib/update_checker.cc
+++ b/src/lib/update_checker.cc
@@ -193,7 +193,6 @@ UpdateChecker::set_state (State s)
{
boost::mutex::scoped_lock lm (_data_mutex);
_state = s;
- _emits++;
}
emit (boost::bind(boost::ref(StateChanged)));
diff --git a/src/lib/update_checker.h b/src/lib/update_checker.h
index a0845b194..aa5f620e6 100644
--- a/src/lib/update_checker.h
+++ b/src/lib/update_checker.h
@@ -98,7 +98,6 @@ private:
State _state;
boost::optional<std::string> _stable;
boost::optional<std::string> _test;
- int _emits = 0;
boost::thread _thread;
boost::mutex _process_mutex;