From fe198ced31e9d055e8d27fa992423d59af4f1535 Mon Sep 17 00:00:00 2001 From: Manuel Klimek Date: Tue, 20 Dec 2011 11:04:23 +0000 Subject: Fixes a potential compilation error. Pulling the template implementation into the header to guarantee that it's visible to all possible instantiations. llvm-svn: 146973 --- llvm/lib/Support/JSONParser.cpp | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'llvm/lib/Support/JSONParser.cpp') diff --git a/llvm/lib/Support/JSONParser.cpp b/llvm/lib/Support/JSONParser.cpp index 02187409cbf..994ca9fc966 100644 --- a/llvm/lib/Support/JSONParser.cpp +++ b/llvm/lib/Support/JSONParser.cpp @@ -43,18 +43,6 @@ bool JSONParser::validate() { return skip(*parseRoot()); } -template -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(&Atom)); -- cgit v1.2.3