X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fconfig.cpp;h=e4449cc80aaad3fe16c7b628f4708bdff5a80e30;hb=9134ce7f2225eb301c7b6c9aca8521c4e82dc065;hp=489026329ec4338390badffe13be7b5b6ef08435;hpb=3f541fceb5aeb5d685ceb2363ebbca1cb1c3eb84;p=builder.git diff --git a/source/config.cpp b/source/config.cpp index 4890263..e4449cc 100644 --- a/source/config.cpp +++ b/source/config.cpp @@ -34,30 +34,6 @@ bool Config::is_option(const string &name) const return options.count(name); } -bool Config::update(const StringMap &opts) -{ - bool changed_now = false; - for(StringMap::const_iterator i=opts.begin(); i!=opts.end(); ++i) - { - if(set_option(i->first, i->second) && i->first!="profile") - changed_now = true; - } - - if(changed_now) - { - mtime = Time::now(); - changed = true; - } - - return changed_now; -} - -void Config::finish() -{ - for(OptionMap::iterator i=options.begin(); i!=options.end(); ++i) - i->second.value = package.expand_string(i->second.value); -} - void Config::save() const { if(!changed) @@ -93,7 +69,6 @@ bool Config::set_option(const string &opt, const string &val) void Config::load() { FS::Path fn = package.get_source()/".config"; - FS::Stat stat = FS::stat(fn); if(stat) {