Remove unreachable lines
authorRyan Dahl <ry@tinyclouds.org>
Wed, 4 Nov 2009 01:18:31 +0000 (02:18 +0100)
committerRyan Dahl <ry@tinyclouds.org>
Wed, 4 Nov 2009 01:18:31 +0000 (02:18 +0100)
src/node_file.cc

index cac71db..f4cda23 100644 (file)
@@ -230,9 +230,6 @@ static Handle<Value> Rename(const Arguments& args) {
   String::Utf8Value new_path(args[1]->ToString());
 
   return scope.Close(EIOPromise::Rename(*path, *new_path));
-  Promise *promise = EIOPromise::Create();
-
-  return scope.Close(promise->Handle());
 }
 
 static Handle<Value> Unlink(const Arguments& args) {