diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-06-20 14:38:12 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-06-20 14:38:12 +0100 |
commit | 5a7bd335ef32121c2fd500e9688dd6bd4fb23662 (patch) | |
tree | 6e74583fcad156482e8cbad6d71b69a730286229 | |
parent | 77faf36fbd79edfe360e2b9e5393b3d979a4e0d3 (diff) |
FileExtension unused
-rw-r--r-- | cosv/inc/cosv/ploc.hxx | 1 | ||||
-rw-r--r-- | cosv/source/storage/ploc.cxx | 12 |
2 files changed, 0 insertions, 13 deletions
diff --git a/cosv/inc/cosv/ploc.hxx b/cosv/inc/cosv/ploc.hxx index f22cb8c736b6..c082951b33cd 100644 --- a/cosv/inc/cosv/ploc.hxx +++ b/cosv/inc/cosv/ploc.hxx @@ -79,7 +79,6 @@ class Path const DirectoryChain & DirChain() const { return aPath; } const String & File() const { return sFile; } - const char * FileExtension() const; bool IsValid() const; bool IsDirectory() const { return sFile.length() == 0; } bool IsFile() const { return sFile.length() > 0; } diff --git a/cosv/source/storage/ploc.cxx b/cosv/source/storage/ploc.cxx index 6d75a03543ab..a4c3ad274352 100644 --- a/cosv/source/storage/ploc.cxx +++ b/cosv/source/storage/ploc.cxx @@ -106,18 +106,6 @@ Path::SetFile( const String & i_sName ) sFile = i_sName; } -const char * -Path::FileExtension() const -{ - const char * - ext = strrchr(sFile, '.'); - if (ext != 0) - ++ext; - else - ext = ""; - return ext; -} - bool Path::IsValid() const { |