Remove unused variable.
authorCarl Hetherington <cth@carlh.net>
Wed, 30 Jun 2021 23:22:29 +0000 (01:22 +0200)
committerCarl Hetherington <cth@carlh.net>
Wed, 30 Jun 2021 23:22:29 +0000 (01:22 +0200)
src/lib/update_checker.cc
src/lib/update_checker.h

index 29d41cd922e4ef880ffc88b4ba34a9ffac178471..704b7b497d80ed2d83e85b98a71bf18dc2e1c0f6 100644 (file)
@@ -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)));
index a0845b1941cf3fb78fb41ae2045ae4b2b3d32a68..aa5f620e6cf2baf63eb742aca598a15ab8997da7 100644 (file)
@@ -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;