Remove dead exception for MediaList.appendMedium
MediaList.appendMedium was able to throw an exception, but MediaQuerySet::Add() always returned true, making it impossible for that exception to be thrown. This matched the spec, as |appendMedium| cannot throw an exception. Remove the dead code surrounding the possible exception, and make MediaQuerySet::Add() return false if the medium is not added. Also remove the TODO as deleteMedium can throw an exception per the spec. Change-Id: I32c1b7b3ac90812ce036273e9c1c56f6d65c0af2 Reviewed-on: https://chromium-review.googlesource.com/993398 Commit-Queue: Chris Nardi <cnardi@chromium.org> Reviewed-by:Philip Jägenstedt <foolip@chromium.org> Cr-Commit-Position: refs/heads/master@{#547909}
Showing
Please register or sign in to comment