- streaminfo2: clean up from unused code

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2019-03-17 00:53:15 +01:00
committed by Thilo Graf
parent 4748b3be40
commit a47bb767c4

View File

@@ -1232,7 +1232,6 @@ void CStreamInfo2::paintCASystem(int xpos, int ypos)
std::string casys[NUM_CAIDS] = {"Irdeto:", "Betacrypt:", "Seca:", "Viaccess:", "Nagra:", "Conax: ", "Cryptoworks:", "Videoguard:", "Biss:", "DreCrypt:", "PowerVU:", "Tandberg:"};
bool caids[NUM_CAIDS];
int array[NUM_CAIDS];
char tmp[100];
CZapitChannel *channel = CZapit::getInstance()->GetCurrentChannel();
@@ -1241,7 +1240,6 @@ void CStreamInfo2::paintCASystem(int xpos, int ypos)
for (int i = 0; i < NUM_CAIDS; i++)
{
array[i] = g_FixedFont[font_small]->getRenderWidth(casys[i]);
caids[i] = false;
}
@@ -1260,8 +1258,6 @@ void CStreamInfo2::paintCASystem(int xpos, int ypos)
fclose(f);
}
int off = 0;
for (casys_map_iterator_t it = channel->camap.begin(); it != channel->camap.end(); ++it)
{
int idx = -1;
@@ -1311,12 +1307,9 @@ void CStreamInfo2::paintCASystem(int xpos, int ypos)
snprintf(tmp, sizeof(tmp), " 0x%04X", (*it));
casys[idx] += tmp;
caids[idx] = true;
if (off < array[idx])
off = array[idx];
}
}
off += OFFSET_INNER_SMALL;
bool cryptsystems = true;
for (int ca_id = 0; ca_id < NUM_CAIDS; ca_id++)
{