]> granicus.if.org Git - icinga2/blobdiff - lib/icinga/service.cpp
Remove unused includes
[icinga2] / lib / icinga / service.cpp
index c1e0149e5592249ec314a1aacd2eeab4f02278a0..ffbbedd2d1acbb9d8749a9ebc84df1bfe4db2475 100644 (file)
@@ -25,8 +25,6 @@
 #include "base/objectlock.hpp"
 #include "base/convert.hpp"
 #include "base/utility.hpp"
-#include <boost/algorithm/string/split.hpp>
-#include <boost/algorithm/string/classification.hpp>
 
 using namespace icinga;
 
@@ -44,8 +42,7 @@ String ServiceNameComposer::MakeName(const String& shortName, const Object::Ptr&
 
 Dictionary::Ptr ServiceNameComposer::ParseName(const String& name) const
 {
-       std::vector<String> tokens;
-       boost::algorithm::split(tokens, name, boost::is_any_of("!"));
+       std::vector<String> tokens = name.Split("!");
 
        if (tokens.size() < 2)
                BOOST_THROW_EXCEPTION(std::invalid_argument("Invalid Service name."));