Add WKDeprecatedFunctions.cpp and move WKArrayIsMutable there
authorandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 13 Nov 2013 17:01:27 +0000 (17:01 +0000)
committerandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 13 Nov 2013 17:01:27 +0000 (17:01 +0000)
https://bugs.webkit.org/show_bug.cgi?id=124284

Reviewed by Andreas Kling.

* Shared/API/c/WKDeprecatedFunctions.cpp: Copied from Source/WebKit2/Shared/API/c/WKMutableArray.h.
(WKArrayIsMutable):
* Shared/API/c/WKMutableArray.cpp:
* Shared/API/c/WKMutableArray.h:
* WebKit2.xcodeproj/project.pbxproj:

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

Source/WebKit2/ChangeLog
Source/WebKit2/Shared/API/c/WKDeprecatedFunctions.cpp [new file with mode: 0644]
Source/WebKit2/Shared/API/c/WKMutableArray.cpp
Source/WebKit2/Shared/API/c/WKMutableArray.h
Source/WebKit2/WebKit2.xcodeproj/project.pbxproj

index a44bf94..55e3ff6 100644 (file)
@@ -1,3 +1,16 @@
+2013-11-13  Anders Carlsson  <andersca@apple.com>
+
+        Add WKDeprecatedFunctions.cpp and move WKArrayIsMutable there
+        https://bugs.webkit.org/show_bug.cgi?id=124284
+
+        Reviewed by Andreas Kling.
+
+        * Shared/API/c/WKDeprecatedFunctions.cpp: Copied from Source/WebKit2/Shared/API/c/WKMutableArray.h.
+        (WKArrayIsMutable):
+        * Shared/API/c/WKMutableArray.cpp:
+        * Shared/API/c/WKMutableArray.h:
+        * WebKit2.xcodeproj/project.pbxproj:
+
 2013-11-12  Anders Carlsson  <andersca@apple.com>
 
         API::Object::Type should be a strongly typed enum
diff --git a/Source/WebKit2/Shared/API/c/WKDeprecatedFunctions.cpp b/Source/WebKit2/Shared/API/c/WKDeprecatedFunctions.cpp
new file mode 100644 (file)
index 0000000..67130a1
--- /dev/null
@@ -0,0 +1,37 @@
+/*
+ * Copyright (C) 2013 Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ * THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include "config.h"
+
+#include "WKArray.h"
+
+// Deprecated functions that should be removed from the framework once nobody uses them.
+
+WK_EXPORT bool WKArrayIsMutable(WKArrayRef array);
+
+bool WKArrayIsMutable(WKArrayRef array)
+{
+    return false;
+}
index 0708142..1a637d1 100644 (file)
@@ -36,12 +36,6 @@ WKMutableArrayRef WKMutableArrayCreate()
     return const_cast<WKMutableArrayRef>(toAPI(ImmutableArray::create().leakRef()));
 }
 
-bool WKArrayIsMutable(WKArrayRef arrayRef)
-{
-    // FIXME: This function should be removed.
-    return false;
-}
-
 void WKArrayAppendItem(WKMutableArrayRef arrayRef, WKTypeRef itemRef)
 {
     toImpl(arrayRef)->elements().append(toImpl(itemRef));
index a0dc06a..839f316 100644 (file)
@@ -38,8 +38,6 @@ extern "C" {
 
 WK_EXPORT WKMutableArrayRef WKMutableArrayCreate();
 
-WK_EXPORT bool WKArrayIsMutable(WKArrayRef array);
-
 WK_EXPORT void WKArrayAppendItem(WKMutableArrayRef array, WKTypeRef item);
 
 WK_EXPORT void WKArrayRemoveItemAtIndex(WKMutableArrayRef array, size_t index);
index 1fcd657..df1a4d2 100644 (file)
                1AF05D8714688348008B1E81 /* TiledCoreAnimationDrawingAreaProxy.h in Headers */ = {isa = PBXBuildFile; fileRef = 1AF05D8514688348008B1E81 /* TiledCoreAnimationDrawingAreaProxy.h */; };
                1AF1AC6B1651759E00C17D7F /* RemoteLayerTreeTransaction.mm in Sources */ = {isa = PBXBuildFile; fileRef = 1AF1AC691651759E00C17D7F /* RemoteLayerTreeTransaction.mm */; };
                1AF1AC6C1651759E00C17D7F /* RemoteLayerTreeTransaction.h in Headers */ = {isa = PBXBuildFile; fileRef = 1AF1AC6A1651759E00C17D7F /* RemoteLayerTreeTransaction.h */; };
+               1AFF49001833DE78009AB15A /* WKDeprecatedFunctions.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AFF48FE1833DE78009AB15A /* WKDeprecatedFunctions.cpp */; };
                1C8E25A81270E3BB00BC7BD0 /* WebInspectorFrontendClient.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1C8E256B1270DE3800BC7BD0 /* WebInspectorFrontendClient.cpp */; };
                1C8E25A91270E3BC00BC7BD0 /* WebInspectorFrontendClient.h in Headers */ = {isa = PBXBuildFile; fileRef = 1C8E256A1270DE3800BC7BD0 /* WebInspectorFrontendClient.h */; };
                1C8E28201275D15400BC7BD0 /* WebInspector.h in Headers */ = {isa = PBXBuildFile; fileRef = 1C8E281E1275D15400BC7BD0 /* WebInspector.h */; };
                1AF05D8514688348008B1E81 /* TiledCoreAnimationDrawingAreaProxy.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TiledCoreAnimationDrawingAreaProxy.h; sourceTree = "<group>"; };
                1AF1AC691651759E00C17D7F /* RemoteLayerTreeTransaction.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = RemoteLayerTreeTransaction.mm; sourceTree = "<group>"; };
                1AF1AC6A1651759E00C17D7F /* RemoteLayerTreeTransaction.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RemoteLayerTreeTransaction.h; sourceTree = "<group>"; };
+               1AFF48FE1833DE78009AB15A /* WKDeprecatedFunctions.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = WKDeprecatedFunctions.cpp; sourceTree = "<group>"; };
                1BB417C912C00CCA002BE67B /* TextCheckerCompletion.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = TextCheckerCompletion.cpp; sourceTree = "<group>"; };
                1C77C1951288A872006A742F /* WebInspectorProxy.messages.in */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = WebInspectorProxy.messages.in; sourceTree = "<group>"; };
                1C8E256A1270DE3800BC7BD0 /* WebInspectorFrontendClient.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WebInspectorFrontendClient.h; sourceTree = "<group>"; };
                                BC4075DB124FF0270068F20A /* WKData.cpp */,
                                BC4075DC124FF0270068F20A /* WKData.h */,
                                377EAD4417E2C51A002D193D /* WKDeclarationSpecifiers.h */,
+                               1AFF48FE1833DE78009AB15A /* WKDeprecatedFunctions.cpp */,
                                BC4075DD124FF0270068F20A /* WKDictionary.cpp */,
                                BC4075DE124FF0270068F20A /* WKDictionary.h */,
                                BC4075DF124FF0270068F20A /* WKError.cpp */,
                                1A44B95B16B73F9F00B7BBD8 /* StorageManager.cpp in Sources */,
                                1AB31A9616BC688100F6DBC9 /* StorageManagerMessageReceiver.cpp in Sources */,
                                1A44B95716B737AA00B7BBD8 /* StorageNamespaceImpl.cpp in Sources */,
+                               1AFF49001833DE78009AB15A /* WKDeprecatedFunctions.cpp in Sources */,
                                517DD5BE180DA7D30081660B /* DatabaseProcessProxy.cpp in Sources */,
                                296BD85E15019BC30071F424 /* StringUtilities.mm in Sources */,
                                1ZZ417EF12C00D87002BE67B /* TextCheckerCompletion.cpp in Sources */,