Changeset 195239 in webkit


Ignore:
Timestamp:
Jan 18, 2016 4:06:46 PM (8 years ago)
Author:
commit-queue@webkit.org
Message:

[Mac] Remove unused playerToPrivateMap()
https://bugs.webkit.org/show_bug.cgi?id=153203

Patch by Olivier Blin <Olivier Blin> on 2016-01-18
Reviewed by Darin Adler.

This was used in previous EME implementations, but is unnecessary
since r163907.

No new tests since this removes dead code only.

  • platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:

(WebCore::globalLoaderDelegateQueue): Deleted.
(WebCore::MediaPlayerPrivateAVFoundationObjC::~MediaPlayerPrivateAVFoundationObjC): Deleted.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r195237 r195239  
     12016-01-18  Olivier Blin  <olivier.blin@softathome.com>
     2
     3        [Mac] Remove unused playerToPrivateMap()
     4        https://bugs.webkit.org/show_bug.cgi?id=153203
     5
     6        Reviewed by Darin Adler.
     7
     8        This was used in previous EME implementations, but is unnecessary
     9        since r163907.
     10
     11        No new tests since this removes dead code only.
     12
     13        * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
     14        (WebCore::globalLoaderDelegateQueue): Deleted.
     15        (WebCore::MediaPlayerPrivateAVFoundationObjC::~MediaPlayerPrivateAVFoundationObjC): Deleted.
     16
    1172016-01-18  Simon Fraser  <simon.fraser@apple.com>
    218
  • trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm

    r194819 r195239  
    389389#endif
    390390
    391 #if ENABLE(ENCRYPTED_MEDIA_V2)
    392 typedef HashMap<MediaPlayer*, MediaPlayerPrivateAVFoundationObjC*> PlayerToPrivateMapType;
    393 static PlayerToPrivateMapType& playerToPrivateMap()
    394 {
    395     static NeverDestroyed<PlayerToPrivateMapType> map;
    396     return map;
    397 };
    398 #endif
    399 
    400391#if HAVE(AVFOUNDATION_LOADER_DELEGATE)
    401392static dispatch_queue_t globalLoaderDelegateQueue()
     
    513504#endif
    514505{
    515 #if ENABLE(ENCRYPTED_MEDIA_V2)
    516     playerToPrivateMap().set(player, this);
    517 #endif
    518506}
    519507
    520508MediaPlayerPrivateAVFoundationObjC::~MediaPlayerPrivateAVFoundationObjC()
    521509{
    522 #if ENABLE(ENCRYPTED_MEDIA_V2)
    523     playerToPrivateMap().remove(player());
    524 #endif
    525510#if HAVE(AVFOUNDATION_LOADER_DELEGATE)
    526511    [m_loaderDelegate.get() setCallback:0];
Note: See TracChangeset for help on using the changeset viewer.