From d086e90d751ed8125b67b32c419436f4b2d5566d Mon Sep 17 00:00:00 2001 From: Johnny Willemsen Date: Fri, 30 Aug 2024 12:06:45 +0200 Subject: [PATCH] Removed old commented out code * XSC/be/CXX/Elements.cpp: * XSC/be/CXX/Inline.cpp: * XSCRT/XSCRT/Elements.hpp: --- XSC/be/CXX/Elements.cpp | 8 -------- XSC/be/CXX/Inline.cpp | 29 ----------------------------- XSCRT/XSCRT/Elements.hpp | 2 -- 3 files changed, 39 deletions(-) diff --git a/XSC/be/CXX/Elements.cpp b/XSC/be/CXX/Elements.cpp index 514fb61..f4c4e76 100644 --- a/XSC/be/CXX/Elements.cpp +++ b/XSC/be/CXX/Elements.cpp @@ -342,14 +342,6 @@ type_name (SemanticGraph::Instance& i, string const& nss) } else { - //@@ I wonder if this is at all necessary now? - // - - //if (!scope.empty ()) r += scope + L"::"; - - //r += fq_name (i.scope ()); - //r += L"::"; - r += id (i.name ()); } diff --git a/XSC/be/CXX/Inline.cpp b/XSC/be/CXX/Inline.cpp index fc56969..1e5df5e 100644 --- a/XSC/be/CXX/Inline.cpp +++ b/XSC/be/CXX/Inline.cpp @@ -1101,22 +1101,6 @@ namespace { os << id (name) << "_->container (this);"; } - else - { - //string type (type_name (e)); - - //// sequence - //// - //if (this->generate_ra_sequences_) - // os << name << "_.reserve (s." << name << "_.size ());"; - - //os << "{" - // << "for (" << name << "_const_iterator i (s." - // << name << "_.begin ());" - // << "i != s." << name << "_.end ();" - // << "++i) " << "add_" << name << " (*i);" - // << "}"; - } } virtual void @@ -1207,19 +1191,6 @@ namespace // os << id(name) << "_ = s." << id(name) << "_;" << std::endl; - - //os << name << "_.clear ();"; - - //if (this->generate_ra_sequences_) - // os << name << "_.reserve (s." << name << "_.size ());"; - - //os << "{" - // << "for (" << name << "_const_iterator i (s." - // << name << "_.begin ());" - // << "i != s." << name << "_.end ();" - // << "++i) " << std::endl - // << "add_" << name << " (*i);" - // << "}"; } } diff --git a/XSCRT/XSCRT/Elements.hpp b/XSCRT/XSCRT/Elements.hpp index f48a39e..9f2f099 100644 --- a/XSCRT/XSCRT/Elements.hpp +++ b/XSCRT/XSCRT/Elements.hpp @@ -60,8 +60,6 @@ namespace XSCRT Type& operator= (Type const&) { - //@@ I don't need this. - //if (map_.get ()) map_->clear (); // Flush the map. return *this; }