From ef7d7477d0a64f1cdd5a6b0179e81a2cdbe3a97f Mon Sep 17 00:00:00 2001 From: Mario Luzeiro Date: Sat, 11 Jul 2020 12:46:10 +0100 Subject: [PATCH] 3D-Viewer: Remove not used list --- .../c3d_render_createscene_ogl_legacy.cpp | 8 -------- .../3d_render_ogl_legacy/c3d_render_ogl_legacy.cpp | 4 ---- .../3d_render_ogl_legacy/c3d_render_ogl_legacy.h | 1 - 3 files changed, 13 deletions(-) diff --git a/3d-viewer/3d_rendering/3d_render_ogl_legacy/c3d_render_createscene_ogl_legacy.cpp b/3d-viewer/3d_rendering/3d_render_ogl_legacy/c3d_render_createscene_ogl_legacy.cpp index 24db3c57d7..f5f61a0bcd 100644 --- a/3d-viewer/3d_rendering/3d_render_ogl_legacy/c3d_render_createscene_ogl_legacy.cpp +++ b/3d-viewer/3d_rendering/3d_render_ogl_legacy/c3d_render_createscene_ogl_legacy.cpp @@ -455,14 +455,6 @@ void C3D_RENDER_OGL_LEGACY::reload( REPORTER* aStatusReporter, REPORTER* aWarnin 0.0f, false ); - m_ogl_disp_list_through_holes_inner = generate_holes_display_list( - m_boardAdapter.GetThroughHole_Inner().GetList(), - m_boardAdapter.GetThroughHole_Inner_poly(), - 1.0f, - 0.0f, - true ); - - m_ogl_disp_list_through_holes_vias_outer = generate_holes_display_list( m_boardAdapter.GetThroughHole_Vias_Outer().GetList(), m_boardAdapter.GetThroughHole_Vias_Outer_poly(), diff --git a/3d-viewer/3d_rendering/3d_render_ogl_legacy/c3d_render_ogl_legacy.cpp b/3d-viewer/3d_rendering/3d_render_ogl_legacy/c3d_render_ogl_legacy.cpp index d123196382..abd818eb87 100644 --- a/3d-viewer/3d_rendering/3d_render_ogl_legacy/c3d_render_ogl_legacy.cpp +++ b/3d-viewer/3d_rendering/3d_render_ogl_legacy/c3d_render_ogl_legacy.cpp @@ -62,7 +62,6 @@ C3D_RENDER_OGL_LEGACY::C3D_RENDER_OGL_LEGACY( BOARD_ADAPTER& aAdapter, CCAMERA& m_ogl_disp_list_through_holes_outer_with_npth = NULL; m_ogl_disp_list_through_holes_outer = NULL; - m_ogl_disp_list_through_holes_inner = NULL; m_ogl_disp_list_through_holes_vias_outer = NULL; //m_ogl_disp_list_through_holes_vias_inner = NULL; m_ogl_disp_list_via = NULL; @@ -1062,9 +1061,6 @@ void C3D_RENDER_OGL_LEGACY::ogl_free_all_display_lists() delete m_ogl_disp_list_through_holes_outer; m_ogl_disp_list_through_holes_outer = 0; - delete m_ogl_disp_list_through_holes_inner; - m_ogl_disp_list_through_holes_inner = 0; - delete m_ogl_disp_list_through_holes_vias_outer; m_ogl_disp_list_through_holes_vias_outer = 0; diff --git a/3d-viewer/3d_rendering/3d_render_ogl_legacy/c3d_render_ogl_legacy.h b/3d-viewer/3d_rendering/3d_render_ogl_legacy/c3d_render_ogl_legacy.h index f88e60edf1..75e2203e6d 100644 --- a/3d-viewer/3d_rendering/3d_render_ogl_legacy/c3d_render_ogl_legacy.h +++ b/3d-viewer/3d_rendering/3d_render_ogl_legacy/c3d_render_ogl_legacy.h @@ -81,7 +81,6 @@ private: MAP_OGL_DISP_LISTS m_ogl_disp_lists_layers_holes_inner; CLAYERS_OGL_DISP_LISTS* m_ogl_disp_list_board; CLAYERS_OGL_DISP_LISTS* m_ogl_disp_list_through_holes_outer; - CLAYERS_OGL_DISP_LISTS* m_ogl_disp_list_through_holes_inner; // User for body render CLAYERS_OGL_DISP_LISTS* m_ogl_disp_list_through_holes_outer_with_npth;