remove imgui debug log

This commit is contained in:
Green Sky
2025-09-02 12:50:52 +02:00
parent 9cab041af4
commit 95f3c821a5

View File

@@ -9,7 +9,6 @@
#include <imgui.h> #include <imgui.h>
#include <misc/cpp/imgui_stdlib.h> #include <misc/cpp/imgui_stdlib.h>
#include <iostream>
#include <cassert> #include <cassert>
namespace detail { namespace detail {
@@ -167,11 +166,11 @@ bool CRDTNotesImGui::renderDoc(const CRDTNotes::DocID& doc_id) {
// TODO: check // TODO: check
_held_locks.emplace(_notes.writeLockAquire(doc_id).value()); _held_locks.emplace(_notes.writeLockAquire(doc_id).value());
self_held = true; self_held = true;
std::cout << "!!!! imgui lock aquired\n"; //std::cout << "!!!! imgui lock aquired\n";
} else if (!foreign_held && self_held && !(ImGui::IsItemActive() || ImGui::IsItemEdited())) { } else if (!foreign_held && self_held && !(ImGui::IsItemActive() || ImGui::IsItemEdited())) {
// release lock // release lock
_held_locks.erase(lock_it); _held_locks.erase(lock_it);
std::cout << "!!!! imgui lock released\n"; //std::cout << "!!!! imgui lock released\n";
} }
if (self_held && ImGui::IsItemEdited()) { if (self_held && ImGui::IsItemEdited()) {