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 authored and Fedor Indutny committed 2014-03-16 16:15:33 +04:00
1 parent 1f17f88071
commit 91b4a561df
1 file changed
-3
-3
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_);