@@ -608,7 +608,6 @@ uint32_t FastCopy(Local<Value> receiver,
608608
609609 CopyImpl (source_obj, target_obj, target_start, source_start, to_copy);
610610
611- memmove (target_data + target_start, source.data () + source_start, to_copy);
612611 return to_copy;
613612}
614613
@@ -871,7 +870,6 @@ void CompareOffset(const FunctionCallbackInfo<Value> &args) {
871870 args.GetReturnValue ().Set (val);
872871}
873872
874- <<<<<<< HEAD
875873int32_t CompareImpl (Local<Value> a_obj, Local<Value> b_obj) {
876874 ArrayBufferViewContents<char > a (a_obj);
877875 ArrayBufferViewContents<char > b (b_obj);
@@ -906,22 +904,6 @@ int32_t FastCompare(Local<Value>,
906904
907905static CFunction fast_compare (CFunction::Make(FastCompare));
908906
909- void Compare (const FunctionCallbackInfo<Value> &args) {
910- Environment* env = Environment::GetCurrent (args);
911-
912- THROW_AND_RETURN_UNLESS_BUFFER (env, args[0 ]);
913- THROW_AND_RETURN_UNLESS_BUFFER (env, args[1 ]);
914- ArrayBufferViewContents<char > a (args[0 ]);
915- ArrayBufferViewContents<char > b (args[1 ]);
916-
917- size_t cmp_length = std::min (a.length (), b.length ());
918-
919- int val = normalizeCompareVal (cmp_length > 0 ?
920- memcmp (a.data (), b.data (), cmp_length) : 0 ,
921- a.length (), b.length ());
922- args.GetReturnValue ().Set (val);
923- }
924-
925907// Computes the offset for starting an indexOf or lastIndexOf search.
926908// Returns either a valid offset in [0...<length - 1>], ie inside the Buffer,
927909// or -1 to signal that there is no possible match.
0 commit comments