mirror of
https://github.com/rofafor/vdr-plugin-satip.git
synced 2023-10-10 11:37:42 +00:00
removed unused cSatipVector template
This commit is contained in:
parent
701cc4be54
commit
e6c928992d
19
common.h
19
common.h
@ -109,24 +109,5 @@ extern const section_filter_table_type section_filter_table[SECTION_FILTER_TABLE
|
|||||||
|
|
||||||
extern const char VERSION[];
|
extern const char VERSION[];
|
||||||
|
|
||||||
template <class T> class cSatipVector : public cVector<T> {
|
|
||||||
public:
|
|
||||||
int IndexOf(const T &Data)
|
|
||||||
{
|
|
||||||
for (int i = 0; i < this->Size(); ++i)
|
|
||||||
if (Data == this->At(i))
|
|
||||||
return i;
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
void RemoveElement(const T &Data)
|
|
||||||
{
|
|
||||||
int i = IndexOf(Data);
|
|
||||||
if (i >= 0)
|
|
||||||
this->Remove(i);
|
|
||||||
}
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif // __SATIP_COMMON_H
|
#endif // __SATIP_COMMON_H
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user