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/cameras.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'libdimensionxx/cameras.cpp') diff --git a/libdimensionxx/cameras.cpp b/libdimensionxx/cameras.cpp index ca571be..5d84c4f 100644 --- a/libdimensionxx/cameras.cpp +++ b/libdimensionxx/cameras.cpp @@ -31,14 +31,6 @@ namespace Dimension } } - // Delete a perspective camera, if we're the last reference - Perspective_Camera::~Perspective_Camera() - { - if (unique()) { - dmnsn_delete_perspective_camera(dmnsn()); - } - } - // Get the transformation matrix Matrix Perspective_Camera::trans() -- cgit v1.2.3