Skip to content

Commit 91b4a56

Browse files
bnoordhuisindutny
authored andcommitted
src: remove unused ExternString constructor
Remove an unused (and unsafe) constructor. Unsafe because it doesn't initialize the data_ field.
1 parent 1f17f88 commit 91b4a56

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/string_bytes.cc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,6 @@ using v8::Value;
4848
template <typename ResourceType, typename TypeName>
4949
class ExternString: public ResourceType {
5050
public:
51-
explicit ExternString(Isolate* isolate) : isolate_(isolate) {
52-
}
53-
5451
~ExternString() {
5552
delete[] data_;
5653
isolate()->AdjustAmountOfExternalAllocatedMemory(-length_);

0 commit comments

Comments
 (0)