zapit/include/zapit/bouquets.h: remove CmpChannel..

This commit is contained in:
[CST] Focus
2012-04-05 18:58:25 +04:00
parent 07a250130b
commit 432925be80

View File

@@ -29,6 +29,7 @@ typedef ZapitChannelList::iterator zapit_list_it_t;
class CZapitBouquet
{
public:
std::string Name;
bool bHidden;
bool bLocked;
@@ -124,18 +125,6 @@ class CBouquetManager
* Hence we need a compare function that considers the whole unicode charset.
* For instance all countless variants of the letter a have to be regarded as the same letter.
*/
struct CmpChannelByChName: public binary_function <const CZapitChannel * const, const CZapitChannel * const, bool>
{
static bool comparetolower(const char a, const char b)
{
return tolower(a) < tolower(b);
};
bool operator() (const CZapitChannel * const c1, const CZapitChannel * const c2)
{
return std::lexicographical_compare(c1->getName().begin(), c1->getName().end(), c2->getName().begin(), c2->getName().end(), comparetolower);
};
};
struct CmpBouquetByChName: public binary_function <const CZapitBouquet * const, const CZapitBouquet * const, bool>
{
@@ -151,13 +140,4 @@ struct CmpBouquetByChName: public binary_function <const CZapitBouquet * const,
};
};
struct CmpChannelByChNum: public binary_function <const CZapitChannel * const, const CZapitChannel * const, bool>
{
bool operator() (const CZapitChannel * const c1, const CZapitChannel * const c2)
{
return c1->number < c2->number;
;
};
};
#endif /* __bouquets_h__ */