diff --git a/src/etc/filefuncs.cpp b/src/etc/filefuncs.cpp index c556747..c33cba1 100644 --- a/src/etc/filefuncs.cpp +++ b/src/etc/filefuncs.cpp @@ -3,7 +3,7 @@ #include using namespace std; -string getFileContent(const string& file, const bool& parallel) +string getFileContent(const string& file) { ifstream fileStream(file, ios::in); if (not fileStream.fail()) { diff --git a/src/headers/misc.hpp b/src/headers/misc.hpp index 75ab17b..0962dee 100644 --- a/src/headers/misc.hpp +++ b/src/headers/misc.hpp @@ -1,7 +1,7 @@ #ifndef YERBACON_MISC_HPP #define YERBACON_MISC_HPP -string getFileContent(const string& file, const bool& parallel); +string getFileContent(const string& file); void outputFileContent(const string& file, string_view content); #include "lex.hpp" diff --git a/src/main.cpp b/src/main.cpp index cb3e783..e70da8c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -47,8 +47,8 @@ int main(int argc, char* argv[]) { } } const auto currentTarget = Target::forName(target, newLines); - const auto compile = [&target, ¤tTarget, ¶llel](string_view name) -> string { - string transpiledString = currentTarget->transpileWithTree(parseString(getFileContent(name.data(), parallel))); + const auto compile = [&target, ¤tTarget](string_view name) -> string { + string transpiledString = currentTarget->transpileWithTree(parseString(getFileContent(name.data()))); name.remove_suffix(6); string outputFile; (outputFile = name).append(target);