From 40467b5bd1c388aa8f8ea97d6ecedf89e821011c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Sun, 27 Jun 2004 19:27:20 +0000 Subject: [PATCH] BPath does have a (BEntry *) constructor; there is no need for code duplication here. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8189 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/storage/Entry.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/kits/storage/Entry.cpp b/src/kits/storage/Entry.cpp index 3cc830c98e..c28d1f8e5f 100644 --- a/src/kits/storage/Entry.cpp +++ b/src/kits/storage/Entry.cpp @@ -524,15 +524,8 @@ BEntry::GetPath(BPath *path) const if (path == NULL) return B_BAD_VALUE; - - entry_ref ref; - status_t status; - - status = GetRef(&ref); - if (status != B_OK) - return status; - - return path->SetTo(&ref); + + return path->SetTo(this); } /*! \brief Gets the parent of the BEntry as another BEntry.