aboutsummaryrefslogtreecommitdiff
path: root/engines/cge
diff options
context:
space:
mode:
authorTorbjörn Andersson2011-11-27 08:34:47 +0100
committerTorbjörn Andersson2011-11-27 08:34:47 +0100
commitda626f786d30c59002cbd4348f01a759ae55d75c (patch)
tree735a33a36495cb97b3bea0551d56ffceda6a9e74 /engines/cge
parentf9ad14dc2d0a7007413fa6cbde4c9a694446b0a4 (diff)
downloadscummvm-rg350-da626f786d30c59002cbd4348f01a759ae55d75c.tar.gz
scummvm-rg350-da626f786d30c59002cbd4348f01a759ae55d75c.tar.bz2
scummvm-rg350-da626f786d30c59002cbd4348f01a759ae55d75c.zip
CGE: Remove unused functions, moveVmap() and moveShapes().
Diffstat (limited to 'engines/cge')
-rw-r--r--engines/cge/bitmap.cpp14
-rw-r--r--engines/cge/bitmap.h1
-rw-r--r--engines/cge/vga13h.cpp7
-rw-r--r--engines/cge/vga13h.h1
4 files changed, 0 insertions, 23 deletions
diff --git a/engines/cge/bitmap.cpp b/engines/cge/bitmap.cpp
index 39bafc5e98..0e599cc05b 100644
--- a/engines/cge/bitmap.cpp
+++ b/engines/cge/bitmap.cpp
@@ -154,20 +154,6 @@ char *Bitmap::forceExt(char *buf, const char *name, const char *ext) {
return buf;
}
-uint16 Bitmap::moveVmap(uint8 *buf) {
- debugC(1, kCGEDebugBitmap, "Bitmap::moveVmap(buf)");
-
- if (!_v)
- return 0;
-
- uint16 vsiz = (uint8 *)_b - (uint8 *)_v;
- uint16 siz = vsiz + _h * sizeof(HideDesc);
- memcpy(buf, _v, siz);
- delete[] _v;
- _b = (HideDesc *)((_v = buf) + vsiz);
- return siz;
-}
-
BitmapPtr Bitmap::code() {
debugC(1, kCGEDebugBitmap, "Bitmap::code()");
diff --git a/engines/cge/bitmap.h b/engines/cge/bitmap.h
index aa6282705c..e7179f3b0b 100644
--- a/engines/cge/bitmap.h
+++ b/engines/cge/bitmap.h
@@ -77,7 +77,6 @@ public:
void show(int16 x, int16 y);
void xShow(int16 x, int16 y);
bool solidAt(int16 x, int16 y);
- uint16 moveVmap(uint8 *buf);
};
diff --git a/engines/cge/vga13h.cpp b/engines/cge/vga13h.cpp
index 47b77688f7..e271895935 100644
--- a/engines/cge/vga13h.cpp
+++ b/engines/cge/vga13h.cpp
@@ -115,13 +115,6 @@ BitmapPtr *Sprite::setShapeList(BitmapPtr *shpP) {
return r;
}
-void Sprite::moveShapes(uint8 *buf) {
- BitmapPtr *p;
- for (p = _ext->_shpList; *p; p++) {
- buf += (*p)->moveVmap(buf);
- }
-}
-
bool Sprite::works(Sprite *spr) {
if (!spr || !spr->_ext)
return false;
diff --git a/engines/cge/vga13h.h b/engines/cge/vga13h.h
index 559fa78cdb..50cf5dea0d 100644
--- a/engines/cge/vga13h.h
+++ b/engines/cge/vga13h.h
@@ -128,7 +128,6 @@ public:
virtual ~Sprite();
BitmapPtr shp();
BitmapPtr *setShapeList(BitmapPtr *shp);
- void moveShapes(uint8 *buf);
Sprite *expand();
Sprite *contract();
Sprite *backShow(bool fast = false);