refactor: use `unsafePerformIO hack' for global var
[mate.git] / ffi / trap.c
index 0302c5ea0667659c4ce21bd6728c31b49f574a8a..157358b6227ed2ddd994598a4deba7c2edc97b72 100644 (file)
@@ -32,18 +32,6 @@ unsigned int mallocObject(int);
 #define dprintf(args...)
 #endif
 
-void *mate_ctx = NULL;
-
-void *get_mate_context()
-{
-       return mate_ctx;
-}
-
-void *set_mate_context(void *ctx)
-{
-       mate_ctx = ctx;
-}
-
 void mainresult(unsigned int a)
 {
        dprintf("mainresult: 0x%08x\n", a);