Reorganisation of the source tree
[ghc-hetmet.git] / ghc / rts / hooks / OutOfHeap.c
diff --git a/ghc/rts/hooks/OutOfHeap.c b/ghc/rts/hooks/OutOfHeap.c
deleted file mode 100644 (file)
index 98db0d7..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-/* -----------------------------------------------------------------------------
- *
- * User-overridable RTS hooks.
- *
- * ---------------------------------------------------------------------------*/
-
-#include "Rts.h"
-#include <stdio.h>
-
-void
-OutOfHeapHook (lnat request_size, lnat heap_size) /* both sizes in bytes */
-{
-  /*    fprintf(stderr, "Heap exhausted;\nwhile trying to allocate %lu bytes in a %lu-byte heap;\nuse `+RTS -H<size>' to increase the total heap size.\n", */
-
-  (void)request_size;   /* keep gcc -Wall happy */
-  fprintf(stderr, "Heap exhausted;\nCurrent maximum heap size is %lu bytes (%lu Mb);\nuse `+RTS -M<size>' to increase it.\n",
-         heap_size, heap_size / (1024*1024));
-}
-