summaryrefslogtreecommitdiff
path: root/libinterp/load.c
diff options
context:
space:
mode:
authorforsyth <forsyth@vitanuova.com>2010-08-10 23:06:28 +0100
committerforsyth <forsyth@vitanuova.com>2010-08-10 23:06:28 +0100
commit7de2b42d50e3c05cc143e7b51284009b5e185581 (patch)
tree42fffe0c9804551c120ef89c3f505059bbd31cfb /libinterp/load.c
parent99c84fef96ccd10bb6cabb823384c033090293e9 (diff)
20100810-2306
Diffstat (limited to 'libinterp/load.c')
-rw-r--r--libinterp/load.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/libinterp/load.c b/libinterp/load.c
index 8645338a..2e3aa216 100644
--- a/libinterp/load.c
+++ b/libinterp/load.c
@@ -79,23 +79,6 @@ load(char *path)
return readmod(path, nil, 0);
}
-Type*
-dtype(void (*destroy)(Heap*, int), int size, uchar *map, int mapsize)
-{
- Type *t;
-
- t = malloc(sizeof(Type)+mapsize);
- if(t != nil) {
- t->ref = 1;
- t->free = destroy;
- t->mark = markheap;
- t->size = size;
- t->np = mapsize;
- memmove(t->map, map, mapsize);
- }
- return t;
-}
-
int
brpatch(Inst *ip, Module *m)
{