From d684f50acba12152126f0c4e9c83ad1626e8b91c Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Wed, 14 Aug 2013 17:45:40 +0200 Subject: [PATCH] src: remove redundant symbol init in node_file.cc Don't lazy-init the oncomplete symbol string in the After() function, it has already been created at module init time. --- src/node_file.cc | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/node_file.cc b/src/node_file.cc index 75f772b211f..402aa310071 100644 --- a/src/node_file.cc +++ b/src/node_file.cc @@ -209,9 +209,6 @@ static void After(uv_fs_t *req) { } } - if (oncomplete_sym.IsEmpty()) { - oncomplete_sym = FIXED_ONE_BYTE_STRING(node_isolate, "oncomplete"); - } MakeCallback(req_wrap->object(), oncomplete_sym, argc, argv); uv_fs_req_cleanup(&req_wrap->req_);