X-Git-Url: http://git.vrable.net/?a=blobdiff_plain;f=util.cc;fp=util.cc;h=38f1f1dfa6357c43d8c44d8e915ac17528ca89c9;hb=fbb042e3bbfe0796b0986fa0ffa9cde75c6e3bce;hp=1f922dfde607d2debf87970db02adb5bc667cd84;hpb=03e760560aa77aa4f29de0610f41b547ac43ed00;p=cumulus.git diff --git a/util.cc b/util.cc index 1f922df..38f1f1d 100644 --- 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& dict) -{ - string result; - for (map::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& dict) -{ - o << encode_dict(dict); -}