comment out never used

This commit is contained in:
satbaby
2012-08-04 10:03:19 +02:00
parent f8aa4262cb
commit 9124c20f31
26 changed files with 149 additions and 85 deletions

View File

@@ -81,12 +81,13 @@ FLAC__StreamDecoderSeekStatus flac_seek(const FLAC__StreamDecoder *, FLAC__uint6
else
return FLAC__STREAM_DECODER_SEEK_STATUS_OK;
}
#if 0
//never used
int flac_close(void *)
{
return 0;
}
#endif
FLAC__StreamDecoderTellStatus flac_tell(const FLAC__StreamDecoder *, FLAC__uint64 *absolute_byte_offset, void *client_data)
{
CFlacDec * flacdec = (CFlacDec *)client_data;

View File

@@ -84,6 +84,8 @@ fixed fix_mpy(fixed a, fixed b);
size of data = 2**m
set inverse to 0=dft, 1=idft
*/
#if 0
//never used
int fix_fft(fixed fr[], fixed fi[], int m, int inverse)
{
int mr,nn,i,j,l,k,istep, n, scale, shift;
@@ -180,7 +182,7 @@ fix_mpy(wi,fr[j]);
return scale;
}
#endif
/* window() - apply a Hanning window */
void window(fixed fr[], int n)
@@ -203,6 +205,8 @@ void window(fixed fr[], int n)
was obtained from an inverse FFT, 0 otherwise.
loud[] is the loudness, in dB wrt 32767; will be +10 to -N_LOUD.
*/
#if 0
//never used
void fix_loud(fixed loud[], fixed fr[], fixed fi[], int n, int scale_shift)
{
int i, max;
@@ -218,7 +222,7 @@ void fix_loud(fixed loud[], fixed fr[], fixed fi[], int n, int scale_shift)
loud[i] = max;
}
}
#endif
/* db_from_ampl() - find loudness (in dB) from
the complex amplitude.
*/
@@ -258,6 +262,8 @@ fixed fix_mpy(fixed a, fixed b)
/*
iscale() - scale an integer value by (numer/denom)
*/
#if 0
//never used
int iscale(int value, int numer, int denom)
{
#ifdef DOS
@@ -338,7 +344,7 @@ overflow:
#endif
}
#endif
#if N_WAVE != 1024
ERROR: N_WAVE != 1024

View File

@@ -510,11 +510,12 @@ int CFrameBuffer::setMode(unsigned int /*nxRes*/, unsigned int /*nyRes*/, unsign
}
return 0;
}
#if 0
//never used
void CFrameBuffer::setTransparency( int /*tr*/ )
{
}
#endif
void CFrameBuffer::setBlendMode(uint8_t mode)
{
#ifdef HAVE_COOL_HARDWARE
@@ -539,14 +540,15 @@ void CFrameBuffer::setBlendLevel(int level)
#endif
#endif
}
#if 0
//never used
void CFrameBuffer::setAlphaFade(int in, int num, int tr)
{
for (int i=0; i<num; i++) {
cmap.transp[in+i]=tr;
}
}
#endif
void CFrameBuffer::paletteFade(int i, __u32 rgb1, __u32 rgb2, int level)
{
__u16 *r = cmap.red+i;
@@ -927,7 +929,8 @@ bool CFrameBuffer::paintIcon8(const std::string & filename, const int x, const i
close(lfd);
return true;
}
#if 0
//never used
#ifdef USE_NEVIS_GXA
bool CFrameBuffer::blitToPrimary(unsigned int * data, int dx, int dy, int sw, int sh)
{
@@ -956,6 +959,7 @@ bool CFrameBuffer::blitToPrimary(unsigned int *, int, int, int, int)
return false;
}
#endif
#endif
/* paint icon at position x/y,
if height h is given, center vertically between y and y+h
@@ -1291,7 +1295,8 @@ void CFrameBuffer::paintLine(int xa, int ya, int xb, int yb, const fb_pixel_t co
}
}
}
#if 0
//never used
void CFrameBuffer::setBackgroundColor(const fb_pixel_t color)
{
backgroundColor = color;
@@ -1443,7 +1448,7 @@ bool CFrameBuffer::loadBackgroundPic(const std::string & filename, bool show)
}
return true;
}
#endif
void CFrameBuffer::useBackground(bool ub)
{
useBackgroundPaint = ub;
@@ -1571,7 +1576,8 @@ void CFrameBuffer::RestoreScreen(int x, int y, int dx, int dy, fb_pixel_t * cons
bkpos += dx;
}
}
#if 0
//never used
void CFrameBuffer::switch_signal (int signal)
{
CFrameBuffer * thiz = CFrameBuffer::getInstance();
@@ -1596,13 +1602,15 @@ void CFrameBuffer::switch_signal (int signal)
memset(thiz->lfb, 0, thiz->stride * thiz->yRes);
}
}
#endif
void CFrameBuffer::Clear()
{
paintBackground();
//memset(getFrameBufferPointer(), 0, stride * yRes);
}
#if 0
//never used
void CFrameBuffer::showFrame(const std::string & filename)
{
std::string varpath = "/var/tuxbox/config/neutrino/icons/";
@@ -1611,7 +1619,7 @@ void CFrameBuffer::showFrame(const std::string & filename)
else
videoDecoder->ShowPicture((iconBasePath + filename).c_str());
}
#endif
bool CFrameBuffer::Lock()
{
if(locked)

View File

@@ -284,7 +284,8 @@ void CRCInput::restartInput()
close();
open();
}
#if 0
//never used
int CRCInput::messageLoop( bool anyKeyCancels, int timeout )
{
neutrino_msg_t msg;
@@ -335,6 +336,7 @@ int CRCInput::messageLoop( bool anyKeyCancels, int timeout )
}
return res;
}
#endif
int CRCInput::addTimer(uint64_t Interval, bool oneshot, bool correct_time )
{
@@ -1557,7 +1559,8 @@ void CRCInput::close_click()
void CRCInput::open_click()
{
}
#if 0
//never used
void CRCInput::reset_dsp(int /*rate*/)
{
}
@@ -1565,7 +1568,7 @@ void CRCInput::reset_dsp(int /*rate*/)
void CRCInput::set_dsp()
{
}
#endif
void CRCInput::play_click()
{
}

View File

@@ -1546,7 +1546,7 @@ bool CRecordManager::changeNotify(const neutrino_locale_t OptionName, void * /*d
}
return ret;
}
#if 0
/* this is saved copy of neutrino code which seems was not used for some time */
bool CRecordManager::ChooseRecDir(std::string &dir)
{
@@ -1575,7 +1575,7 @@ bool CRecordManager::ChooseRecDir(std::string &dir)
}
return doRecord;
}
#endif
bool CRecordManager::MountDirectory(const char *recordingDir)
{
bool ret = true;

View File

@@ -126,6 +126,8 @@ void CScreenShot::run()
}
/* save file in sync mode, return true if save ok, or false */
#if 0
//never used
bool CScreenShot::StartSync()
{
bool ret = false;
@@ -136,7 +138,7 @@ bool CScreenShot::StartSync()
printf("CScreenShot::StartSync: %s finished: %d\n", filename.c_str(), ret);
return ret;
}
#endif
/* save file in selected format, free data received from video decoder */
bool CScreenShot::SaveFile()
{

View File

@@ -357,7 +357,8 @@ void * streamts_live_thread(void *data)
close(fd);
return 0;
}
#if 0
//never used
void streamts_file_thread(void *data)
{
int dvrfd;
@@ -458,3 +459,4 @@ void streamts_file_thread(void *data)
return;
}
#endif