From 91b4a561dfbaa5be170bc5dc1385519ea32ea9e2 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Fri, 14 Mar 2014 21:58:14 +0100 Subject: [PATCH] src: remove unused ExternString constructor Remove an unused (and unsafe) constructor. Unsafe because it doesn't initialize the data_ field. --- src/string_bytes.cc | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/string_bytes.cc b/src/string_bytes.cc index a00abbf..3f9cdf4 100644 --- a/src/string_bytes.cc +++ b/src/string_bytes.cc @@ -48,9 +48,6 @@ using v8::Value; template class ExternString: public ResourceType { public: - explicit ExternString(Isolate* isolate) : isolate_(isolate) { - } - ~ExternString() { delete[] data_; isolate()->AdjustAmountOfExternalAllocatedMemory(-length_); -- 2.7.4