diff options
Diffstat (limited to 'lib/Support/JSONParser.cpp')
-rw-r--r-- | lib/Support/JSONParser.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/Support/JSONParser.cpp b/lib/Support/JSONParser.cpp index 02187409cb..994ca9fc96 100644 --- a/lib/Support/JSONParser.cpp +++ b/lib/Support/JSONParser.cpp @@ -43,18 +43,6 @@ bool JSONParser::validate() { return skip(*parseRoot()); } -template <typename ContainerT> -bool JSONParser::skipContainer(const ContainerT &Container) { - for (typename ContainerT::const_iterator I = Container.current(), - E = Container.end(); - I != E; ++I) { - assert(*I != 0); - if (!skip(**I)) - return false; - } - return !failed(); -} - bool JSONParser::skip(const JSONAtom &Atom) { switch(Atom.getKind()) { case JSONAtom::JK_Array: return skipContainer(*cast<JSONArray>(&Atom)); |