Commit eb3a705c authored by Richard Lärkäng's avatar Richard Lärkäng
Browse files

Get rid of bestLookupResponse since it's pointless.

A higher revision doesn't mean anything

svn path=/trunk/KDE/kdemultimedia/libkcddb/; revision=492859
parent b754d92b
...@@ -93,26 +93,6 @@ namespace KCDDB ...@@ -93,26 +93,6 @@ namespace KCDDB
return d->cdInfoList; return d->cdInfoList;
} }
CDInfo
Client::bestLookupResponse() const
{
CDInfo info;
uint maxrev = 0;
for ( CDInfoList::Iterator it = d->cdInfoList.begin();
it != d->cdInfoList.end(); ++it )
{
if ( ( *it ).revision >= maxrev )
{
info = *it;
maxrev = info.revision;
}
}
return info;
}
CDDB::Result CDDB::Result
Client::lookup(const TrackOffsetList & trackOffsetList) Client::lookup(const TrackOffsetList & trackOffsetList)
{ {
......
...@@ -38,7 +38,7 @@ namespace KCDDB ...@@ -38,7 +38,7 @@ namespace KCDDB
* Example: * Example:
* <code>KCDDB::Client *cddb = new KCDDB::Client(); * <code>KCDDB::Client *cddb = new KCDDB::Client();
* cddb->lookup(discSignature); * cddb->lookup(discSignature);
* CDInfo info = cddb->bestLookupResponse();</code> * CDInfo info = cddb->lookupResponse().first();</code>
*/ */
class KDE_EXPORT Client : public QObject class KDE_EXPORT Client : public QObject
{ {
...@@ -59,10 +59,6 @@ namespace KCDDB ...@@ -59,10 +59,6 @@ namespace KCDDB
* @return a list of CDDB entries that match the disc signature * @return a list of CDDB entries that match the disc signature
*/ */
CDInfoList lookupResponse() const; CDInfoList lookupResponse() const;
/**
* @return a the CDDB entries that is the best match to the disc signature
*/
CDInfo bestLookupResponse() const;
/** /**
* Searches the database for entries matching the offset list. * Searches the database for entries matching the offset list.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment