From 3ddac4d86ca62d350c5ef5b5c43a751fb9a2a4a1 Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Thu, 27 Sep 2018 16:47:58 -0700 Subject: libdeno: remove dead code --- libdeno/binding.cc | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) (limited to 'libdeno/binding.cc') diff --git a/libdeno/binding.cc b/libdeno/binding.cc index a790573a7..552b4c6e5 100644 --- a/libdeno/binding.cc +++ b/libdeno/binding.cc @@ -11,14 +11,6 @@ #include "deno.h" #include "internal.h" -void hexdump(const uint8_t* buf, size_t len) { - for (size_t i = 0; i < len; ++i) { - char ch = buf[i]; - printf("%02x ", ch & 0xff); - } - printf("\n"); -} - namespace deno { Deno* FromIsolate(v8::Isolate* isolate) { @@ -145,20 +137,6 @@ void HandleException(v8::Local context, } } -/* -bool AbortOnUncaughtExceptionCallback(v8::Isolate* isolate) { - return true; -} - -void MessageCallback2(Local message, v8::Local data) { - printf("MessageCallback2\n\n"); -} - -void FatalErrorCallback2(const char* location, const char* message) { - printf("FatalErrorCallback2\n"); -} -*/ - void ExitOnPromiseRejectCallback( v8::PromiseRejectMessage promise_reject_message) { auto* isolate = v8::Isolate::GetCurrent(); @@ -244,7 +222,7 @@ void Send(const v8::FunctionCallbackInfo& args) { v8::Locker locker(d->isolate); v8::EscapableHandleScope handle_scope(isolate); - CHECK_EQ(d->currentArgs, nullptr); // libdeno.send re-entry forbidden. + CHECK_EQ(d->currentArgs, nullptr); // libdeno.send re-entry forbidden. int32_t req_id = d->next_req_id++; v8::Local control_v = args[0]; -- cgit v1.2.3