src: remove unused ExternString constructor

Remove an unused (and unsafe) constructor.  Unsafe because it doesn't
initialize the data_ field.
This commit is contained in:
Ben Noordhuis
2014-03-14 21:58:14 +01:00
committed by Fedor Indutny
parent 1f17f88071
commit 91b4a561df

View 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_);