Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
NetPlay: Remove the "Stop" button
Now that the host can simply close the window, there's no need for this extra control.
  • Loading branch information
magcius committed Aug 14, 2013
1 parent 5241dea commit 1c74e41
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
8 changes: 0 additions & 8 deletions Source/Core/DolphinWX/Src/NetWindow.cpp
Expand Up @@ -343,9 +343,6 @@ NetPlayDiag::NetPlayDiag(wxWindow* const parent, const CGameListCtrl* const game
wxButton* const start_btn = new wxButton(panel, wxID_ANY, _("Start"));
start_btn->Bind(wxEVT_COMMAND_BUTTON_CLICKED, &NetPlayDiag::OnStart, this);
bottom_szr->Add(start_btn);
wxButton* const stop_btn = new wxButton(panel, wxID_ANY, _("Stop"));
stop_btn->Bind(wxEVT_COMMAND_BUTTON_CLICKED, &NetPlayDiag::OnStop, this);
bottom_szr->Add(stop_btn);
bottom_szr->Add(new wxStaticText(panel, wxID_ANY, _("Buffer:")), 0, wxLEFT | wxCENTER, 5 );
wxSpinCtrl* const padbuf_spin = new wxSpinCtrl(panel, wxID_ANY, wxT("20")
, wxDefaultPosition, wxSize(64, -1), wxSP_ARROW_KEYS, 0, 200, INITIAL_PAD_BUFFER_SIZE);
Expand Down Expand Up @@ -430,11 +427,6 @@ void NetPlayDiag::OnStart(wxCommandEvent&)
netplay_server->StartGame(FindGame());
}

void NetPlayDiag::OnStop(wxCommandEvent&)
{
NetPlay::StopGame();
}

void NetPlayDiag::BootGame(const std::string& filename)
{
main_frame->BootGame(filename);
Expand Down
1 change: 0 additions & 1 deletion Source/Core/DolphinWX/Src/NetWindow.h
Expand Up @@ -67,7 +67,6 @@ class NetPlayDiag : public wxFrame, public NetPlayUI
Common::FifoQueue<std::string> chat_msgs;

void OnStart(wxCommandEvent& event);
void OnStop(wxCommandEvent& event);

// implementation of NetPlayUI methods
void BootGame(const std::string& filename);
Expand Down

0 comments on commit 1c74e41

Please sign in to comment.