rcinput: remove unused/unimplemented click functions

This commit is contained in:
Stefan Seyfried
2017-02-20 20:36:45 +01:00
committed by M. Liebmann
parent dceb6989a8
commit f45456d7a8
6 changed files with 0 additions and 40 deletions

View File

@@ -90,7 +90,6 @@ void* CAudioPlayer::PlayThread( void* /*dummy*/ )
{
int soundfd = -1;
set_threadname("audio:play");
g_RCInput->close_click();
/* Decode stdin to stdout. */
CBaseDec::RetCode Status =
CBaseDec::DecoderBase( &getInstance()->m_Audiofile, soundfd,
@@ -109,8 +108,6 @@ void* CAudioPlayer::PlayThread( void* /*dummy*/ )
"unknown" );
}
g_RCInput->open_click();
getInstance()->state = CBaseDec::STOP;
pthread_exit(0);
return NULL;

View File

@@ -143,7 +143,6 @@ CRCInput::CRCInput()
perror("[neutrino] listen failed...\n");
exit( -1 );
}
clickfd = -1;
repeat_block = repeat_block_generic = 0;
checkdev();
open();
@@ -335,7 +334,6 @@ void CRCInput::open(bool recheck)
//+++++++++++++++++++++++++++++++++++++++
#endif /* KEYBOARD_INSTEAD_OF_REMOTE_CONTROL */
open_click();
calculateMaxFd();
}
@@ -396,7 +394,6 @@ CRCInput::~CRCInput()
if(fd_event)
::close(fd_event);
close_click();
}
/**************************************************************************
@@ -1474,8 +1471,6 @@ void CRCInput::getMsg_us(neutrino_msg_t * msg, neutrino_msg_data_t * data, uint6
*msg = trkey;
*data = 0; /* <- button pressed */
if(g_settings.key_click)
play_click();
return;
}
} /*if keyok */
@@ -1780,27 +1775,6 @@ int CRCInput::translate(int code)
return (int)RC_nokey;
}
void CRCInput::close_click()
{
}
void CRCInput::open_click()
{
}
#if 0
//never used
void CRCInput::reset_dsp(int /*rate*/)
{
}
void CRCInput::set_dsp()
{
}
#endif
void CRCInput::play_click()
{
}
void CRCInput::setKeyRepeatDelay(unsigned int start_ms, unsigned int repeat_ms)
{
for (std::vector<in_dev>::iterator it = indev.begin(); it != indev.end(); ++it) {

View File

@@ -164,10 +164,8 @@ class CRCInput
int fd_event;
int fd_max;
int clickfd;
__u16 rc_last_key;
OpenThreads::Mutex mutex;
void set_dsp();
void open(bool recheck = false);
bool checkpath(in_dev id);
@@ -329,10 +327,6 @@ class CRCInput
void clearRCMsg();
int messageLoop( bool anyKeyCancels = false, int timeout= -1 );
void open_click();
void close_click();
void play_click();
void reset_dsp(int rate);
void setLongPressAny(bool b) { longPressAny = b; };
void setKeyRepeatDelay(unsigned int start_ms, unsigned int repeat_ms);