aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/scummsys.h14
-rw-r--r--common/util.cpp8
-rw-r--r--common/util.h2
3 files changed, 0 insertions, 24 deletions
diff --git a/common/scummsys.h b/common/scummsys.h
index 89621458b4..50226ce51e 100644
--- a/common/scummsys.h
+++ b/common/scummsys.h
@@ -97,11 +97,6 @@
// explains the reasons briefly.
#define SCUMMVM_USE_LONG_INT
- #if defined(CHECK_HEAP)
- #undef CHECK_HEAP
- #define CHECK_HEAP checkHeap();
- #endif
-
#define FORCEINLINE __forceinline
#define NORETURN _declspec(noreturn)
#define PLUGIN_EXPORT __declspec(dllexport)
@@ -320,11 +315,6 @@
#define SCUMM_LITTLE_ENDIAN
- #if defined(CHECK_HEAP)
- #undef CHECK_HEAP
- #define CHECK_HEAP checkHeap();
- #endif
-
#define FORCEINLINE __forceinline
#define NORETURN _declspec(noreturn)
#define PLUGIN_EXPORT __declspec(dllexport)
@@ -368,10 +358,6 @@
#define FORCEINLINE inline
#endif
-#ifndef CHECK_HEAP
-#define CHECK_HEAP
-#endif
-
#ifndef CDECL
#define CDECL
#endif
diff --git a/common/util.cpp b/common/util.cpp
index 6f4f3f1a67..694bd7fdfb 100644
--- a/common/util.cpp
+++ b/common/util.cpp
@@ -534,11 +534,3 @@ void CDECL warning(const char *s, ...) {
#endif
#endif
}
-
-void checkHeap() {
-#if defined(WIN32) && !defined(__SYMBIAN32__)
- if (_heapchk() != _HEAPOK) {
- error("Heap is invalid!");
- }
-#endif
-}
diff --git a/common/util.h b/common/util.h
index c55bee6c1d..6fb0e68a90 100644
--- a/common/util.h
+++ b/common/util.h
@@ -274,8 +274,6 @@ void CDECL debug(const char *s, ...) GCC_PRINTF(1, 2);
void CDECL debugN(int level, const char *s, ...) GCC_PRINTF(2, 3);
void CDECL debugC(int level, uint32 engine_level, const char *s, ...) GCC_PRINTF(3, 4);
-void checkHeap();
-
extern int gDebugLevel;