mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
src: remove unused parameters
PR-URL: https://github.com/nodejs/node/pull/13085 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ron Korving <ron@ronkorving.nl> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
This commit is contained in:
3 files changed
+9
-18
No files matched your search
+3
-7
@@ -43,7 +43,7 @@ class StringBytes {
|
||||
v8::Local<v8::Value> encoding,
|
||||
enum encoding _default) {
|
||||
enum encoding enc = ParseEncoding(env->isolate(), encoding, _default);
|
||||
if (!StringBytes::IsValidString(env->isolate(), string, enc)) {
|
||||
if (!StringBytes::IsValidString(string, enc)) {
|
||||
env->ThrowTypeError("Bad input string");
|
||||
return false;
|
||||
}
|
||||
@@ -69,8 +69,7 @@ class StringBytes {
|
||||
// Does the string match the encoding? Quick but non-exhaustive.
|
||||
// Example: a HEX string must have a length that's a multiple of two.
|
||||
// FIXME(bnoordhuis) IsMaybeValidString()? Naming things is hard...
|
||||
static bool IsValidString(v8::Isolate* isolate,
|
||||
v8::Local<v8::String> string,
|
||||
static bool IsValidString(v8::Local<v8::String> string,
|
||||
enum encoding enc);
|
||||
|
||||
// Fast, but can be 2 bytes oversized for Base64, and
|
||||
@@ -87,8 +86,7 @@ class StringBytes {
|
||||
|
||||
// If the string is external then assign external properties to data and len,
|
||||
// then return true. If not return false.
|
||||
static bool GetExternalParts(v8::Isolate* isolate,
|
||||
v8::Local<v8::Value> val,
|
||||
static bool GetExternalParts(v8::Local<v8::Value> val,
|
||||
const char** data,
|
||||
size_t* len);
|
||||
|
||||
@@ -125,8 +123,6 @@ class StringBytes {
|
||||
private:
|
||||
static size_t WriteUCS2(char* buf,
|
||||
size_t buflen,
|
||||
size_t nbytes,
|
||||
const char* data,
|
||||
v8::Local<v8::String> str,
|
||||
int flags,
|
||||
size_t* chars_written);
|
||||
|
||||
Reference in new issue
Block a user