Index: Source/bindings/v8/ScriptFunction.cpp |
diff --git a/Source/bindings/v8/ScriptFunction.cpp b/Source/bindings/v8/ScriptFunction.cpp |
deleted file mode 100644 |
index 18315a4b6e367960e3d7fff6b8b2fab06f413f09..0000000000000000000000000000000000000000 |
--- a/Source/bindings/v8/ScriptFunction.cpp |
+++ /dev/null |
@@ -1,32 +0,0 @@ |
-// Copyright 2014 The Chromium Authors. All rights reserved. |
-// Use of this source code is governed by a BSD-style license that can be |
-// found in the LICENSE file. |
- |
-#include "config.h" |
-#include "bindings/v8/ScriptFunction.h" |
- |
-#include "bindings/v8/V8Binding.h" |
- |
-namespace WebCore { |
- |
-void ScriptFunction::callCallback(const v8::FunctionCallbackInfo<v8::Value>& args) |
-{ |
- v8::Isolate* isolate = args.GetIsolate(); |
- ASSERT(!args.Data().IsEmpty()); |
- ScriptFunction* function = ScriptFunction::Cast(args.Data()); |
- v8::Local<v8::Value> value = args.Length() > 0 ? args[0] : v8::Local<v8::Value>(v8::Undefined(isolate)); |
- |
- ScriptValue result = function->call(ScriptValue(ScriptState::current(isolate), value)); |
- |
- v8SetReturnValue(args, result.v8Value()); |
-} |
- |
-v8::Handle<v8::Function> ScriptFunction::adoptByGarbageCollector(PassOwnPtr<ScriptFunction> function) |
-{ |
- if (!function) |
- return v8::Handle<v8::Function>(); |
- v8::Isolate* isolate = function->isolate(); |
- return createClosure(&ScriptFunction::callCallback, function.leakPtr()->releaseToV8GarbageCollector(), isolate); |
-} |
- |
-} // namespace WebCore |