- return true;
- }
- for (auto &x : this->role2surface)
- {
- if (surface == x.second)
- {
- HMI_INFO("Remove surface from client %s: role %s, surface: %d",
- this->id.c_str(), x.first.c_str(), x.second);
- this->role2surface.erase(x.first);
- ret = true;
- break;
- }
- }
- return ret;
-}
-
-bool WMClient::removeRole(const string &role)
-{
- bool ret = false;
- if (this->role2surface.count(role) != 0)
- {
- this->role2surface.erase(role);