Ensure the "name:" key shows up first in metadata output.
[cumulus.git] / util.cc
diff --git a/util.cc b/util.cc
index 1f922df..38f1f1d 100644 (file)
--- a/util.cc
+++ b/util.cc
@@ -98,22 +98,3 @@ long long parse_int(const string &s)
 {
     return strtoll(s.c_str(), NULL, 0);
 }
-
-/* Encode a dictionary of string key/value pairs into a sequence of lines of
- * the form "key: value". */
-string encode_dict(const map<string, string>& dict)
-{
-    string result;
-    for (map<string, string>::const_iterator i = dict.begin();
-         i != dict.end(); ++i) {
-        result += i->first + ": " + i->second + "\n";
-    }
-    return result;
-}
-
-/* Output a dictionary of string key/value pairs to the given output stream.
- * The format is a sequence of lines of the form "key: value". */
-void dict_output(ostream &o, const map<string, string>& dict)
-{
-    o << encode_dict(dict);
-}