Diff
Modified: trunk/Source/WTF/ChangeLog (160345 => 160346)
--- trunk/Source/WTF/ChangeLog 2013-12-10 01:47:48 UTC (rev 160345)
+++ trunk/Source/WTF/ChangeLog 2013-12-10 02:08:07 UTC (rev 160346)
@@ -1,5 +1,19 @@
2013-12-09 Sam Weinig <s...@webkit.org>
+ Remove FixedArray
+ https://bugs.webkit.org/show_bug.cgi?id=125478
+
+ Reviewed by Anders Carlsson.
+
+ * GNUmakefile.list.am:
+ * WTF.vcxproj/WTF.vcxproj:
+ * WTF.vcxproj/WTF.vcxproj.filters:
+ * WTF.xcodeproj/project.pbxproj:
+ * wtf/CMakeLists.txt:
+ * wtf/FixedArray.h: Removed.
+
+2013-12-09 Sam Weinig <s...@webkit.org>
+
Replace use of WTF::FixedArray with std::array
https://bugs.webkit.org/show_bug.cgi?id=125475
Modified: trunk/Source/WTF/GNUmakefile.list.am (160345 => 160346)
--- trunk/Source/WTF/GNUmakefile.list.am 2013-12-10 01:47:48 UTC (rev 160345)
+++ trunk/Source/WTF/GNUmakefile.list.am 2013-12-10 02:08:07 UTC (rev 160346)
@@ -55,7 +55,6 @@
Source/WTF/wtf/FeatureDefines.h \
Source/WTF/wtf/FilePrintStream.cpp \
Source/WTF/wtf/FilePrintStream.h \
- Source/WTF/wtf/FixedArray.h \
Source/WTF/wtf/FlipBytes.h \
Source/WTF/wtf/Forward.h \
Source/WTF/wtf/FunctionDispatcher.cpp \
Modified: trunk/Source/WTF/WTF.vcxproj/WTF.vcxproj (160345 => 160346)
--- trunk/Source/WTF/WTF.vcxproj/WTF.vcxproj 2013-12-10 01:47:48 UTC (rev 160345)
+++ trunk/Source/WTF/WTF.vcxproj/WTF.vcxproj 2013-12-10 02:08:07 UTC (rev 160346)
@@ -199,7 +199,6 @@
<ClInclude Include="..\wtf\FastMalloc.h" />
<ClInclude Include="..\wtf\FeatureDefines.h" />
<ClInclude Include="..\wtf\FilePrintStream.h" />
- <ClInclude Include="..\wtf\FixedArray.h" />
<ClInclude Include="..\wtf\FlipBytes.h" />
<ClInclude Include="..\wtf\Forward.h" />
<ClInclude Include="..\wtf\FunctionDispatcher.h" />
Modified: trunk/Source/WTF/WTF.vcxproj/WTF.vcxproj.filters (160345 => 160346)
--- trunk/Source/WTF/WTF.vcxproj/WTF.vcxproj.filters 2013-12-10 01:47:48 UTC (rev 160345)
+++ trunk/Source/WTF/WTF.vcxproj/WTF.vcxproj.filters 2013-12-10 02:08:07 UTC (rev 160346)
@@ -437,9 +437,6 @@
<ClInclude Include="..\wtf\FilePrintStream.h">
<Filter>wtf</Filter>
</ClInclude>
- <ClInclude Include="..\wtf\FixedArray.h">
- <Filter>wtf</Filter>
- </ClInclude>
<ClInclude Include="..\wtf\Forward.h">
<Filter>wtf</Filter>
</ClInclude>
Modified: trunk/Source/WTF/WTF.xcodeproj/project.pbxproj (160345 => 160346)
--- trunk/Source/WTF/WTF.xcodeproj/project.pbxproj 2013-12-10 01:47:48 UTC (rev 160345)
+++ trunk/Source/WTF/WTF.xcodeproj/project.pbxproj 2013-12-10 02:08:07 UTC (rev 160346)
@@ -141,7 +141,6 @@
A8A473C1151A825B004123FF /* ExportMacros.h in Headers */ = {isa = PBXBuildFile; fileRef = A8A4729F151A825A004123FF /* ExportMacros.h */; };
A8A473C3151A825B004123FF /* FastMalloc.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A8A472A1151A825A004123FF /* FastMalloc.cpp */; };
A8A473C4151A825B004123FF /* FastMalloc.h in Headers */ = {isa = PBXBuildFile; fileRef = A8A472A2151A825A004123FF /* FastMalloc.h */; };
- A8A473C5151A825B004123FF /* FixedArray.h in Headers */ = {isa = PBXBuildFile; fileRef = A8A472A3151A825A004123FF /* FixedArray.h */; };
A8A473C8151A825B004123FF /* Forward.h in Headers */ = {isa = PBXBuildFile; fileRef = A8A472A6151A825A004123FF /* Forward.h */; };
A8A473C9151A825B004123FF /* Functional.h in Headers */ = {isa = PBXBuildFile; fileRef = A8A472A7151A825A004123FF /* Functional.h */; };
A8A473CA151A825B004123FF /* GetPtr.h in Headers */ = {isa = PBXBuildFile; fileRef = A8A472A8151A825A004123FF /* GetPtr.h */; };
@@ -418,7 +417,6 @@
A8A4729F151A825A004123FF /* ExportMacros.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ExportMacros.h; sourceTree = "<group>"; };
A8A472A1151A825A004123FF /* FastMalloc.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = FastMalloc.cpp; sourceTree = "<group>"; };
A8A472A2151A825A004123FF /* FastMalloc.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FastMalloc.h; sourceTree = "<group>"; };
- A8A472A3151A825A004123FF /* FixedArray.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FixedArray.h; sourceTree = "<group>"; };
A8A472A6151A825A004123FF /* Forward.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Forward.h; sourceTree = "<group>"; };
A8A472A7151A825A004123FF /* Functional.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Functional.h; sourceTree = "<group>"; };
A8A472A8151A825A004123FF /* GetPtr.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GetPtr.h; sourceTree = "<group>"; };
@@ -704,7 +702,6 @@
B38FD7BC168953E80065C969 /* FeatureDefines.h */,
0F9D335B165DBA73005AD387 /* FilePrintStream.cpp */,
0F9D335C165DBA73005AD387 /* FilePrintStream.h */,
- A8A472A3151A825A004123FF /* FixedArray.h */,
0F2B66A517B6B4F700A7AE3F /* FlipBytes.h */,
A8A472A6151A825A004123FF /* Forward.h */,
A8A472A7151A825A004123FF /* Functional.h */,
@@ -1011,7 +1008,6 @@
B38FD7BD168953E80065C969 /* FeatureDefines.h in Headers */,
0F9D3361165DBA73005AD387 /* FilePrintStream.h in Headers */,
A8A473B6151A825B004123FF /* fixed-dtoa.h in Headers */,
- A8A473C5151A825B004123FF /* FixedArray.h in Headers */,
0F2B66A717B6B4FD00A7AE3F /* FlipBytes.h in Headers */,
A8A473C8151A825B004123FF /* Forward.h in Headers */,
A8A473C9151A825B004123FF /* Functional.h in Headers */,
Modified: trunk/Source/WTF/wtf/CMakeLists.txt (160345 => 160346)
--- trunk/Source/WTF/wtf/CMakeLists.txt 2013-12-10 01:47:48 UTC (rev 160345)
+++ trunk/Source/WTF/wtf/CMakeLists.txt 2013-12-10 02:08:07 UTC (rev 160346)
@@ -29,7 +29,6 @@
FastMalloc.h
FeatureDefines.h
FilePrintStream.h
- FixedArray.h
FlipBytes.h
Forward.h
FunctionDispatcher.h
Deleted: trunk/Source/WTF/wtf/FixedArray.h (160345 => 160346)
--- trunk/Source/WTF/wtf/FixedArray.h 2013-12-10 01:47:48 UTC (rev 160345)
+++ trunk/Source/WTF/wtf/FixedArray.h 2013-12-10 02:08:07 UTC (rev 160346)
@@ -1,59 +0,0 @@
-/*
- * Copyright (C) 2010 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.
- */
-
-#ifndef FixedArray_h
-#define FixedArray_h
-
-#include <wtf/Assertions.h>
-
-namespace WTF {
-
-template <typename T, size_t Size> class FixedArray {
-public:
- T& operator[](size_t i)
- {
- ASSERT_WITH_SECURITY_IMPLICATION(i < Size);
- return m_data[i];
- }
-
- const T& operator[](size_t i) const
- {
- ASSERT_WITH_SECURITY_IMPLICATION(i < Size);
- return m_data[i];
- }
-
- T* data() { return m_data; }
- const T* data() const { return m_data; }
- size_t size() const { return Size; }
-
-private:
- T m_data[Size];
-};
-
-} // namespace WTF
-
-using WTF::FixedArray;
-
-#endif // FixedArray_h