]> granicus.if.org Git - icinga2/blobdiff - lib/base/scriptglobal.cpp
Remove unused includes
[icinga2] / lib / base / scriptglobal.cpp
index dc7bb3296a0b012e75b09a0204f8500e8c78d331..d9e180cf97c1c1f0a36b9ab1140b6f8e9a822c0b 100644 (file)
@@ -49,8 +49,7 @@ Value ScriptGlobal::Get(const String& name, const Value *defaultValue)
 
 void ScriptGlobal::Set(const String& name, const Value& value)
 {
-       std::vector<String> tokens;
-       boost::algorithm::split(tokens, name, boost::is_any_of("."));
+       std::vector<String> tokens = name.Split(".");
 
        if (tokens.empty())
                BOOST_THROW_EXCEPTION(std::invalid_argument("Name must not be empty"));