summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-11-03 00:09:12 +0000
committerDan Gohman <gohman@apple.com>2010-11-03 00:09:12 +0000
commita3bb142db6e581e3fb23472c9324e66c3648cb76 (patch)
treecf5ac289652722ae78d71901b7ced791ef48286f /llvm/lib
parentecc4d73498748211042a7c6dd5ae93109d50cd8d (diff)
downloadbcm5719-llvm-a3bb142db6e581e3fb23472c9324e66c3648cb76.tar.gz
bcm5719-llvm-a3bb142db6e581e3fb23472c9324e66c3648cb76.zip
Delete unused variables.
llvm-svn: 118128
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/System/Unix/Path.inc3
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/System/Unix/Path.inc b/llvm/lib/System/Unix/Path.inc
index a8ae1a756b4..d5b7542757d 100644
--- a/llvm/lib/System/Unix/Path.inc
+++ b/llvm/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) {
OpenPOWER on IntegriCloud