diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-02-06 14:05:38 -0800 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-02-07 00:44:27 +0100 |
commit | 5e7c721c80b3d968bbc83cf7f744dde9483a2d19 (patch) | |
tree | 6d7f668af4cf00770b82ae0841ee1b86005bc355 /tools | |
parent | 80f96ca6b5bd8a491275c5e192196642854a885c (diff) |
tools: fsys: Delete unused DirEntry::GetDevice()
Diffstat (limited to 'tools')
-rw-r--r-- | tools/source/fsys/unx.cxx | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/tools/source/fsys/unx.cxx b/tools/source/fsys/unx.cxx index b53caac54763..f8be021b8ff1 100644 --- a/tools/source/fsys/unx.cxx +++ b/tools/source/fsys/unx.cxx @@ -241,27 +241,6 @@ String DirEntry::GetVolume() const String()); } -DirEntry DirEntry::GetDevice() const -{ - DBG_CHKTHIS( DirEntry, ImpCheckDirEntry ); - - DirEntry aPath( *this ); - aPath.ToAbs(); - - struct stat buf; - while (stat(rtl::OUStringToOString(aPath.GetFull(), osl_getThreadTextEncoding()).getStr(), &buf)) - { - if (aPath.Level() <= 1) - return String(); - aPath = aPath [1]; - } - mymnttab &rMnt = mymnt::get(); - return ((buf.st_dev == rMnt.mountdevice || - GetMountEntry(buf.st_dev, &rMnt)) ? - String( rMnt.mountpoint, osl_getThreadTextEncoding()) : - String()); -} - /************************************************************************* |* |* DirEntry::SetCWD() |