Skip to content

Commit

Permalink
[crt] Remove primitive_byte_allocate().
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys committed Jun 25, 2014
1 parent c97be31 commit a00b8a9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
9 changes: 0 additions & 9 deletions sources/lib/run-time/c-run-time.c
Expand Up @@ -109,15 +109,6 @@ dylan_value primitive_allocate (DSINT size) {
return((dylan_value)allocate(size * sizeof(dylan_value)));
}

dylan_value primitive_byte_allocate (DSINT number_words, DSINT number_bytes) {
size_t size = (number_words * sizeof(dylan_value)) + number_bytes;
#if defined(GC_USE_BOEHM)
return (dylan_value)GC_MALLOC_ATOMIC(size);
#elif defined(GC_USE_MALLOC)
return (dylan_value)malloc(size);
#endif
}

dylan_value primitive_untraced_allocate (DSINT size) {
return dylan__malloc__misc(size * sizeof(dylan_value));
}
Expand Down
1 change: 0 additions & 1 deletion sources/lib/run-time/run-time.h
Expand Up @@ -1189,7 +1189,6 @@ extern void mps__free(size_t *old);
/* ALLOCATION PRIMITIVES */

extern dylan_value primitive_allocate(DSINT);
extern dylan_value primitive_byte_allocate(DSINT, DSINT);
extern dylan_value primitive_untraced_allocate(DSINT);
extern dylan_value primitive_manual_allocate(dylan_value);
extern void primitive_manual_free(dylan_value);
Expand Down

0 comments on commit a00b8a9

Please sign in to comment.