mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05: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:
1 parent
1f17f88071
commit
91b4a561df
1 file changed
-3
@@ -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