From 6c19c007938d5543b7c63c5e5fec820358cca472 Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Tue, 6 Feb 2024 15:02:40 +0100 Subject: [PATCH] Remove obsolete function --- Fwk/AppFwk/cafViewer/cafViewer.cpp | 18 ------------------ Fwk/AppFwk/cafViewer/cafViewer.h | 2 -- 2 files changed, 20 deletions(-) diff --git a/Fwk/AppFwk/cafViewer/cafViewer.cpp b/Fwk/AppFwk/cafViewer/cafViewer.cpp index c6556b3404..9cabacab42 100644 --- a/Fwk/AppFwk/cafViewer/cafViewer.cpp +++ b/Fwk/AppFwk/cafViewer/cafViewer.cpp @@ -112,7 +112,6 @@ class GlobalViewerDynUniformSet : public cvf::DynamicUniformSet } // namespace caf -std::list caf::Viewer::sm_viewers; cvf::ref caf::Viewer::sm_openGLContextGroup; //-------------------------------------------------------------------------------------------------- @@ -181,8 +180,6 @@ caf::Viewer::Viewer( QWidget* parent ) m_overlayImage->setLayoutFixedPosition( cvf::Vec2i( 0, 0 ) ); m_showPerfInfoHud = false; - - sm_viewers.push_back( this ); } //-------------------------------------------------------------------------------------------------- @@ -192,8 +189,6 @@ caf::Viewer::~Viewer() { //this->cvfShutdownOpenGLContext(); - sm_viewers.remove( this ); - // To delete the layout widget if ( m_layoutWidget ) m_layoutWidget->deleteLater(); } @@ -279,19 +274,6 @@ void caf::Viewer::setupRenderingSequence() updateCamera( width(), height() ); } -//-------------------------------------------------------------------------------------------------- -/// -//-------------------------------------------------------------------------------------------------- -caf::Viewer* caf::Viewer::sharedWidget() -{ - if ( !sm_viewers.empty() ) - { - return *( sm_viewers.begin() ); - } - - return nullptr; -} - //-------------------------------------------------------------------------------------------------- /// //-------------------------------------------------------------------------------------------------- diff --git a/Fwk/AppFwk/cafViewer/cafViewer.h b/Fwk/AppFwk/cafViewer/cafViewer.h index 7f2607ff4c..6ea40c7a1e 100644 --- a/Fwk/AppFwk/cafViewer/cafViewer.h +++ b/Fwk/AppFwk/cafViewer/cafViewer.h @@ -251,10 +251,8 @@ public slots: void updateOverlayImagePresence(); // System to make sure we share OpenGL resources - static Viewer* sharedWidget(); static cvf::OpenGLContextGroup* contextGroup(); - static std::list sm_viewers; static cvf::ref sm_openGLContextGroup; caf::FrameAnimationControl* m_animationControl;