diff options
author | Manuel Klimek <klimek@google.com> | 2011-12-20 11:04:23 +0000 |
---|---|---|
committer | Manuel Klimek <klimek@google.com> | 2011-12-20 11:04:23 +0000 |
commit | 093147abf423428d338979a839273369810698cc (patch) | |
tree | 00cad23560a4ad36ade27866b26a80dc21f0c121 /lib/Support/JSONParser.cpp | |
parent | 9ce6937701cd28fb2aafdd3ec950fb0e70bae8cd (diff) |
Fixes a potential compilation error.
Pulling the template implementation into the header to guarantee
that it's visible to all possible instantiations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146973 91177308-0d34-0410-b5e6-96231b3b80d8
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)); |