From 71c8417578a50e68529f29fa8ca33af48d1eac5c Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 14 Apr 2018 21:24:48 +0200 Subject: [PATCH] - removed UniqueLineToLines because it wasn't used anywhere. --- src/gl/scene/gl_portal.cpp | 2 -- src/gl/scene/gl_portal.h | 1 - src/tarray.h | 5 +---- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/gl/scene/gl_portal.cpp b/src/gl/scene/gl_portal.cpp index 130fb263a..798e9c972 100644 --- a/src/gl/scene/gl_portal.cpp +++ b/src/gl/scene/gl_portal.cpp @@ -85,7 +85,6 @@ bool GLPortal::inskybox; UniqueList UniqueSkies; UniqueList UniqueHorizons; UniqueList UniquePlaneMirrors; -UniqueList UniqueLineToLines; int skyboxrecursion = 0; @@ -100,7 +99,6 @@ void GLPortal::BeginScene() UniqueSkies.Clear(); UniqueHorizons.Clear(); UniquePlaneMirrors.Clear(); - UniqueLineToLines.Clear(); } //========================================================================== diff --git a/src/gl/scene/gl_portal.h b/src/gl/scene/gl_portal.h index 0e57906a6..e001d3270 100644 --- a/src/gl/scene/gl_portal.h +++ b/src/gl/scene/gl_portal.h @@ -74,7 +74,6 @@ struct GLSkyInfo extern UniqueList UniqueSkies; extern UniqueList UniqueHorizons; extern UniqueList UniquePlaneMirrors; -extern UniqueList UniqueLineToLines; struct GLEEHorizonPortal; class GLSceneDrawer; diff --git a/src/tarray.h b/src/tarray.h index 7d68e58c5..9addadcef 100644 --- a/src/tarray.h +++ b/src/tarray.h @@ -1241,10 +1241,7 @@ public: { if (!memcmp(t, Array[i], sizeof(T))) return Array[i]; } - T * newo = new T; - - *newo = *t; - Array.Push(newo); + Array.Push(new T(*t)); return newo; }