Skip to content

Commit

Permalink
Remove obsolete function
Browse files Browse the repository at this point in the history
  • Loading branch information
magnesj committed Feb 6, 2024
1 parent 059109f commit 6c19c00
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
18 changes: 0 additions & 18 deletions Fwk/AppFwk/cafViewer/cafViewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ class GlobalViewerDynUniformSet : public cvf::DynamicUniformSet

} // namespace caf

std::list<caf::Viewer*> caf::Viewer::sm_viewers;
cvf::ref<cvf::OpenGLContextGroup> caf::Viewer::sm_openGLContextGroup;

//--------------------------------------------------------------------------------------------------
Expand Down Expand Up @@ -181,8 +180,6 @@ caf::Viewer::Viewer( QWidget* parent )
m_overlayImage->setLayoutFixedPosition( cvf::Vec2i( 0, 0 ) );

m_showPerfInfoHud = false;

sm_viewers.push_back( this );
}

//--------------------------------------------------------------------------------------------------
Expand All @@ -192,8 +189,6 @@ caf::Viewer::~Viewer()
{
//this->cvfShutdownOpenGLContext();

sm_viewers.remove( this );

// To delete the layout widget
if ( m_layoutWidget ) m_layoutWidget->deleteLater();
}
Expand Down Expand Up @@ -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;
}

//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
Expand Down
2 changes: 0 additions & 2 deletions Fwk/AppFwk/cafViewer/cafViewer.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<Viewer*> sm_viewers;
static cvf::ref<cvf::OpenGLContextGroup> sm_openGLContextGroup;

caf::FrameAnimationControl* m_animationControl;
Expand Down

0 comments on commit 6c19c00

Please sign in to comment.