diff options
author | Dan Gohman <gohman@apple.com> | 2010-11-03 00:09:12 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-11-03 00:09:12 +0000 |
commit | 4e0a9c51b4c25b648f23915ba9722aa9fd985e0b (patch) | |
tree | e48ed0ce4f20f771f082f408846e8cefa6880eeb /lib/System/Unix | |
parent | aabb9b67bcb7e69f73fcd249f0c31c2959a5c3b3 (diff) |
Delete unused variables.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118128 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System/Unix')
-rw-r--r-- | lib/System/Unix/Path.inc | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/System/Unix/Path.inc b/lib/System/Unix/Path.inc index a8ae1a756b..d5b7542757 100644 --- a/lib/System/Unix/Path.inc +++ b/lib/System/Unix/Path.inc @@ -583,7 +583,6 @@ bool Path::set(StringRef a_path) { if (a_path.empty()) return false; - std::string save(path); path = a_path; return true; } @@ -592,7 +591,6 @@ bool Path::appendComponent(StringRef name) { if (name.empty()) return false; - std::string save(path); if (!lastIsSlash(path)) path += '/'; path += name; @@ -618,7 +616,6 @@ Path::eraseComponent() { bool Path::eraseSuffix() { - std::string save = path; size_t dotpos = path.rfind('.',path.size()); size_t slashpos = path.rfind('/',path.size()); if (dotpos != std::string::npos) { |