diff options
author | Tavian Barnes <tavianator@gmail.com> | 2009-07-16 01:16:09 +0000 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2009-07-16 01:16:09 +0000 |
commit | 8f01c5394dcce8f5d4e7102dacfcdea9d1f7b021 (patch) | |
tree | 4092a281882e34ac53ec15d582dcbf2cb0d408c0 /libdimension/objects.c | |
parent | 1928016fe7aa439d4bfb61d3a7e7b7399ca7a229 (diff) | |
download | dimension-8f01c5394dcce8f5d4e7102dacfcdea9d1f7b021.tar.xz |
Add destructor callbacks for polymorphic C types, and use their base
dmnsn_delete_*() function.
Diffstat (limited to 'libdimension/objects.c')
-rw-r--r-- | libdimension/objects.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/libdimension/objects.c b/libdimension/objects.c index 8f45c0e..32d3fdd 100644 --- a/libdimension/objects.c +++ b/libdimension/objects.c @@ -44,13 +44,6 @@ dmnsn_new_sphere() return sphere; } -/* Free a sphere */ -void -dmnsn_delete_sphere(dmnsn_object *sphere) -{ - dmnsn_delete_object(sphere); -} - /* Return a list of insersections of `line' with a sphere */ static dmnsn_array * dmnsn_sphere_intersections_fn(const dmnsn_object *sphere, dmnsn_line line) @@ -103,13 +96,6 @@ dmnsn_new_cube() return cube; } -/* Delete a cube */ -void -dmnsn_delete_cube(dmnsn_object *cube) -{ - dmnsn_delete_object(cube); -} - /* Intersections callback for a cube */ static dmnsn_array * dmnsn_cube_intersections_fn(const dmnsn_object *cube, dmnsn_line line) |