This commit is contained in:
aozhiwei 2022-12-18 11:07:09 +08:00
parent 5d3c27c619
commit 0fabc2b174
2 changed files with 0 additions and 22 deletions

View File

@ -550,23 +550,6 @@ long long App::NewUuid()
return uuid.Generate();
}
a8::XParams* App::AddContext(long long context_id)
{
context_hash_[context_id] = a8::XParams();
return GetContext(context_id);
}
void App::DelContext(long long context_id)
{
context_hash_.erase(context_id);
}
a8::XParams* App::GetContext(long long context_id)
{
auto itr = context_hash_.find(context_id);
return itr != context_hash_.end() ? &(itr->second) : nullptr;
}
bool App::HasFlag(int flag)
{
return flags.find(flag) != flags.end();

View File

@ -33,9 +33,6 @@ public:
void NotifyLoopCond();
long long NewUuid();
a8::XParams* AddContext(long long context_id);
void DelContext(long long context_id);
a8::XParams* GetContext(long long context_id);
bool HasFlag(int flag);
void SetFlag(int flag);
void UnSetFlag(int flag);
@ -94,8 +91,6 @@ private:
MsgNode* bot_node_ = nullptr;
MsgNode* work_node_ = nullptr;
std::map<long long, a8::XParams> context_hash_;
long long curr_uniid_ = 0;
public: