Remove unused DataView code from JSDOMBinding.h
authorakling@apple.com <akling@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 3 Mar 2014 22:34:35 +0000 (22:34 +0000)
committerakling@apple.com <akling@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 3 Mar 2014 22:34:35 +0000 (22:34 +0000)
<https://webkit.org/b/129616>

Reviewed by Antti Koivisto.

* bindings/js/JSDOMBinding.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@165010 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/bindings/js/JSDOMBinding.h

index 5005c7513cba7e69283e19b62f1533d90e7d84f9..dc0f47d0daaf31d96857ad888e2fdb7f9fd0e3ba 100644 (file)
@@ -1,3 +1,12 @@
+2014-03-03  Andreas Kling  <akling@apple.com>
+
+        Remove unused DataView code from JSDOMBinding.h
+        <https://webkit.org/b/129616>
+
+        Reviewed by Antti Koivisto.
+
+        * bindings/js/JSDOMBinding.h:
+
 2014-03-03  Simon Fraser  <simon.fraser@apple.com>
 
         Allow overflow-scroll to be one-finger scrolled until we hook up UIScrollViews
index 58eb9a190d71f2a4e4a6a1e17d13f852ed1d4e42..1d3f18e8a45f6605ffeb5d338020be2aedd9b7e4 100644 (file)
@@ -38,7 +38,6 @@
 #include <runtime/JSArray.h>
 #include <runtime/JSArrayBuffer.h>
 #include <runtime/JSCInlines.h>
-#include <runtime/JSDataView.h>
 #include <runtime/JSTypedArrays.h>
 #include <runtime/Lookup.h>
 #include <runtime/ObjectPrototype.h>
@@ -464,14 +463,6 @@ inline PassRefPtr<JSC::Uint32Array> toUint32Array(JSC::JSValue value) { return J
 inline PassRefPtr<JSC::Float32Array> toFloat32Array(JSC::JSValue value) { return JSC::toNativeTypedView<JSC::Float32Adaptor>(value); }
 inline PassRefPtr<JSC::Float64Array> toFloat64Array(JSC::JSValue value) { return JSC::toNativeTypedView<JSC::Float64Adaptor>(value); }
 
-inline PassRefPtr<JSC::DataView> toDataView(JSC::JSValue value)
-{
-    JSC::JSDataView* wrapper = JSC::jsDynamicCast<JSC::JSDataView*>(value);
-    if (!wrapper)
-        return 0;
-    return wrapper->typedImpl();
-}
-
 template<class T> struct NativeValueTraits;
 
 template<>