Remove unused m_sockets
This commit is contained in:
parent
7d25b6de87
commit
343e3aee55
|
@ -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;
|
||||
|
|
|
@ -80,6 +80,7 @@ KIWAY_PLAYER::~KIWAY_PLAYER() throw() {
|
|||
m_socketServer->Notify( false );
|
||||
|
||||
delete m_socketServer;
|
||||
m_socketServer = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue