mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
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:
committed by
Fedor Indutny
parent
1f17f88071
commit
91b4a561df
@@ -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_);
|
||||
|
||||
Reference in New Issue
Block a user