Skip to content

Commit

Permalink
Remove now-unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdewar committed Jul 10, 2024
1 parent e9cec4b commit 1aa8bdf
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
10 changes: 0 additions & 10 deletions src/HealthGPS.Input/zip_file.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,4 @@ void extract_zip_file(const std::filesystem::path &file_path,
}
}
}

std::filesystem::path extract_zip_file_or_load_from_cache(const std::filesystem::path &file_path) {
const auto file_hash = compute_sha256_for_file(file_path);
auto cache_path = get_zip_cache_directory(file_hash);
if (!std::filesystem::exists(cache_path)) {
extract_zip_file(file_path, cache_path);
}

return cache_path;
}
} // namespace hgps::input
5 changes: 0 additions & 5 deletions src/HealthGPS.Input/zip_file.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,4 @@ std::filesystem::path get_zip_cache_directory(const std::string &file_hash);
/// @param output_directory The path to the output folder
void extract_zip_file(const std::filesystem::path &file_path,
const std::filesystem::path &output_directory);

/// @brief Load the contents of the zip file from cache or extract
/// @param file_path Path to zip file
/// @return The path to the cache folder where the contents were extracted
std::filesystem::path extract_zip_file_or_load_from_cache(const std::filesystem::path &file_path);
} // namespace hgps::input

0 comments on commit 1aa8bdf

Please sign in to comment.