summaryrefslogtreecommitdiffstats
path: root/libdimension/object.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-04-07 15:59:49 -0400
committerTavian Barnes <tavianator@gmail.com>2010-04-07 16:09:22 -0400
commit7b08644490cc1f897f4c327af839f0b2448351c0 (patch)
tree7d4fe3dbb0d2dbe8fef27a46f320eac40ecf7298 /libdimension/object.c
parent03c4f1bb394e6d0bee61a438937e068ccf57e09d (diff)
downloaddimension-7b08644490cc1f897f4c327af839f0b2448351c0.tar.xz
Don't use dynamic memory for dmnsn_intersection's.
Drops us from ~400,000 allocs to ~1000. Oops ><.
Diffstat (limited to 'libdimension/object.c')
-rw-r--r--libdimension/object.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/libdimension/object.c b/libdimension/object.c
index 51db42f..bb4a766 100644
--- a/libdimension/object.c
+++ b/libdimension/object.c
@@ -21,21 +21,6 @@
#include "dimension.h"
#include <errno.h>
-/* Allocate an intersection */
-dmnsn_intersection *
-dmnsn_new_intersection()
-{
- dmnsn_intersection *intersection = dmnsn_malloc(sizeof(dmnsn_intersection));
- return intersection;
-}
-
-/* Free an intersection */
-void
-dmnsn_delete_intersection(dmnsn_intersection *intersection)
-{
- free(intersection);
-}
-
/* Allocate a dummy object */
dmnsn_object *
dmnsn_new_object()