Delete unused variables.
authorDan Gohman <gohman@apple.com>
Wed, 3 Nov 2010 00:09:12 +0000 (00:09 +0000)
committerDan Gohman <gohman@apple.com>
Wed, 3 Nov 2010 00:09:12 +0000 (00:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118128 91177308-0d34-0410-b5e6-96231b3b80d8

lib/System/Unix/Path.inc

index a8ae1a756b43121658169b50503b41ebffa014d3..d5b7542757da7b2524166b00d30b9cbc6cc357ce 100644 (file)
@@ -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) {