diff options
| author | Strangerke | 2011-08-19 07:25:58 +0200 | 
|---|---|---|
| committer | Strangerke | 2011-08-19 07:25:58 +0200 | 
| commit | 40ea6d788bfabb9d692377fa0baf87b3e5824e0c (patch) | |
| tree | c6e22163cb9e58e98cf9241a9fbe170a76e706f7 | |
| parent | 85a0fa03ad72be9942decc84b87a6c91c71e5652 (diff) | |
| download | scummvm-rg350-40ea6d788bfabb9d692377fa0baf87b3e5824e0c.tar.gz scummvm-rg350-40ea6d788bfabb9d692377fa0baf87b3e5824e0c.tar.bz2 scummvm-rg350-40ea6d788bfabb9d692377fa0baf87b3e5824e0c.zip | |
CGE: Suppress some dead code
| -rw-r--r-- | engines/cge/sound.cpp | 20 | ||||
| -rw-r--r-- | engines/cge/vga13h.cpp | 24 | 
2 files changed, 1 insertions, 43 deletions
| diff --git a/engines/cge/sound.cpp b/engines/cge/sound.cpp index 8a199c7ee2..b22548c16d 100644 --- a/engines/cge/sound.cpp +++ b/engines/cge/sound.cpp @@ -179,26 +179,6 @@ DataCk *Fx::operator [](int ref) {  	return _current;  } -void *Patch(int pat) { -	void *p = NULL; -	static char fn[] = "PATCH000.SND"; - -	wtom(pat, fn + 5, 10, 3); -	INI_FILE snd = fn; -	if (!snd._error) { -		uint16 siz = (uint16) snd.size(); -		p = (uint8 *) malloc(siz); -		if (p) { -			snd.read(p, siz); -			if (snd._error) { -				free(p); -				p = NULL; -			} -		} -	} -	return p; -} -  MusicPlayer::MusicPlayer() {  	_data = NULL;  	_isGM = false; diff --git a/engines/cge/vga13h.cpp b/engines/cge/vga13h.cpp index 9b063f0c02..ad2415caaf 100644 --- a/engines/cge/vga13h.cpp +++ b/engines/cge/vga13h.cpp @@ -77,28 +77,6 @@ Seq *getConstantSeq(bool seqFlag) {  extern "C"  void    SNDMIDIPlay(); -/* -static void Video() { -  static uint16 SP_S; - -  asm   push    bx -  asm   push    bp -  asm   push    si -  asm   push    di -  asm   push    es -  asm   xor bx,bx       // video page #0 -  SP_S = _SP; -  asm   int VIDEO -  _SP = SP_S; -  asm   pop es -  asm   pop di -  asm   pop si -  asm   pop bp -  asm   pop bx -} -*/ - -  uint16 *SaveScreen() {  	// In ScummVM, we don't need to worry about saving the original screen mode  	return 0; @@ -125,7 +103,7 @@ Sprite *locate(int ref) {  Sprite::Sprite(CGEEngine *vm, BitmapPtr *shpP)  	: _x(0), _y(0), _z(0), _nearPtr(0), _takePtr(0), -	  _next(NULL), _prev(NULL), _seqPtr(NO_SEQ), _time(0), //Delay(0), +	  _next(NULL), _prev(NULL), _seqPtr(NO_SEQ), _time(0),  	  _ext(NULL), _ref(-1), _cave(0), _vm(vm) {  	memset(_file, 0, sizeof(_file));  	*((uint16 *)&_flags) = 0; | 
