mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-16 07:46:27 -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;
|
boost::integer_range<uint32_t> entry_range() const;
|
||||||
|
|
||||||
std::optional<directory_view> parent() const;
|
|
||||||
|
|
||||||
uint32_t parent_inode() const;
|
uint32_t parent_inode() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -205,12 +205,4 @@ uint32_t directory_view::parent_inode() const {
|
|||||||
return ent;
|
return ent;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::optional<directory_view> directory_view::parent() const {
|
|
||||||
if (inode_ == 0) {
|
|
||||||
return std::nullopt;
|
|
||||||
}
|
|
||||||
|
|
||||||
return directory_view(parent_inode(), meta_);
|
|
||||||
}
|
|
||||||
|
|
||||||
} // namespace dwarfs
|
} // namespace dwarfs
|
||||||
|
Loading…
x
Reference in New Issue
Block a user