Merge lp:~shnatsel/noise/ditch-existence-checking-copypasta into lp:~elementary-apps/noise/trunk
Status: | Merged |
---|---|
Approved by: | Corentin Noël |
Approved revision: | 1538 |
Merged at revision: | 1539 |
Proposed branch: | lp:~shnatsel/noise/ditch-existence-checking-copypasta |
Merge into: | lp:~elementary-apps/noise/trunk |
Diff against target: |
84 lines (+4/-26) 5 files modified
core/GStreamer/Playback.vala (+0/-1) plugins/Devices/CDRom/CDPlayer.vala (+1/-8) plugins/Devices/iPod/iPodStreamer.vala (+1/-8) src/GStreamer/Streamer.vala (+1/-8) src/PlaybackManager.vala (+1/-1) |
To merge this branch: | bzr merge lp:~shnatsel/noise/ditch-existence-checking-copypasta |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Victor Martinez (community) | Approve | ||
Review via email: mp+190634@code.launchpad.net |
Commit message
ditch the superfluous existence-checking function copypasted all over the place
Description of the change
Ditch some useless copypasta from Noise codebase.
Player.
Instead of "player.
This simplifies the code and makes it a bit more readable.
If the need to check abstracted media existence ever arises (i.e. if we encounter a media without a valid file property), a similar function can be re-introduced, although I expect it to be a method of the Noise.Media class in that case.
Good catch. Please correct the coding style in diff line 81 and it's done:
"if ( ! m.file.query_exists ()) {"
Should be:
"if (!m.file. query_exists ()) {"
It may seem harder to read but it's more consistent.