diff --git a/client/gui/CIntObject.cpp b/client/gui/CIntObject.cpp index 13f960c19..8fa3b3025 100644 --- a/client/gui/CIntObject.cpp +++ b/client/gui/CIntObject.cpp @@ -10,12 +10,6 @@ IShowActivatable::IShowActivatable() type = 0; } -void ILockedUpdatable::runLocked(std::function cb) -{ - boost::unique_lock lock(updateGuard); - cb(this); -} - CIntObject::CIntObject(int used_, Point pos_): parent_m(nullptr), active_m(0), diff --git a/client/gui/CIntObject.h b/client/gui/CIntObject.h index 66dd51212..9242bb09e 100644 --- a/client/gui/CIntObject.h +++ b/client/gui/CIntObject.h @@ -40,9 +40,8 @@ public: class ILockedUpdatable: public IUpdateable { - boost::recursive_mutex updateGuard; public: - virtual void runLocked(std::function cb); + virtual void runLocked(std::function cb) = 0; virtual ~ILockedUpdatable(){}; //d-tor };