Parcourir la source

[3400] Obsolete comment removed.

Tomek Mrugalski il y a 11 ans
Parent
commit
5625dbfde4
1 fichiers modifiés avec 0 ajouts et 6 suppressions
  1. 0 6
      src/lib/cc/data.cc

+ 0 - 6
src/lib/cc/data.cc

@@ -1063,12 +1063,6 @@ merge(ElementPtr element, ConstElementPtr other) {
 
 void Element::preprocess(std::istream& in, std::stringstream& out) {
 
-    // There is no assignment operator defined for streams, so we can't return
-    // stream as an object. If we return a pointer, someone would have to free
-    // it. So the most convenient way is to return a reference. However, since
-    // it's not allowed to return references to automatic variables, we must
-    // make sure that the reference is valid after this method returns. So
-    // returning a value to static object seems the only feasible way to go.
     std::string line;
 
     while (std::getline(in, line)) {