Browse Source

Remove unused m_sockets

newinvert
Marek Roszko 3 years ago
parent
commit
343e3aee55
  1. 9
      common/eda_draw_frame.cpp
  2. 1
      common/kiway_player.cpp
  3. 1
      include/eda_draw_frame.h

9
common/eda_draw_frame.cpp

@ -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;

1
common/kiway_player.cpp

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

1
include/eda_draw_frame.h

@ -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…
Cancel
Save