Title: [191126] trunk/Source/WebCore
Revision
191126
Author
o...@webkit.org
Date
2015-10-15 12:34:09 -0700 (Thu, 15 Oct 2015)

Log Message

Get rid of the only once used isIntegerArray function
https://bugs.webkit.org/show_bug.cgi?id=150170

Reviewed by Geoffrey Garen.

* page/Crypto.cpp:
(WebCore::Crypto::getRandomValues):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (191125 => 191126)


--- trunk/Source/WebCore/ChangeLog	2015-10-15 19:31:12 UTC (rev 191125)
+++ trunk/Source/WebCore/ChangeLog	2015-10-15 19:34:09 UTC (rev 191126)
@@ -1,3 +1,13 @@
+2015-10-15  Csaba Osztrogonác  <o...@webkit.org>
+
+        Get rid of the only once used isIntegerArray function
+        https://bugs.webkit.org/show_bug.cgi?id=150170
+
+        Reviewed by Geoffrey Garen.
+
+        * page/Crypto.cpp:
+        (WebCore::Crypto::getRandomValues):
+
 2015-10-15  Tim Horton  <timothy_hor...@apple.com>
 
         Try to fix the iOS build.

Modified: trunk/Source/WebCore/page/Crypto.cpp (191125 => 191126)


--- trunk/Source/WebCore/page/Crypto.cpp	2015-10-15 19:31:12 UTC (rev 191125)
+++ trunk/Source/WebCore/page/Crypto.cpp	2015-10-15 19:34:09 UTC (rev 191126)
@@ -39,15 +39,6 @@
 
 namespace WebCore {
 
-namespace {
-
-bool isIntegerArray(ArrayBufferView* array)
-{
-    return JSC::isInt(array->getType());
-}
-
-}
-
 Crypto::Crypto(Document& document)
     : ContextDestructionObserver(&document)
 {
@@ -64,7 +55,7 @@
 
 void Crypto::getRandomValues(ArrayBufferView* array, ExceptionCode& ec)
 {
-    if (!array || !isIntegerArray(array)) {
+    if (!array || !JSC::isInt(array->getType())) {
         ec = TYPE_MISMATCH_ERR;
         return;
     }
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to