[iOS] Remove unused variable from TileGrid::dropTilesBetweenRects()
authorddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 10 Jan 2014 23:54:34 +0000 (23:54 +0000)
committerddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 10 Jan 2014 23:54:34 +0000 (23:54 +0000)
Fixes the following build error:

    WebCore/platform/ios/TileGrid.mm:88:23: error: unused variable 'end' [-Werror,-Wunused-variable]
        TileMap::iterator end = m_tiles.end();
                          ^

* platform/ios/TileGrid.mm:
(WebCore::TileGrid::dropTilesBetweenRects): Remove unused
variable now that the for loop uses an auto iterator.

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

Source/WebCore/ChangeLog
Source/WebCore/platform/ios/TileGrid.mm

index 2ecd726fdb39ff6c505fd0b2d1a792f07a5e610a..a0ef072035832fcc09b750acb0564b4aa8d9b3d8 100644 (file)
@@ -1,3 +1,17 @@
+2014-01-10  David Kilzer  <ddkilzer@apple.com>
+
+        [iOS] Remove unused variable from TileGrid::dropTilesBetweenRects()
+
+        Fixes the following build error:
+
+            WebCore/platform/ios/TileGrid.mm:88:23: error: unused variable 'end' [-Werror,-Wunused-variable]
+                TileMap::iterator end = m_tiles.end();
+                                  ^
+
+        * platform/ios/TileGrid.mm:
+        (WebCore::TileGrid::dropTilesBetweenRects): Remove unused
+        variable now that the for loop uses an auto iterator.
+
 2014-01-10  Dean Jackson  <dino@apple.com>
 
         Implement OES texture half float linear
index 3d1701321e9c740e437295da4cecd6300ffcd4e1..64699a6d2ea2761f057f705b3b0fda2834157c51 100644 (file)
@@ -85,7 +85,6 @@ void TileGrid::dropTilesOutsideRect(const IntRect& keepRect)
 void TileGrid::dropTilesBetweenRects(const IntRect& dropRect, const IntRect& keepRect)
 {
     Vector<TileIndex> toRemove;
-    TileMap::iterator end = m_tiles.end();
     for (auto tile : m_tiles) {
         TileIndex& index = tile.key;
         IntRect tileRect = tile.value->rect();