Index: unk/ppImage/src/ppMem.c
===================================================================
--- /trunk/ppImage/src/ppMem.c	(revision 11263)
+++ 	(revision )
@@ -1,89 +1,0 @@
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#include <stdio.h>
-#include "pslib.h"
-#include "ppMem.h"
-
-#define LEAKS "leaks.dat"               // File to record leaks
-
-psMemId ppMemAlloc(const psMemBlock *ptr)
-{
-    fprintf(stderr, "Allocated ");
-    ppMemPrint(ptr);
-    return 0;
-}
-
-// Same as ppMemAlloc, except it says "Freed", and it subtracts one from the reference counter, because
-// psMemory.c doesn't do that until after the callback.
-psMemId ppMemFree(const psMemBlock *ptr)
-{
-    fprintf(stderr, "Freeing ");
-    ppMemPrint(ptr);
-    return 0;
-}
-
-void ppMemProblem(const psMemBlock *ptr)
-{
-    fprintf(stderr, "Problem with ");
-    ppMemPrint(ptr);
-}
-
-// Simply print a memory block
-void ppMemPrint(const psMemBlock *ptr)
-{
-    fprintf(stderr,
-            "Memory block %ld: %ld references\n"
-             "\tFile %s, line %d, size %zd\n"
-             "\tPosts: %zx %zx %zx\n",
-             ptr->id, ptr->refCounter, ptr->file, ptr->lineno, ptr->userMemorySize, (size_t)ptr->startblock,
-             (size_t)ptr->endblock, (size_t)*(void**)((int8_t *)(ptr + 1) + ptr->userMemorySize));
-}
-
-
-// Check for memory problems
-void ppMemCheck(void)
-{
-    fprintf(stderr, "Checking for memory problems....\n");
-
-    (void)psMemProblemCallbackSet((psMemProblemCallback)ppMemProblem); // Set callback for corruption
-
-    FILE *leakFile = fopen(LEAKS, "w"); // File to write leaks to
-    if (leakFile == NULL) {
-        fprintf(stderr, "Unable to open leaks file, %s\n", LEAKS);
-        return;
-    }
-
-    psMemBlock **leaks = NULL;          // List of leaks
-    int nLeaks = psMemCheckLeaks(0, &leaks, leakFile, true); // Number of leaks
-    fprintf(stderr, "%d leaks found:\n", nLeaks);
-    for (int i = nLeaks - 1; i >= 0; i--) {
-        ppMemPrint(leaks[i]);
-    }
-
-    int nCorrupted;                     // Number of corrupted memory blocks
-    nCorrupted = psMemCheckCorruption(false);
-    fprintf(stderr, "%d memory blocks corrupted.\n", nCorrupted);
-}
-
-void ppMemUsed(void)
-{
-    psMemBlock **leaks = NULL;          // List of leaks
-    int nLeaks = psMemCheckLeaks(0, &leaks, NULL, true); // Number of leaks
-    size_t total = 0;                   // Total size
-    size_t largest = 0;                 // Largest block size
-    psMemId index = -1;                 // Id number of largest block
-    for (int i = nLeaks - 1; i >= 0; i--) {
-        psMemBlock *mb = leaks[i];
-        if (mb->userMemorySize >= largest) {
-            largest = mb->userMemorySize;
-            index = mb->id;
-        }
-        total += mb->userMemorySize;
-    }
-    psFree(leaks);
-
-    psLogMsg(__func__, PS_LOG_INFO, "Memory used: %zd\nLargest id: %ld (%zd bytes)", total, index, largest);
-
-}
Index: unk/ppImage/src/ppMem.h
===================================================================
--- /trunk/ppImage/src/ppMem.h	(revision 11263)
+++ 	(revision )
@@ -1,12 +1,0 @@
-#ifndef PP_MEM_H
-#define PP_MEM_H
-
-#include "pslib.h"
-
-psMemId ppMemAlloc(const psMemBlock *ptr);
-psMemId ppMemFree(const psMemBlock *ptr);
-void ppMemPrint(const psMemBlock *ptr);
-void ppMemCheck(void);
-void ppMemUsed(void);
-
-#endif
