Remove the (now useless) parallel parameter in the getFileContent() function from filefuncs.cpp

This commit is contained in:
Username404 2021-12-28 10:20:25 +01:00
parent 082e4ad175
commit 620bc4ba44
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
3 changed files with 4 additions and 4 deletions

View File

@ -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()) {

View File

@ -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"

View File

@ -47,8 +47,8 @@ int main(int argc, char* argv[]) {
}
}
const auto currentTarget = Target::forName(target, newLines);
const auto compile = [&target, &currentTarget, &parallel](string_view name) -> string {
string transpiledString = currentTarget->transpileWithTree(parseString(getFileContent(name.data(), parallel)));
const auto compile = [&target, &currentTarget](string_view name) -> string {
string transpiledString = currentTarget->transpileWithTree(parseString(getFileContent(name.data())));
name.remove_suffix(6);
string outputFile;
(outputFile = name).append(target);