Remove unused m_sockets

This commit is contained in:
Marek Roszko 2023-02-19 23:49:43 -05:00
parent 7d25b6de87
commit 343e3aee55
3 changed files with 1 additions and 10 deletions

View File

@ -86,7 +86,6 @@ EDA_DRAW_FRAME::EDA_DRAW_FRAME( KIWAY* aKiway, wxWindow* aParent, FRAME_T aFrame
long aStyle, const wxString& aFrameName, const EDA_IU_SCALE& aIuScale ) :
KIWAY_PLAYER( aKiway, aParent, aFrameType, aTitle, aPos, aSize, aStyle, aFrameName, aIuScale )
{
m_socketServer = nullptr;
m_mainToolBar = nullptr;
m_drawToolBar = nullptr;
m_optionsToolBar = nullptr;
@ -187,14 +186,6 @@ EDA_DRAW_FRAME::EDA_DRAW_FRAME( KIWAY* aKiway, wxWindow* aParent, FRAME_T aFrame
EDA_DRAW_FRAME::~EDA_DRAW_FRAME()
{
delete m_socketServer;
for( wxSocketBase* socket : m_sockets )
{
socket->Shutdown();
socket->Destroy();
}
saveCanvasTypeSetting( m_canvasType );
delete m_actions;

View File

@ -80,6 +80,7 @@ KIWAY_PLAYER::~KIWAY_PLAYER() throw() {
m_socketServer->Notify( false );
delete m_socketServer;
m_socketServer = nullptr;
}
}

View File

@ -486,7 +486,6 @@ protected:
wxSocketServer* m_socketServer;
std::vector<wxSocketBase*> m_sockets; ///< interprocess communication
///< Prevents opening same file multiple times.
std::unique_ptr<wxSingleInstanceChecker> m_file_checker;