Browse Source

Remove unused variables

tags/v1.4.90
Pierre Ossman 9 years ago
parent
commit
eb95532f5c

+ 0
- 1
common/network/TcpSocket.cxx View File

@@ -598,7 +598,6 @@ TcpListener::accept() {

void TcpListener::getMyAddresses(std::list<char*>* result) {
#if defined(HAVE_GETADDRINFO) && defined(HAVE_INET_PTON)
vnc_sockaddr_t sa;
struct addrinfo *ai, *current, hints;

memset(&hints, 0, sizeof(struct addrinfo));

+ 0
- 3
common/rfb/EncodeManagerBPP.cxx View File

@@ -59,9 +59,6 @@ inline bool EncodeManager::analyseRect(int width, int height,
rdr::UBPP colour;
int count;

rdr::UBPP c0, c1, ci = 0;
int i, n0, n1, ni;

info->rleRuns = 0;
info->palette.clear();


+ 0
- 1
common/rfb/SMsgWriter.cxx View File

@@ -301,7 +301,6 @@ void SMsgWriter::writePseudoRects()
{
if (needSetCursor) {
rdr::U8* data;
int stride;

const Cursor& cursor = cp->cursor();


+ 1
- 1
common/rfb/TightEncoder.cxx View File

@@ -163,7 +163,7 @@ void TightEncoder::writeFullColourRect(const PixelBuffer* pb, const Palette& pal
int length;

const rdr::U8* buffer;
int stride, w, h;
int stride, h;

os = conn->getOutStream();


+ 0
- 1
common/rfb/VNCSConnectionST.cxx View File

@@ -760,7 +760,6 @@ void VNCSConnectionST::writeRTTPing()
void VNCSConnectionST::handleRTTPong(const struct RTTInfo &rttInfo)
{
unsigned rtt, delay;
int bdp;

pingCounter--;


+ 0
- 2
common/rfb/WinPasswdValidator.cxx View File

@@ -45,7 +45,5 @@ bool WinPasswdValidator::validateInternal(rfb::SConnection* sc,
return true;
}

int err = GetLastError();

return false;
}

+ 1
- 5
vncviewer/OptionsDialog.cxx View File

@@ -422,7 +422,7 @@ void OptionsDialog::createCompressionPage(int tx, int ty, int tw, int th)

int orig_tx, orig_ty;
int half_width, full_width;
int width, height;
int height;

tx += OUTER_MARGIN;
ty += OUTER_MARGIN;
@@ -454,8 +454,6 @@ void OptionsDialog::createCompressionPage(int tx, int ty, int tw, int th)
tx += GROUP_MARGIN;
ty += GROUP_MARGIN;

width = encodingGroup->w() - GROUP_MARGIN * 2;

tightButton = new Fl_Round_Button(LBLRIGHT(tx, ty,
RADIO_MIN_WIDTH,
RADIO_HEIGHT,
@@ -504,8 +502,6 @@ void OptionsDialog::createCompressionPage(int tx, int ty, int tw, int th)
tx += GROUP_MARGIN;
ty += GROUP_MARGIN;

width = colorlevelGroup->w() - GROUP_MARGIN * 2;

fullcolorCheckbox = new Fl_Round_Button(LBLRIGHT(tx, ty,
RADIO_MIN_WIDTH,
RADIO_HEIGHT,

+ 0
- 1
vncviewer/X11PixelBuffer.cxx View File

@@ -157,7 +157,6 @@ int X11PixelBuffer::setupShm()
int major, minor;
Bool pixmaps;
XErrorHandler old_handler;
Status status;
const char *display_name = XDisplayName (NULL);

/* Don't use MIT-SHM on remote displays */

+ 0
- 1
vncviewer/keysym2ucs.c View File

@@ -899,7 +899,6 @@ unsigned ucs2keysym(unsigned ucs)
{
int cur = 0;
int max = sizeof(keysymtab) / sizeof(struct codepair) - 1;
int mid;

/* first check for Latin-1 characters (1:1 mapping) */
if ((ucs >= 0x0020 && ucs <= 0x007e) ||

+ 0
- 1
vncviewer/parameters.cxx View File

@@ -551,7 +551,6 @@ char* loadViewerParameters(const char *filename) {
char readError[buffersize*2];
char line[buffersize];
char decodingBuffer[buffersize];
char decodedValue[buffersize];
static char servername[sizeof(line)];

// Load from the registry or a predefined file if no filename was specified.

Loading…
Cancel
Save