summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-06-20 14:38:12 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-06-20 14:38:12 +0100
commit66b4832d69f82af816e1aee212ab23bc00974eaa (patch)
tree398c0b8b1c6a51b512b2ce2983330b88984c224c
parent1202e5c48f36c24bf904204239644d0083ea2ed5 (diff)
FileExtension unused
-rw-r--r--cosv/inc/cosv/ploc.hxx1
-rw-r--r--cosv/source/storage/ploc.cxx12
2 files changed, 0 insertions, 13 deletions
diff --git a/cosv/inc/cosv/ploc.hxx b/cosv/inc/cosv/ploc.hxx
index e7514c8d..1c84c38e 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 000eafd7..de78d010 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
{