mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-15 07:16:13 -04:00
Remove unused code
This commit is contained in:
parent
e89401291e
commit
a35283a0c3
@ -87,8 +87,6 @@ class directory_view
|
||||
|
||||
boost::integer_range<uint32_t> entry_range() const;
|
||||
|
||||
std::optional<directory_view> parent() const;
|
||||
|
||||
uint32_t parent_inode() const;
|
||||
|
||||
private:
|
||||
|
@ -205,12 +205,4 @@ uint32_t directory_view::parent_inode() const {
|
||||
return ent;
|
||||
}
|
||||
|
||||
std::optional<directory_view> directory_view::parent() const {
|
||||
if (inode_ == 0) {
|
||||
return std::nullopt;
|
||||
}
|
||||
|
||||
return directory_view(parent_inode(), meta_);
|
||||
}
|
||||
|
||||
} // namespace dwarfs
|
||||
|
Loading…
x
Reference in New Issue
Block a user