refactor: remove useless code
This commit is contained in:
+1
-3
@@ -7,9 +7,6 @@ private:
|
|||||||
std::unordered_map<int64, ll::event::ListenerPtr> mEventListeners;
|
std::unordered_map<int64, ll::event::ListenerPtr> mEventListeners;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
LegacyScriptEventManager() {};
|
|
||||||
~LegacyScriptEventManager() {};
|
|
||||||
|
|
||||||
std::string getNextEventId() {
|
std::string getNextEventId() {
|
||||||
mNextEventId++;
|
mNextEventId++;
|
||||||
return "GMLIB_EVENT_" + std::to_string(mNextEventId);
|
return "GMLIB_EVENT_" + std::to_string(mNextEventId);
|
||||||
@@ -24,6 +21,7 @@ public:
|
|||||||
mEventListeners.erase(doHash(scriptEventId));
|
mEventListeners.erase(doHash(scriptEventId));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public:
|
||||||
static LegacyScriptEventManager& getInstance() {
|
static LegacyScriptEventManager& getInstance() {
|
||||||
static std::unique_ptr<LegacyScriptEventManager> instance;
|
static std::unique_ptr<LegacyScriptEventManager> instance;
|
||||||
if (!instance) {
|
if (!instance) {
|
||||||
|
|||||||
Reference in New Issue
Block a user