Skip to content

Commit

Permalink
remove file handling, because it's being handled by yyjson_read_file
Browse files Browse the repository at this point in the history
  • Loading branch information
hmeriann committed Sep 25, 2024
1 parent ad51bdd commit 1430522
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
6 changes: 2 additions & 4 deletions src/fuzzyduck.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,21 +32,19 @@ void FuzzyDuck::BeginFuzzing() {
RunQuery("PRAGMA enable_verification");
}
if (!randoms_config_filepath.empty()) {
randoms_config_handle = fs.OpenFile(randoms_config_filepath, FileFlags::FILE_FLAGS_READ);
config = GetConfigFromFile(randoms_config_filepath.c_str());
if (!config.size()) {
config = GetDefaultConfig();
}
} else {
config = GetDefaultConfig();
}
}

void FuzzyDuck::EndFuzzing() {
if (complete_log_handle) {
complete_log_handle->Close();
}
if (randoms_config_handle) {
randoms_config_handle->Close();
}
}

void FuzzyDuck::Fuzz() {
Expand Down
1 change: 0 additions & 1 deletion src/include/fuzzyduck.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#include "random_nums_config.hpp"

namespace duckdb {
using namespace std;

struct FileHandle;

Expand Down

0 comments on commit 1430522

Please sign in to comment.