diff --git a/headers/build/os/storage/Directory.h b/headers/build/os/storage/Directory.h index f18bfe2c83..73592cf911 100644 --- a/headers/build/os/storage/Directory.h +++ b/headers/build/os/storage/Directory.h @@ -36,8 +36,6 @@ class BDirectory : public BNode, public BEntryList { status_t GetEntry(BEntry *entry) const; - bool IsRootDirectory() const; - status_t FindEntry(const char *path, BEntry *entry, bool traverse = false) const; diff --git a/src/build/libbe/storage/Directory.cpp b/src/build/libbe/storage/Directory.cpp index 68dffee669..f8b1043fcb 100644 --- a/src/build/libbe/storage/Directory.cpp +++ b/src/build/libbe/storage/Directory.cpp @@ -14,8 +14,6 @@ #include #include -#include - #include #include #include @@ -226,19 +224,6 @@ BDirectory::GetEntry(BEntry* entry) const } -bool -BDirectory::IsRootDirectory() const -{ - // compare the directory's node ID with the ID of the root node of the FS - bool result = false; - node_ref ref; - fs_info info; - if (GetNodeRef(&ref) == B_OK && fs_stat_dev(ref.device, &info) == 0) - result = (ref.node == info.root); - return result; -} - - status_t BDirectory::FindEntry(const char* path, BEntry* entry, bool traverse) const { diff --git a/src/build/libbe/storage/Node.cpp b/src/build/libbe/storage/Node.cpp index 18644d92e4..971c21f267 100644 --- a/src/build/libbe/storage/Node.cpp +++ b/src/build/libbe/storage/Node.cpp @@ -16,8 +16,6 @@ #include #include -#include - #include #include #include