]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[5021] Unnecessary method removed.
authorTomek Mrugalski <tomasz@isc.org>
Mon, 2 Jan 2017 23:19:27 +0000 (00:19 +0100)
committerTomek Mrugalski <tomasz@isc.org>
Mon, 2 Jan 2017 23:19:27 +0000 (00:19 +0100)
src/lib/cc/data.cc
src/lib/cc/data.h

index 417b67fbff96fb1205de005a0d20c40606506fc2..7eac622008d7992b6f55cac3748d1b65c369daac 100644 (file)
@@ -1084,14 +1084,5 @@ void Element::preprocess(std::istream& in, std::stringstream& out) {
     }
 }
 
-ElementPtr Element::getMutableMap(ConstElementPtr& const_map) {
-    std::map<std::string, ConstElementPtr> values;
-    const_map->getValue(values);
-    ElementPtr mutable_map(new MapElement());
-    mutable_map->setValue(values);
-
-    return (mutable_map);
-}
-
 }
 }
index 22c9a999e6456a713f2e73c9fba4d3967c70bf79..bf8c50389563e4680621689b00223d33e7facb7d 100644 (file)
@@ -527,12 +527,6 @@ public:
     /// \return ElementPtr with the data that is parsed.
     static ElementPtr fromWire(const std::string& s);
     //@}
-
-    /// @brief Creates mutable map based on const map
-    ///
-    /// @param const_map const map to be used as a donor
-    /// @return mutable map
-    static ElementPtr getMutableMap(ConstElementPtr& const_map);
 };
 
 /// Notes: IntElement type is changed to int64_t.