From 07d326d02415467ba7f5f238a8e72a9e4b7f1549 Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Tue, 27 Jan 2015 15:38:50 +0100 Subject: Removed no longer needed variant of the clone function --- src/core/parser/ParserContext.cpp | 6 ------ src/core/parser/ParserContext.hpp | 8 -------- 2 files changed, 14 deletions(-) (limited to 'src/core/parser') diff --git a/src/core/parser/ParserContext.cpp b/src/core/parser/ParserContext.cpp index b0d04d4..3a651f0 100644 --- a/src/core/parser/ParserContext.cpp +++ b/src/core/parser/ParserContext.cpp @@ -61,12 +61,6 @@ ParserContext ParserContext::clone(ParserScope &scope, SourceId sourceId) const project, logger, sourceId}; } -ParserContext ParserContext::clone(SourceId sourceId) const -{ - return ParserContext{registry, resourceManager, scope, - project, logger, sourceId}; -} - Manager &ParserContext::getManager() const { return project->getManager(); } } diff --git a/src/core/parser/ParserContext.hpp b/src/core/parser/ParserContext.hpp index f422e10..9b6eca0 100644 --- a/src/core/parser/ParserContext.hpp +++ b/src/core/parser/ParserContext.hpp @@ -150,14 +150,6 @@ public: */ ParserContext clone(ParserScope &scope, SourceId sourceId) const; - /** - * Clones the ParserContext instance but exchanges the source id. - * - * @param sourceId is the source id the parser is reading from. - * @return a copy of this ParserContext with exchanged source id. - */ - ParserContext clone(SourceId sourceId) const; - /** * Returns a reference pointing at the Registry used within this parser * context. -- cgit v1.2.3