StaticSchema: Remove unused method
Change-Id: I823773f4b717f35226bc8f8633a2e65f8f7960f7
diff --git a/src/static_schema.cpp b/src/static_schema.cpp
index a1a5602..5fdc42a 100644
--- a/src/static_schema.cpp
+++ b/src/static_schema.cpp
@@ -20,15 +20,6 @@
return m_nodes.at(name);
}
-bool StaticSchema::nodeExists(const std::string& location, const std::string& node) const
-{
- if (node.empty())
- return true;
- const auto& childrenRef = children(location);
-
- return childrenRef.find(node) != childrenRef.end();
-}
-
bool StaticSchema::isModule(const std::string& name) const
{
return m_modules.find(name) != m_modules.end();
diff --git a/src/static_schema.hpp b/src/static_schema.hpp
index aab4383..0426f02 100644
--- a/src/static_schema.hpp
+++ b/src/static_schema.hpp
@@ -89,7 +89,6 @@
private:
const std::unordered_map<std::string, NodeInfo>& children(const std::string& name) const;
void getIdentSet(const identityRef_& ident, std::set<identityRef_>& res) const;
- bool nodeExists(const std::string& location, const std::string& node) const;
std::unordered_map<std::string, std::unordered_map<std::string, NodeInfo>> m_nodes;
std::set<std::string> m_modules;