mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-10 04:50:31 -04:00
chore: remove unused code
This commit is contained in:
parent
70d3c8232d
commit
a0acdacd03
@ -208,14 +208,8 @@ std::shared_ptr<inode> file::get_inode() const { return inode_; }
|
|||||||
|
|
||||||
void file::accept(entry_visitor& v, bool) { v.visit(this); }
|
void file::accept(entry_visitor& v, bool) { v.visit(this); }
|
||||||
|
|
||||||
void file::scan(os_access const& os, progress& prog) {
|
void file::scan(os_access const& /*os*/, progress& /*prog*/) {
|
||||||
std::shared_ptr<mmif> mm;
|
DWARFS_THROW(runtime_error, "file::scan() without hash_alg is not used");
|
||||||
|
|
||||||
if (size_t s = size(); s > 0) {
|
|
||||||
mm = os.map_file(fs_path(), s);
|
|
||||||
}
|
|
||||||
|
|
||||||
scan(mm.get(), prog, "xxh3-128");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void file::scan(mmif* mm, progress& prog,
|
void file::scan(mmif* mm, progress& prog,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user