[iOS] Remove obsolete playbackTargetAvailabilityChanged methods
authoreric.carlson@apple.com <eric.carlson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 29 Sep 2014 18:00:07 +0000 (18:00 +0000)
committereric.carlson@apple.com <eric.carlson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 29 Sep 2014 18:00:07 +0000 (18:00 +0000)
https://bugs.webkit.org/show_bug.cgi?id=137179

Reviewed by Darin Adler.

No new tests, this just removes unused code.

* html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::mediaPlayerPlaybackTargetAvailabilityChanged): Deleted.
* html/HTMLMediaElement.h:

* platform/graphics/MediaPlayer.cpp:
(WebCore::MediaPlayer::playbackTargetAvailabilityChanged): Deleted.
* platform/graphics/MediaPlayer.h:
(WebCore::MediaPlayerClient::mediaPlayerPlaybackTargetAvailabilityChanged): Deleted.

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

Source/WebCore/ChangeLog
Source/WebCore/html/HTMLMediaElement.cpp
Source/WebCore/html/HTMLMediaElement.h
Source/WebCore/platform/graphics/MediaPlayer.cpp
Source/WebCore/platform/graphics/MediaPlayer.h

index f06d2b0..d375e76 100644 (file)
@@ -1,3 +1,21 @@
+2014-09-29  Eric Carlson  <eric.carlson@apple.com>
+
+        [iOS] Remove obsolete playbackTargetAvailabilityChanged methods
+        https://bugs.webkit.org/show_bug.cgi?id=137179
+
+        Reviewed by Darin Adler.
+
+        No new tests, this just removes unused code.
+
+        * html/HTMLMediaElement.cpp:
+        (WebCore::HTMLMediaElement::mediaPlayerPlaybackTargetAvailabilityChanged): Deleted.
+        * html/HTMLMediaElement.h:
+
+        * platform/graphics/MediaPlayer.cpp:
+        (WebCore::MediaPlayer::playbackTargetAvailabilityChanged): Deleted.
+        * platform/graphics/MediaPlayer.h:
+        (WebCore::MediaPlayerClient::mediaPlayerPlaybackTargetAvailabilityChanged): Deleted.
+
 2014-09-29  Christophe Dumez  <cdumez@apple.com>
 
         Use the new is<>() / downcast<>() for ShadowRoot and StyledElement
index 95213f7..e9f0cd9 100644 (file)
@@ -4786,11 +4786,6 @@ void HTMLMediaElement::mediaPlayerCurrentPlaybackTargetIsWirelessChanged(MediaPl
     scheduleEvent(eventNames().webkitcurrentplaybacktargetiswirelesschangedEvent);
 }
 
-void HTMLMediaElement::mediaPlayerPlaybackTargetAvailabilityChanged(MediaPlayer*)
-{
-    enqueuePlaybackTargetAvailabilityChangedEvent();
-}
-
 bool HTMLMediaElement::addEventListener(const AtomicString& eventType, PassRefPtr<EventListener> listener, bool useCapture)
 {
     if (eventType != eventNames().webkitplaybacktargetavailabilitychangedEvent)
index 3dd7dbc..d37a141 100644 (file)
@@ -546,7 +546,6 @@ private:
 
 #if ENABLE(IOS_AIRPLAY)
     virtual void mediaPlayerCurrentPlaybackTargetIsWirelessChanged(MediaPlayer*) override;
-    virtual void mediaPlayerPlaybackTargetAvailabilityChanged(MediaPlayer*) override;
     void enqueuePlaybackTargetAvailabilityChangedEvent();
 #endif
 
index a6fe11a..6a5b045 100644 (file)
@@ -882,12 +882,6 @@ void MediaPlayer::currentPlaybackTargetIsWirelessChanged()
     if (m_mediaPlayerClient)
         m_mediaPlayerClient->mediaPlayerCurrentPlaybackTargetIsWirelessChanged(this);
 }
-
-void MediaPlayer::playbackTargetAvailabilityChanged()
-{
-    if (m_mediaPlayerClient)
-        m_mediaPlayerClient->mediaPlayerPlaybackTargetAvailabilityChanged(this);
-}
 #endif
 
 double MediaPlayer::maxFastForwardRate() const
index 94aa9da..4117eb5 100644 (file)
@@ -221,7 +221,6 @@ public:
     
 #if ENABLE(IOS_AIRPLAY)
     virtual void mediaPlayerCurrentPlaybackTargetIsWirelessChanged(MediaPlayer*) { };
-    virtual void mediaPlayerPlaybackTargetAvailabilityChanged(MediaPlayer*) { };
 #endif
 
     virtual String mediaPlayerReferrer() const { return String(); }