Remove the (now useless) parallel parameter in the getFileContent() function from filefuncs.cpp
This commit is contained in:
parent
082e4ad175
commit
620bc4ba44
|
@ -3,7 +3,7 @@
|
|||
#include <system_error>
|
||||
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()) {
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue