From ffc4d22e0483e0ac55b636fd3a7c93b422606b16 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gr=C3=A9goire=20KUBLER?= <gregoire.kubler@proton.me>
Date: Fri, 29 Mar 2024 14:04:07 +0100
Subject: [PATCH] chore : removed ostream operator<< support

---
 include/aidge/graph/Node.hpp |  7 +------
 src/graph/Node.cpp           | 19 -------------------
 2 files changed, 1 insertion(+), 25 deletions(-)

diff --git a/include/aidge/graph/Node.hpp b/include/aidge/graph/Node.hpp
index c9004a8e4..7271b6bca 100644
--- a/include/aidge/graph/Node.hpp
+++ b/include/aidge/graph/Node.hpp
@@ -457,15 +457,10 @@ private:
    */
   void addParent(const NodePtr otherNode, const IOIndex_t inId);
 
-  /**
-   * @brief operator<< overload to ease print & debug of nodes
-   * @param[inout] ostream to print to 
-   * @param[in] n node to print
-   */
-  friend std::ostream& operator << (std::ostream& os, Node& n); 
 };
 
 } // namespace Aidge
 
 
+
 #endif /* AIDGE_CORE_GRAPH_NODE_H_ */
diff --git a/src/graph/Node.cpp b/src/graph/Node.cpp
index fb252c349..a417300cf 100644
--- a/src/graph/Node.cpp
+++ b/src/graph/Node.cpp
@@ -390,25 +390,6 @@ std::set<Aidge::NodePtr> Aidge::Node::getNodeDelta(int delta, std::set<Aidge::No
     return out;
 }
 
-namespace Aidge {
-std::ostream& operator << (std::ostream& os, Aidge::Node& n) {
-    using namespace std;
-    os << "Node :\tName :\t\"" << n.name() << "\"\tType : \"" << n.getOperator()->type()<< "\"\tIN/OUTputs : "<< n.nbInputs() <<"/"<< n.nbOutputs() <<endl; 
-    os << "\tParents :\t" ;
-    for (const auto & p : n.getParents())
-    {
-        os << "\"" <<p->name() << "\"\t"; 
-    }
-    os << endl;
-    os << "\tChildren :\t" ;
-    for (const auto & c : n.getChildren())
-    {
-        os << "\"" << c->name() << "\"\t"; 
-    }
-    os << endl;
-    return os;
-}
-}
 /////////////////////////////////////////////////////////////////////////////////////////////
 // private
 
-- 
GitLab