Remove unnecessary public method TiledBackingStore::supportsAlpha()
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 17 Jan 2013 18:36:18 +0000 (18:36 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 17 Jan 2013 18:36:18 +0000 (18:36 +0000)
https://bugs.webkit.org/show_bug.cgi?id=107067

Patch by Jae Hyun Park <jae.park@company100.net> on 2013-01-17
Reviewed by Kentaro Hara.

This patch removes unnecessary public method TiledBackingStore::supportsAlpha()
because supportsAlpha() is never called from other classes.

No new tests, no change in behavior.

* platform/graphics/TiledBackingStore.cpp:
(WebCore::TiledBackingStore::setSupportsAlpha):
* platform/graphics/TiledBackingStore.h:
(TiledBackingStore):

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

Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/TiledBackingStore.cpp
Source/WebCore/platform/graphics/TiledBackingStore.h

index b2f16e4..637b9ca 100644 (file)
@@ -1,3 +1,20 @@
+2013-01-17  Jae Hyun Park  <jae.park@company100.net>
+
+        Remove unnecessary public method TiledBackingStore::supportsAlpha()
+        https://bugs.webkit.org/show_bug.cgi?id=107067
+
+        Reviewed by Kentaro Hara.
+
+        This patch removes unnecessary public method TiledBackingStore::supportsAlpha()
+        because supportsAlpha() is never called from other classes.
+
+        No new tests, no change in behavior.
+
+        * platform/graphics/TiledBackingStore.cpp:
+        (WebCore::TiledBackingStore::setSupportsAlpha):
+        * platform/graphics/TiledBackingStore.h:
+        (TiledBackingStore):
+
 2013-01-17  Peter Rybin  <peter.rybin@gmail.com>
 
         [V8] Remove a --es5_readonly flag from V8 initialization and address duplicated code
index a574b20..2c430e4 100644 (file)
@@ -580,7 +580,7 @@ void TiledBackingStore::setContentsFrozen(bool freeze)
 
 void TiledBackingStore::setSupportsAlpha(bool a)
 {
-    if (a == supportsAlpha())
+    if (a == m_supportsAlpha)
         return;
     m_supportsAlpha = a;
     invalidate(m_rect);
index 460654a..6ac8da7 100644 (file)
@@ -79,7 +79,6 @@ public:
     void removeAllNonVisibleTiles();
 
     void setSupportsAlpha(bool);
-    bool supportsAlpha() const { return m_supportsAlpha; }
 
 private:
     void startTileBufferUpdateTimer();