Initial framework for direct transfer of backups to remote storage.
[cumulus.git] / util.cc
diff --git a/util.cc b/util.cc
index 13ad991..38f1f1d 100644 (file)
--- a/util.cc
+++ b/util.cc
@@ -67,7 +67,7 @@ string uri_decode(const string &in)
     *output = '\0';
 
     string result(buf);
-    delete buf;
+    delete[] buf;
     return result;
 }
 
@@ -98,13 +98,3 @@ long long parse_int(const string &s)
 {
     return strtoll(s.c_str(), NULL, 0);
 }
-
-/* 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, map<string, string> dict)
-{
-    for (map<string, string>::const_iterator i = dict.begin();
-         i != dict.end(); ++i) {
-        o << i->first << ": " << i->second << "\n";
-    }
-}