aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimei Yin2017-07-15 17:12:55 +0200
committerSimei Yin2017-07-15 17:51:57 +0200
commit8c57d2d82540d1b7656375c808812ac4cba9d232 (patch)
tree47a2a25a9c92a343ee637045596ccadd3a9e7dfa
parent59f915710679f007f99a33caadf30aee44d6f37a (diff)
downloadscummvm-rg350-8c57d2d82540d1b7656375c808812ac4cba9d232.tar.gz
scummvm-rg350-8c57d2d82540d1b7656375c808812ac4cba9d232.tar.bz2
scummvm-rg350-8c57d2d82540d1b7656375c808812ac4cba9d232.zip
SLUDGE: Remove unused memwatch
-rw-r--r--engines/sludge/memwatch.cpp73
-rw-r--r--engines/sludge/memwatch.h32
-rw-r--r--engines/sludge/module.mk1
3 files changed, 0 insertions, 106 deletions
diff --git a/engines/sludge/memwatch.cpp b/engines/sludge/memwatch.cpp
deleted file mode 100644
index e654f92bc5..0000000000
--- a/engines/sludge/memwatch.cpp
+++ /dev/null
@@ -1,73 +0,0 @@
-/* ScummVM - Graphic Adventure Engine
- *
- * ScummVM is the legal property of its developers, whose names
- * are too numerous to list here. Please refer to the COPYRIGHT
- * file distributed with this source distribution.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- *
- */
-
-#include "common/debug.h"
-
-#include "sludge/allfiles.h"
-
-namespace Sludge {
-
-void *allKnownMem[3000];
-int allKnownNum = 0;
-
-void outputKnownMem() {
-#if 0
- FILE *debu = fopen("debuTURN.txt", "at");
-
- fprintf(debu, "%i lumps:", allKnownNum);
- for (int i = 0; i < allKnownNum; i ++) {
- fprintf(debu, " %p", allKnownMem[i]);
- }
- fprintf(debu, "\n");
- fclose(debu);
-#endif
-}
-
-void adding(void *mem) {
- allKnownMem[allKnownNum] = mem;
- allKnownNum++;
-
- outputKnownMem();
- if (allKnownNum == 3000) {
- debug("Error! Array too full!");
-#if 0
- exit(1);
-#endif
- }
-}
-
-void deleting(void *mem) {
- allKnownNum--;
- for (int i = 0; i <= allKnownNum; i++) {
- if (allKnownMem[i] == mem) {
- allKnownMem[i] = allKnownMem[allKnownNum];
- outputKnownMem();
- return;
- }
- }
-#if 0
- //db ("Error! Deleted a block which hasn't been allocated!");
- exit(1);
-#endif
-}
-
-} // End of namespace Sludge
diff --git a/engines/sludge/memwatch.h b/engines/sludge/memwatch.h
deleted file mode 100644
index 6f8cd9c766..0000000000
--- a/engines/sludge/memwatch.h
+++ /dev/null
@@ -1,32 +0,0 @@
-/* ScummVM - Graphic Adventure Engine
- *
- * ScummVM is the legal property of its developers, whose names
- * are too numerous to list here. Please refer to the COPYRIGHT
- * file distributed with this source distribution.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- *
- */
-#ifndef SLUDGE_MEMWATCH_H
-#define SLUDGE_MEMWATCH_H
-
-namespace Sludge {
-
-void adding(void *);
-void deleting(void *);
-
-} // End of namespace Sludge
-
-#endif
diff --git a/engines/sludge/module.mk b/engines/sludge/module.mk
index 704f7f7a1c..491b17d028 100644
--- a/engines/sludge/module.mk
+++ b/engines/sludge/module.mk
@@ -17,7 +17,6 @@ MODULE_OBJS := \
language.o \
loadsave.o \
main_loop.o \
- memwatch.o \
moreio.o \
movie.o \
newfatal.o \