mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-13 06:16:55 -04:00
chore: remove old code that is no longer needed
This commit is contained in:
parent
8d57917f05
commit
7f07ee938b
@ -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;
|
||||
|
@ -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)
|
||||
|
@ -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 {
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user