summaryrefslogtreecommitdiff
path: root/src/string_bytes.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/string_bytes.cc')
-rw-r--r--src/string_bytes.cc9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/string_bytes.cc b/src/string_bytes.cc
index 131a0333be..f8d7243e5d 100644
--- a/src/string_bytes.cc
+++ b/src/string_bytes.cc
@@ -392,15 +392,6 @@ size_t StringBytes::Write(Isolate* isolate,
}
-bool StringBytes::IsValidString(Local<String> string,
- enum encoding enc) {
- if (enc == HEX && string->Length() % 2 != 0)
- return false;
- // TODO(bnoordhuis) Add BASE64 check?
- return true;
-}
-
-
// Quick and dirty size calculation
// Will always be at least big enough, but may have some extra
// UTF8 can be as much as 3x the size, Base64 can have 1-2 extra bytes