src: remove unused ExternString constructor
authorBen Noordhuis <info@bnoordhuis.nl>
Fri, 14 Mar 2014 20:58:14 +0000 (21:58 +0100)
committerFedor Indutny <fedor.indutny@gmail.com>
Sun, 16 Mar 2014 12:15:33 +0000 (16:15 +0400)
Remove an unused (and unsafe) constructor.  Unsafe because it doesn't
initialize the data_ field.

src/string_bytes.cc

index a00abbf..3f9cdf4 100644 (file)
@@ -48,9 +48,6 @@ using v8::Value;
 template <typename ResourceType, typename TypeName>
 class ExternString: public ResourceType {
   public:
-    explicit ExternString(Isolate* isolate) : isolate_(isolate) {
-    }
-
     ~ExternString() {
       delete[] data_;
       isolate()->AdjustAmountOfExternalAllocatedMemory(-length_);