summaryrefslogtreecommitdiff
path: root/lib/Support/Windows
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-06-11 19:29:48 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-06-11 19:29:48 +0000
commitb4d07b770c41b285a613a5b4953fe815044fad19 (patch)
treee10960166d395f921f7ceddeb6410245af5c47eb /lib/Support/Windows
parentaab313f80bc447ecd3a6073014243b108bac6855 (diff)
downloadllvm-b4d07b770c41b285a613a5b4953fe815044fad19.tar.gz
llvm-b4d07b770c41b285a613a5b4953fe815044fad19.tar.bz2
llvm-b4d07b770c41b285a613a5b4953fe815044fad19.tar.xz
Remove Path::getBasename.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183779 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Windows')
-rw-r--r--lib/Support/Windows/Path.inc16
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/Support/Windows/Path.inc b/lib/Support/Windows/Path.inc
index 44c89ad8fb..2b75e737ba 100644
--- a/lib/Support/Windows/Path.inc
+++ b/lib/Support/Windows/Path.inc
@@ -257,22 +257,6 @@ StringRef Path::getDirname() const {
}
StringRef
-Path::getBasename() const {
- // Find the last slash
- size_t slash = path.rfind('/');
- if (slash == std::string::npos)
- slash = 0;
- else
- slash++;
-
- size_t dot = path.rfind('.');
- if (dot == std::string::npos || dot < slash)
- return StringRef(path).substr(slash);
- else
- return StringRef(path).substr(slash, dot - slash);
-}
-
-StringRef
Path::getSuffix() const {
// Find the last slash
size_t slash = path.rfind('/');