Removed unused argument of a function.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@328 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/rfb/TightPalette.cxx b/rfb/TightPalette.cxx
index 4fe7a74..c4ed04e 100644
--- a/rfb/TightPalette.cxx
+++ b/rfb/TightPalette.cxx
@@ -46,7 +46,7 @@
}
}
-int TightPalette::insert(rdr::U32 rgb, int numPixels, int bpp)
+int TightPalette::insert(rdr::U32 rgb, int numPixels)
{
TightColorList *pnode;
TightColorList *prev_pnode = NULL;
diff --git a/rfb/TightPalette.h b/rfb/TightPalette.h
index 3f8b7ad..2f6448e 100644
--- a/rfb/TightPalette.h
+++ b/rfb/TightPalette.h
@@ -74,7 +74,7 @@
// reports zero colors and cannot be used any more without calling
// reset().
//
- int insert(rdr::U32 rgb, int numPixels, int bpp);
+ int insert(rdr::U32 rgb, int numPixels);
//
// Return number of colors in the palette.
diff --git a/rfb/hextileEncodeBetter.h b/rfb/hextileEncodeBetter.h
index 08adc7d..59df102 100644
--- a/rfb/hextileEncodeBetter.h
+++ b/rfb/hextileEncodeBetter.h
@@ -164,7 +164,7 @@
*colorsPtr++ = color;
*coordsPtr++ = 0;
*coordsPtr++ = (rdr::U8)(((m_width - 1) << 4) | ((y - 1) & 0x0F));
- m_pal.insert(color, 1, BPP);
+ m_pal.insert(color, 1);
m_numSubrects++;
}
@@ -200,7 +200,7 @@
*coordsPtr++ = (rdr::U8)((x << 4) | (y & 0x0F));
*coordsPtr++ = (rdr::U8)(((sw - 1) << 4) | ((sh - 1) & 0x0F));
- if (m_pal.insert(color, 1, BPP) == 0) {
+ if (m_pal.insert(color, 1) == 0) {
// Handle palette overflow
m_flags = hextileRaw;
m_size = 0;