chore: remove unused function

This commit is contained in:
Brenno Lemos 2023-10-19 21:21:55 -03:00
parent e14a3b8687
commit a0d2d95b41
2 changed files with 0 additions and 8 deletions

View File

@ -134,7 +134,6 @@ class Workspaces : public AModule, public EventHandler {
private: private:
void onEvent(const std::string&) override; void onEvent(const std::string&) override;
void update_window_count(); void update_window_count();
void initialize_window_maps();
void sort_workspaces(); void sort_workspaces();
void create_workspace(Json::Value& workspace_data, void create_workspace(Json::Value& workspace_data,
const Json::Value& clients_data = Json::Value::nullRef); const Json::Value& clients_data = Json::Value::nullRef);

View File

@ -417,13 +417,6 @@ void Workspaces::update_window_count() {
} }
} }
void Workspaces::initialize_window_maps() {
Json::Value clients_data = gIPC->getSocket1JsonReply("clients");
for (auto &workspace : workspaces_) {
workspace->initialize_window_map(clients_data);
}
}
void Workspace::initialize_window_map(const Json::Value &clients_data) { void Workspace::initialize_window_map(const Json::Value &clients_data) {
window_map_.clear(); window_map_.clear();
for (auto client : clients_data) { for (auto client : clients_data) {