X-Git-Url: http://git.vrable.net/?a=blobdiff_plain;f=util.cc;h=38f1f1dfa6357c43d8c44d8e915ac17528ca89c9;hb=f1f817df56ce99ea544569635698df55d72bd1ee;hp=1f922dfde607d2debf87970db02adb5bc667cd84;hpb=6bb973b965a30832c3e2d9f6a24e80d3309ef89e;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); -}