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



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


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

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

rdr::UBPP colour; rdr::UBPP colour;
int count; int count;


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

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



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

{ {
if (needSetCursor) { if (needSetCursor) {
rdr::U8* data; rdr::U8* data;
int stride;


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



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

int length; int length;


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


os = conn->getOutStream(); os = conn->getOutStream();



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

void VNCSConnectionST::handleRTTPong(const struct RTTInfo &rttInfo) void VNCSConnectionST::handleRTTPong(const struct RTTInfo &rttInfo)
{ {
unsigned rtt, delay; unsigned rtt, delay;
int bdp;


pingCounter--; pingCounter--;



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

return true; return true;
} }


int err = GetLastError();

return false; return false;
} }

+ 1
- 5
vncviewer/OptionsDialog.cxx View File



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


tx += OUTER_MARGIN; tx += OUTER_MARGIN;
ty += OUTER_MARGIN; ty += OUTER_MARGIN;
tx += GROUP_MARGIN; tx += GROUP_MARGIN;
ty += GROUP_MARGIN; ty += GROUP_MARGIN;


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

tightButton = new Fl_Round_Button(LBLRIGHT(tx, ty, tightButton = new Fl_Round_Button(LBLRIGHT(tx, ty,
RADIO_MIN_WIDTH, RADIO_MIN_WIDTH,
RADIO_HEIGHT, RADIO_HEIGHT,
tx += GROUP_MARGIN; tx += GROUP_MARGIN;
ty += GROUP_MARGIN; ty += GROUP_MARGIN;


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

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

+ 0
- 1
vncviewer/X11PixelBuffer.cxx View File

int major, minor; int major, minor;
Bool pixmaps; Bool pixmaps;
XErrorHandler old_handler; XErrorHandler old_handler;
Status status;
const char *display_name = XDisplayName (NULL); const char *display_name = XDisplayName (NULL);


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

+ 0
- 1
vncviewer/keysym2ucs.c View File

{ {
int cur = 0; int cur = 0;
int max = sizeof(keysymtab) / sizeof(struct codepair) - 1; int max = sizeof(keysymtab) / sizeof(struct codepair) - 1;
int mid;


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

+ 0
- 1
vncviewer/parameters.cxx View File

char readError[buffersize*2]; char readError[buffersize*2];
char line[buffersize]; char line[buffersize];
char decodingBuffer[buffersize]; char decodingBuffer[buffersize];
char decodedValue[buffersize];
static char servername[sizeof(line)]; static char servername[sizeof(line)];


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

Loading…
Cancel
Save