system/lastchannel.cpp: cleanup unused channelnr

This commit is contained in:
[CST] Focus
2014-10-10 14:56:12 +04:00
parent 563310601a
commit 9c47e9e5f3
2 changed files with 3 additions and 4 deletions

View File

@@ -39,7 +39,7 @@ void CLastChannel::clear (void)
// -- Store only if channel != last channel and time store delay is large enough
// forceStoreToLastChannels default to false
void CLastChannel::store (int channel, t_channel_id channel_id, bool /* forceStoreToLastChannels */)
void CLastChannel::store (t_channel_id channel_id)
{
struct timeval tv;
unsigned long lastTimestamp(0);
@@ -58,7 +58,7 @@ void CLastChannel::store (int channel, t_channel_id channel_id, bool /* forceSto
this->lastChannels.pop_front();
/* push new channel to the head */
_LastCh newChannel = {channel, channel_id, tv.tv_sec, CNeutrinoApp::getInstance()->GetChannelMode()};
_LastCh newChannel = {/*channel,*/ channel_id, tv.tv_sec, CNeutrinoApp::getInstance()->GetChannelMode()};
this->lastChannels.push_front(newChannel);

View File

@@ -32,7 +32,6 @@ class CLastChannel
private:
struct _LastCh
{
int channel;
t_channel_id channel_id;
long int timestamp;
int channel_mode;
@@ -47,7 +46,7 @@ class CLastChannel
public:
CLastChannel (void);
void clear (void);
void store (int channelnr, t_channel_id channel_id, bool forceStoreToLastChannels = false);
void store (t_channel_id channel_id);
t_channel_id getlast (int n);
unsigned int size () const;
void clear_storedelay (void);