From c7506a05dc526b94f93702a7fe6dded98fc97db7 Mon Sep 17 00:00:00 2001 From: Alex Hultman Date: Sun, 28 Jun 2020 08:31:24 +0200 Subject: [PATCH] Remove print from TopicTree --- src/TopicTree.h | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/src/TopicTree.h b/src/TopicTree.h index 29308ce..7895f72 100644 --- a/src/TopicTree.h +++ b/src/TopicTree.h @@ -415,27 +415,6 @@ public: } numTriggeredTopics = 0; } - - void print(Topic *root = nullptr, int indentation = 1) { - if (root == nullptr) { - std::cout << "Print of tree:" << std::endl; - root = this->root; - } - - for (auto p : root->children) { - for (int i = 0; i < indentation; i++) { - std::cout << " "; - } - std::cout << std::string_view(p.second->name, p.second->length) << " = " << p.second->messages.size() << " publishes, " << p.second->subs.size() << " subscribers {"; - - for (auto &p : p.second->subs) { - std::cout << p << " referring to socket: " << p->user << ", "; - } - std::cout << "}" << std::endl; - - print(p.second, indentation + 1); - } - } }; }