projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3de943
)
Remove unreachable lines
author
Ryan Dahl
<ry@tinyclouds.org>
Wed, 4 Nov 2009 01:18:31 +0000
(
02:18
+0100)
committer
Ryan Dahl
<ry@tinyclouds.org>
Wed, 4 Nov 2009 01:18:31 +0000
(
02:18
+0100)
src/node_file.cc
patch
|
blob
|
history
diff --git
a/src/node_file.cc
b/src/node_file.cc
index
cac71db
..
f4cda23
100644
(file)
--- a/
src/node_file.cc
+++ b/
src/node_file.cc
@@
-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) {