Bug 136163 - [iOS] Cleanup media code
Summary: [iOS] Cleanup media code
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Eric Carlson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-22 11:14 PDT by Eric Carlson
Modified: 2014-08-22 13:10 PDT (History)
9 users (show)

See Also:


Attachments
Proposed patch. (7.36 KB, patch)
2014-08-22 11:26 PDT, Eric Carlson
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Carlson 2014-08-22 11:14:44 PDT
Remove some unused code.
Comment 1 Eric Carlson 2014-08-22 11:26:41 PDT
Created attachment 236994 [details]
Proposed patch.
Comment 2 Darin Adler 2014-08-22 11:30:21 PDT
Comment on attachment 236994 [details]
Proposed patch.

parseMediaPlayerAttribute doesn’t look like dead code; there’s a call to it. What makes it actually dead?
Comment 3 Eric Carlson 2014-08-22 11:39:04 PDT
(In reply to comment #2)
> (From update of attachment 236994 [details])
> parseMediaPlayerAttribute doesn’t look like dead code; there’s a call to it.

Not any more :-)

> What makes it actually dead?

It calls iOS-only MediaPlayer methods that we no longer implement.
Comment 4 Darin Adler 2014-08-22 11:42:24 PDT
Comment on attachment 236994 [details]
Proposed patch.

View in context: https://bugs.webkit.org/attachment.cgi?id=236994&action=review

> Source/WebCore/platform/graphics/MediaPlayerPrivate.h:-243
> -    virtual void attributeChanged(const String&, const String&) { }
> -    virtual bool readyForPlayback() const { return true; }

I get it; these calls do nothing so we don’t need all the other levels just to get here.
Comment 5 WebKit Commit Bot 2014-08-22 13:10:34 PDT
Comment on attachment 236994 [details]
Proposed patch.

Clearing flags on attachment: 236994

Committed r172868: <http://trac.webkit.org/changeset/172868>
Comment 6 WebKit Commit Bot 2014-08-22 13:10:38 PDT
All reviewed patches have been landed.  Closing bug.