From 60b068e2dfdf58c14d5669133db0e789304b2717 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Thu, 17 Mar 2016 08:22:46 +0000 Subject: [PATCH] Removed unused variables from contacteditor/frmContactEditor-General.cpp --- .../frmContactEditor-General.cpp | 42 ------------------- 1 file changed, 42 deletions(-) diff --git a/source/contacteditor/frmContactEditor-General.cpp b/source/contacteditor/frmContactEditor-General.cpp index 9dc47ba..2ee83a3 100644 --- a/source/contacteditor/frmContactEditor-General.cpp +++ b/source/contacteditor/frmContactEditor-General.cpp @@ -38,11 +38,8 @@ void frmContactEditor::AddGeneralNickname( wxCommandEvent& event ) // Bring up the window for adding a nickname. - int intResult = 0; - frmContactEditorNickname *frameCENickname = new frmContactEditorNickname ( this ); frameCENickname->SetEditorMode(FALSE, CE_GENERAL); - intResult = GetLastInt(&ContactEditorData.GeneralNicknamesList); frameCENickname->SetupPointers(&ContactEditorData.GeneralNicknamesList, &ContactEditorData.GeneralNicknamesListAltID, &ContactEditorData.GeneralNicknamesListPID, @@ -121,11 +118,8 @@ void frmContactEditor::AddGeneralAddress( wxCommandEvent& event ) // Bring up the window for adding an address. - int intResult = 0; - frmContactEditorAddress *frameCEAddress = new frmContactEditorAddress ( this ); frameCEAddress->SetEditorMode(FALSE, CE_GENERAL); - intResult = GetLastInt(&ContactEditorData.GeneralAddressList); frameCEAddress->SetupPointers(&ContactEditorData.GeneralAddressList, &ContactEditorData.GeneralAddressListTown, &ContactEditorData.GeneralAddressListCounty, @@ -231,11 +225,8 @@ void frmContactEditor::AddGeneralEmail( wxCommandEvent& event ) // Bring up the window for adding an email. - int intResult = 0; - frmContactEditorEmail *frameCEEmail = new frmContactEditorEmail ( this ); frameCEEmail->SetEditorMode(FALSE, CE_GENERAL); - intResult = GetLastInt(&ContactEditorData.GeneralAddressList); frameCEEmail->SetupPointers(&ContactEditorData.GeneralEmailList, &ContactEditorData.GeneralEmailListAltID, &ContactEditorData.GeneralEmailListPID, @@ -311,12 +302,9 @@ void frmContactEditor::AddGeneralIM( wxCommandEvent& event ) { // Bring up the window for adding a IM address. - - int intResult = 0; frmContactEditorIM *frameCEIM = new frmContactEditorIM ( this ); frameCEIM->SetEditorMode(FALSE, CE_GENERAL); - intResult = GetLastInt(&ContactEditorData.GeneralIMList); frameCEIM->SetupPointers(&ContactEditorData.GeneralIMList, &ContactEditorData.GeneralIMListAltID, &ContactEditorData.GeneralIMListPID, @@ -396,12 +384,9 @@ void frmContactEditor::AddGeneralTelephone( wxCommandEvent& event ) { // Bring up the window for adding a telephone. - - int intResult = 0; frmContactEditorTelephone *frameCETel = new frmContactEditorTelephone ( this ); frameCETel->SetEditorMode(FALSE, CE_GENERAL); - intResult = GetLastInt(&ContactEditorData.GeneralTelephoneList); frameCETel->SetupPointers(&ContactEditorData.GeneralTelephoneList, &ContactEditorData.GeneralTelephoneListAltID, &ContactEditorData.GeneralTelephoneListPID, @@ -479,12 +464,9 @@ void frmContactEditor::AddGeneralLanguages( wxCommandEvent& event ) { // Bring up the window for adding a language. - - int intResult = 0; frmContactEditorLanguages *frameCELang = new frmContactEditorLanguages ( this ); frameCELang->SetEditorMode(FALSE, CE_GENERAL); - intResult = GetLastInt(&ContactEditorData.GeneralLanguageList); frameCELang->SetupPointers(&ContactEditorData.GeneralLanguageList, &ContactEditorData.GeneralLanguageListAltID, &ContactEditorData.GeneralLanguageListPID, @@ -559,12 +541,9 @@ void frmContactEditor::AddGeneralTimezone( wxCommandEvent& event ) { // Bring up the window for adding a timezone. - - int intResult = 0; frmContactEditorTimezones *frameCETZ = new frmContactEditorTimezones ( this ); frameCETZ->SetEditorMode(FALSE, CE_GENERAL); - intResult = GetLastInt(&ContactEditorData.GeneralTZList); frameCETZ->SetupPointers(&ContactEditorData.GeneralTZList, &ContactEditorData.GeneralTZListAltID, &ContactEditorData.GeneralTZListPID, @@ -641,12 +620,9 @@ void frmContactEditor::AddGeneralGeoposition( wxCommandEvent& event ) { // Bring up the window for adding a geoposition location. - - int intResult = 0; frmContactEditorGeoposition *frameCEGeo = new frmContactEditorGeoposition ( this ); frameCEGeo->SetEditorMode(FALSE, CE_GENERAL); - intResult = GetLastInt(&ContactEditorData.GeneralGeographyList); frameCEGeo->SetupPointers(&ContactEditorData.GeneralGeographyList, &ContactEditorData.GeneralGeographyListAltID, &ContactEditorData.GeneralGeographyListPID, @@ -728,12 +704,9 @@ void frmContactEditor::AddGeneralRelated( wxCommandEvent& event ) { // Bring up the window for adding a relation. - - int intResult = 0; frmContactEditorRelated *frameCERel = new frmContactEditorRelated ( this ); frameCERel->SetEditorMode(FALSE, CE_GENERAL); - intResult = GetLastInt(&ContactEditorData.GeneralRelatedList); frameCERel->SetupPointers(&ContactEditorData.GeneralRelatedList, &ContactEditorData.GeneralRelatedListRelType, &ContactEditorData.GeneralRelatedListAltID, @@ -811,12 +784,9 @@ void frmContactEditor::AddGeneralWebsite( wxCommandEvent& event ) { // Bring up a window for adding a website. - - int intResult = 0; frmContactEditorWebsites *frameCEWeb = new frmContactEditorWebsites ( this ); frameCEWeb->SetEditorMode(FALSE, CE_GENERAL); - intResult = GetLastInt(&ContactEditorData.GeneralWebsiteList); frameCEWeb->SetupPointers(&ContactEditorData.GeneralWebsiteList, &ContactEditorData.GeneralWebsiteListAltID, &ContactEditorData.GeneralWebsiteListPID, @@ -894,12 +864,9 @@ void frmContactEditor::AddGeneralTitle( wxCommandEvent& event ) { // Bring up the window for adding a title. - - int intResult = 0; frmContactEditorTitles *frameCETitle = new frmContactEditorTitles ( this ); frameCETitle->SetEditorMode(FALSE, CE_GENERAL); - intResult = GetLastInt(&ContactEditorData.GeneralTitleList); frameCETitle->SetupPointers(&ContactEditorData.GeneralTitleList, &ContactEditorData.GeneralTitleListLanguage, &ContactEditorData.GeneralTitleListAltID, @@ -977,12 +944,9 @@ void frmContactEditor::AddGeneralRole( wxCommandEvent& event ) { // Bring up the window for adding a role. - - int intResult = 0; frmContactEditorRoles *frameCERole = new frmContactEditorRoles ( this ); frameCERole->SetEditorMode(FALSE, CE_GENERAL); - intResult = GetLastInt(&ContactEditorData.GeneralRoleList); frameCERole->SetupPointers(&ContactEditorData.GeneralRoleList, &ContactEditorData.GeneralRoleListLanguage, &ContactEditorData.GeneralRoleListAltID, @@ -1060,12 +1024,9 @@ void frmContactEditor::AddGeneralOrganisation( wxCommandEvent& event ) { // Bring up the window for adding an organisation. - - int intResult = 0; frmContactEditorOrganisations *frameCEOrg = new frmContactEditorOrganisations ( this ); frameCEOrg->SetEditorMode(FALSE, CE_GENERAL); - intResult = GetLastInt(&ContactEditorData.GeneralOrganisationsList); frameCEOrg->SetupPointers(&ContactEditorData.GeneralOrganisationsList, &ContactEditorData.GeneralOrganisationsListLanguage, &ContactEditorData.GeneralOrganisationsListSortAs, @@ -1146,12 +1107,9 @@ void frmContactEditor::AddGeneralNote( wxCommandEvent& event ) { // Bring up the window for adding a note. - - int intResult = 0; frmContactEditorNotes *frameCENote = new frmContactEditorNotes ( this ); frameCENote->SetEditorMode(FALSE, CE_GENERAL); - intResult = GetLastInt(&ContactEditorData.GeneralNoteList); frameCENote->SetupPointers(&ContactEditorData.GeneralNoteList, &ContactEditorData.GeneralNoteListLanguage, &ContactEditorData.GeneralNoteListAltID, -- 2.39.5