diff --git a/src/env-inl.h b/src/env-inl.h index 9a8216354e646e..d19eb838644dd8 100644 --- a/src/env-inl.h +++ b/src/env-inl.h @@ -44,16 +44,6 @@ namespace node { -NoArrayBufferZeroFillScope::NoArrayBufferZeroFillScope( - IsolateData* isolate_data) - : node_allocator_(isolate_data->node_allocator()) { - if (node_allocator_ != nullptr) node_allocator_->zero_fill_field()[0] = 0; -} - -NoArrayBufferZeroFillScope::~NoArrayBufferZeroFillScope() { - if (node_allocator_ != nullptr) node_allocator_->zero_fill_field()[0] = 1; -} - inline v8::Isolate* IsolateData::isolate() const { return isolate_; } diff --git a/src/env.h b/src/env.h index 5cd34759585eb2..7d19cf8bff5f73 100644 --- a/src/env.h +++ b/src/env.h @@ -112,19 +112,6 @@ class ModuleWrap; class Environment; class Realm; -// Disables zero-filling for ArrayBuffer allocations in this scope. This is -// similar to how we implement Buffer.allocUnsafe() in JS land. -class NoArrayBufferZeroFillScope { - public: - inline explicit NoArrayBufferZeroFillScope(IsolateData* isolate_data); - inline ~NoArrayBufferZeroFillScope(); - - private: - NodeArrayBufferAllocator* node_allocator_; - - friend class Environment; -}; - struct IsolateDataSerializeInfo { std::vector primitive_values; std::vector template_values;