projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f17f88
)
src: remove unused ExternString constructor
author
Ben Noordhuis
<info@bnoordhuis.nl>
Fri, 14 Mar 2014 20:58:14 +0000
(21:58 +0100)
committer
Fedor Indutny
<fedor.indutny@gmail.com>
Sun, 16 Mar 2014 12:15:33 +0000
(16:15 +0400)
Remove an unused (and unsafe) constructor. Unsafe because it doesn't
initialize the data_ field.
src/string_bytes.cc
patch
|
blob
|
history
diff --git
a/src/string_bytes.cc
b/src/string_bytes.cc
index
a00abbf
..
3f9cdf4
100644
(file)
--- a/
src/string_bytes.cc
+++ b/
src/string_bytes.cc
@@
-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_);