From 7b08644490cc1f897f4c327af839f0b2448351c0 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Wed, 7 Apr 2010 15:59:49 -0400 Subject: Don't use dynamic memory for dmnsn_intersection's. Drops us from ~400,000 allocs to ~1000. Oops ><. --- libdimension/object.c | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'libdimension/object.c') 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 -/* 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() -- cgit v1.2.3