xbmc/xbmc — pull request #1151 by Montellese (2012-07-12 15:34:04+00:00)
Title: [GSoC] use CDatabase::Filter in CMusicDatabase

This work extends the usage of CDatabase::Filter, which was introduced a while ago for the videodb to also be used in the musicdb. It has the advantage of a single parameter to pass all custom SQL clauses (join, where, order, group, limit) and without having to know that you need to add "WHERE" at the beginning of every SQL WHERE clause passed into one of CMusicDatabase's methods.

The first commit of this PR is cherry-picked from #1150. Having the Filter class in CDatabase makes much more sense than in CVideoDatabase, especially now that also CMusicDatabase uses it.

The second commit just contains some cosmetics I ran across in CMusicDatabase and removes unused classes.