chore: remove old code that is no longer needed

This commit is contained in:
Marcus Holland-Moritz 2025-08-25 17:31:44 +02:00
parent 8d57917f05
commit 7f07ee938b
4 changed files with 0 additions and 12 deletions

View File

@ -79,7 +79,6 @@ class entry : public entry_interface {
bool has_parent() const;
std::shared_ptr<entry> parent() const;
void clear_name();
std::filesystem::path fs_path() const;
std::string path_as_string() const override;
std::string dpath() const override;

View File

@ -81,12 +81,6 @@ class progress {
return ctx;
}
template <typename T>
void run_sync(T&& fun) const {
std::lock_guard lock{mx_};
std::forward<T>(fun)();
}
std::vector<std::shared_ptr<context>> get_active_contexts() const;
// NOLINTBEGIN(cppcoreguidelines-non-private-member-variables-in-classes)

View File

@ -80,8 +80,6 @@ bool entry::has_parent() const { return static_cast<bool>(parent_.lock()); }
std::shared_ptr<entry> entry::parent() const { return parent_.lock(); }
void entry::clear_name() { name_.clear(); }
std::u8string entry::u8name() const { return string_to_u8string(name_); }
fs::path entry::fs_path() const {

View File

@ -906,9 +906,6 @@ void scanner_<LoggerPolicy>::scan(
});
prog.current.store(nullptr);
// this is actually needed
prog.run_sync([&] { root->clear_name(); });
LOG_INFO << "saving chunks...";
mdb.gather_chunks(im, *blockmgr, prog.chunk_count);