From 417e1af1982a3c4fb429162042379f07d7e9076b Mon Sep 17 00:00:00 2001 From: Ruben Verborgh Date: Sun, 4 Dec 2016 17:03:23 +0100 Subject: [PATCH] Remove unused getParserPull method. --- hdt-lib/include/RDFParser.hpp | 3 --- hdt-lib/src/rdf/RDFParser.cpp | 17 ----------------- 2 files changed, 20 deletions(-) diff --git a/hdt-lib/include/RDFParser.hpp b/hdt-lib/include/RDFParser.hpp index b05d8830..0c144b76 100644 --- a/hdt-lib/include/RDFParser.hpp +++ b/hdt-lib/include/RDFParser.hpp @@ -72,9 +72,6 @@ class RDFParserPull: public IteratorTripleString { virtual void reset()=0; virtual uint64_t getPos()=0; virtual uint64_t getSize()=0; - - static RDFParserPull *getParserPull(const char *filename, RDFNotation notation); - static RDFParserPull *getParserPull(std::istream &stream, RDFNotation notation); }; class ParseException: public exception { diff --git a/hdt-lib/src/rdf/RDFParser.cpp b/hdt-lib/src/rdf/RDFParser.cpp index 43b0d267..c07138cf 100644 --- a/hdt-lib/src/rdf/RDFParser.cpp +++ b/hdt-lib/src/rdf/RDFParser.cpp @@ -17,23 +17,6 @@ namespace hdt { -RDFParserPull *RDFParserPull::getParserPull(std::istream &stream, RDFNotation notation) { - if(notation==NTRIPLES) { - return new RDFParserNtriples(stream,notation); - } else { - throw ParseException("No Parser available for input RDF Format N-Triples"); - } -} - -RDFParserPull *RDFParserPull::getParserPull(const char *fileName, RDFNotation notation) { - if(notation==NTRIPLES) { - return new RDFParserNtriples(fileName,notation); - } else { - throw ParseException("No Parser available for input RDF Format N-Triples"); - } -} - - RDFParserCallback *RDFParserCallback::getParserCallback(RDFNotation notation) { #ifdef HAVE_SERD if(notation==TURTLE || notation==NTRIPLES) {