From bc02054d56118110a36aea72d21f9d5e73d07d1f Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Tue, 22 Oct 2024 14:00:41 +0200 Subject: refactor file reading factory --- FileReader.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'FileReader.cpp') diff --git a/FileReader.cpp b/FileReader.cpp index b76de50..89ebe17 100644 --- a/FileReader.cpp +++ b/FileReader.cpp @@ -1,9 +1,6 @@ -#include - #include "FileReader.h" -#include "FileReaderFactory.h" -FileReader::FileReader(const std::string protocol) { - FileReaderFactory::register_strategy(protocol, this); -} +using namespace std; + +FileReader::FileReader(const string & url) : url(url) { } -- cgit v1.2.3