From 8f01c5394dcce8f5d4e7102dacfcdea9d1f7b021 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Thu, 16 Jul 2009 01:16:09 +0000 Subject: Add destructor callbacks for polymorphic C types, and use their base dmnsn_delete_*() function. --- libdimensionxx/objects.cpp | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'libdimensionxx/objects.cpp') diff --git a/libdimensionxx/objects.cpp b/libdimensionxx/objects.cpp index 2272586..7bedd92 100644 --- a/libdimensionxx/objects.cpp +++ b/libdimensionxx/objects.cpp @@ -31,14 +31,6 @@ namespace Dimension } } - // Delete a sphere - Sphere::~Sphere() - { - if (unique()) { - dmnsn_delete_sphere(dmnsn()); - } - } - // Shallow copy a sphere Object* Sphere::copy() @@ -60,14 +52,6 @@ namespace Dimension } } - // Delete a sphere - Cube::~Cube() - { - if (unique()) { - dmnsn_delete_cube(dmnsn()); - } - } - // Shallow copy a cube Object* Cube::copy() -- cgit v1.2.3