Update of /cvsroot/sharedaemon/ui-wx/src
In directory sc8-pr-cvs1:/tmp/cvs-serv6552
Modified Files:
MainDlg.cpp
Log Message:
removed a block of unused code
Index: MainDlg.cpp
===================================================================
RCS file: /cvsroot/sharedaemon/ui-wx/src/MainDlg.cpp,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -d -r1.32 -r1.33
--- MainDlg.cpp 22 Dec 2003 05:04:15 -0000 1.32
+++ MainDlg.cpp 22 Dec 2003 06:21:07 -0000 1.33
@@ -460,7 +460,6 @@
/******************************************************************************/
void CMainDlg::LoadAndShowDialogPages() {
wxString start_page;
-long tmp;
serverwnd = new CServerWnd(this);
wxASSERT_MSG(serverwnd, wxT("Server Page creation failed."));
@@ -501,20 +500,6 @@
);
m_config->Read(wxT("/General/Start Page"), &start_page, wxT("Servers"));
- if (start_page.ToLong(&tmp)) { /* Old_style (<0.2.0) conf file */
- switch (tmp) {
- case 0: start_page = wxT("Servers"); break;
- case 1: start_page = wxT("Search"); break;
- case 2: start_page = wxT("Transfer"); break;
- case 3: start_page = wxT("Shared Files"); break;
- case 4: start_page = wxT("Messages"); break;
- case 5: start_page = wxT("Statistics"); break;
- default: start_page = wxT("Servers"); break;
- }
- } else if (start_page == wxT("")) { /* Windows registry returns "" if */
- start_page = wxT("Servers"); /* int was stored but wxString */
- } /* was read */
-
SetActivePage(start_page); /* Error-checking is done there */
}
|