Skip to content

Commit

Permalink
Remove unused variables in code
Browse files Browse the repository at this point in the history
  • Loading branch information
dudoslav committed Feb 29, 2024
1 parent 63b582a commit 80db0ae
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/include/utils/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,7 @@ std::string get_filename(const std::string& filename) {
}

bool local_directory_exists(const std::string& path) {
std::string directoryPath(path);
auto a = std::filesystem::status(directoryPath);
auto b = std::filesystem::is_directory(directoryPath);

return std::filesystem::is_directory(directoryPath);
return std::filesystem::is_directory(path);
}

bool is_local_directory(const std::string& path) {
Expand All @@ -77,11 +73,9 @@ bool is_local_directory(const std::string& path) {

bool subdirectory_exists(
const std::string& path, const std::string& subdirectoryName) {
std::string directoryPath(path);
std::string subdirectoryPath = (std::filesystem::path{directoryPath} /
std::string subdirectoryPath = (std::filesystem::path{path} /
std::filesystem::path{subdirectoryName})
.string();
auto b = std::filesystem::is_directory(subdirectoryPath);
return std::filesystem::is_directory(subdirectoryPath);
}

Expand Down

0 comments on commit 80db0ae

Please sign in to comment.