From bba9e78aae93619f18187227b9c6e534bbf37956 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Thu, 17 Mar 2016 17:33:40 +0000 Subject: [PATCH] Removed unused variables from contacteditor/cdo/ContactDataObject.cpp --- .../contacteditor/cdo/ContactDataObject.cpp | 38 +------------------ 1 file changed, 2 insertions(+), 36 deletions(-) diff --git a/source/contacteditor/cdo/ContactDataObject.cpp b/source/contacteditor/cdo/ContactDataObject.cpp index c017406..3b067d1 100644 --- a/source/contacteditor/cdo/ContactDataObject.cpp +++ b/source/contacteditor/cdo/ContactDataObject.cpp @@ -460,7 +460,6 @@ void ContactDataObject::ProcessRevision(wxString PropertySeg1, wxString Property // Process the revision date. - size_t intPropertyLen = PropertySeg1.Len(); std::map SplitPoints; std::map SplitLength; std::map::iterator SLiter; @@ -469,8 +468,6 @@ void ContactDataObject::ProcessRevision(wxString PropertySeg1, wxString Property wxString PropertyValue; wxString PropertyTokens; bool FirstToken = TRUE; - int intSplitsFound = 0; - int intSplitSize = 0; int intPrevValue = 5; SplitValues(&PropertySeg1, &SplitPoints, &SplitLength, intPrevValue); @@ -525,7 +522,6 @@ void ContactDataObject::ProcessSource(wxString PropertySeg1, wxString PropertySe // Process the source address. - size_t intPropertyLen = PropertySeg1.Len(); std::map SplitPoints; std::map SplitLength; std::map::iterator SLiter; @@ -535,8 +531,6 @@ void ContactDataObject::ProcessSource(wxString PropertySeg1, wxString PropertySe wxString PropertyTokens; bool FirstToken = TRUE; bool PropertyMatched = FALSE; - int intSplitsFound = 0; - int intSplitSize = 0; int intPrevValue = 8; SplitValues(&PropertySeg1, &SplitPoints, &SplitLength, intPrevValue); @@ -597,11 +591,8 @@ void ContactDataObject::ProcessSource(wxString PropertySeg1, wxString PropertySe } - intPropertyLen = PropertySeg2.Len(); SplitPoints.clear(); SplitLength.clear(); - intSplitsFound = 0; - intSplitSize = 0; intPrevValue = 0; CaptureString(&PropertySeg2, FALSE); @@ -647,7 +638,6 @@ void ContactDataObject::ProcessXML(wxString PropertySeg1, wxString PropertySeg2, wxString PropertyData; wxString PropertyTokens; std::map::iterator SLiter; - bool FirstToken = TRUE; bool PropertyMatched = FALSE; for (std::map::iterator intiter = SplitPoints.begin(); @@ -949,7 +939,6 @@ void ContactDataObject::ProcessClientPIDMap(wxString PropertySeg1, wxString Prop // Process the Client PID Map. - size_t intPropertyLen = PropertySeg1.Len(); std::map SplitPoints; std::map SplitLength; std::map::iterator SLiter; @@ -958,8 +947,6 @@ void ContactDataObject::ProcessClientPIDMap(wxString PropertySeg1, wxString Prop wxString PropertyValue; wxString PropertyTokens; bool FirstToken = TRUE; - int intSplitsFound = 0; - int intSplitSize = 0; int intPrevValue = 14; SplitValues(&PropertySeg1, &SplitPoints, &SplitLength, intPrevValue); @@ -2038,7 +2025,6 @@ void ContactDataObject::ProcessTelephone(wxString PropertySeg1, wxString Propert int intSplitSize = 0; int intSplitsFound = 0; int intSplitPoint = 0; - int intType = 0; int intPrevValue = 5; SplitValues(&PropertySeg1, &SplitPoints, &SplitLength, intPrevValue); @@ -2533,7 +2519,6 @@ void ContactDataObject::ProcessRelated(wxString PropertySeg1, wxString PropertyS // Process the relation. - size_t intPropertyLen = PropertySeg1.Len(); std::map SplitPoints; std::map SplitLength; std::map::iterator SLiter; @@ -2545,8 +2530,6 @@ void ContactDataObject::ProcessRelated(wxString PropertySeg1, wxString PropertyS wxString RelatedTypeOriginal; wxString RelatedName; bool FirstToken = TRUE; - int intSplitsFound = 0; - int intSplitSize = 0; int intPrevValue = 9; SplitValues(&PropertySeg1, &SplitPoints, &SplitLength, intPrevValue); @@ -4130,8 +4113,6 @@ void ContactDataObject::ProcessCalendarURI(wxString PropertySeg1, wxString Prope wxString PropertyValue; wxString PropertyTokens; bool FirstToken = TRUE; - int intSplitsFound = 0; - int intSplitSize = 0; int intPrevValue = 8; SplitValues(&PropertySeg1, &SplitPoints, &SplitLength, intPrevValue); @@ -4190,11 +4171,8 @@ void ContactDataObject::ProcessCalendarURI(wxString PropertySeg1, wxString Prope } - intPropertyLen = PropertySeg2.Len(); SplitPoints.clear(); SplitLength.clear(); - intSplitsFound = 0; - intSplitSize = 0; intPrevValue = 0; CaptureString(&PropertySeg2, FALSE); @@ -4225,8 +4203,7 @@ void ContactDataObject::ProcessCalendarURI(wxString PropertySeg1, wxString Prope void ContactDataObject::ProcessCalendarAddressURI(wxString PropertySeg1, wxString PropertySeg2, int *CalAdrURICount){ // Process the calendar address URI. - - size_t intPropertyLen = PropertySeg1.Len(); + std::map SplitPoints; std::map SplitLength; std::map::iterator SLiter; @@ -4235,8 +4212,6 @@ void ContactDataObject::ProcessCalendarAddressURI(wxString PropertySeg1, wxStrin wxString PropertyValue; wxString PropertyTokens; bool FirstToken = TRUE; - int intSplitsFound = 0; - int intSplitSize = 0; int intPrevValue = 8; SplitValues(&PropertySeg1, &SplitPoints, &SplitLength, intPrevValue); @@ -4295,11 +4270,8 @@ void ContactDataObject::ProcessCalendarAddressURI(wxString PropertySeg1, wxStrin } - intPropertyLen = PropertySeg2.Len(); SplitPoints.clear(); SplitLength.clear(); - intSplitsFound = 0; - intSplitSize = 0; intPrevValue = 0; CaptureString(&PropertySeg2, FALSE); @@ -4340,8 +4312,6 @@ void ContactDataObject::ProcessCalendarFreeBusy(wxString PropertySeg1, wxString wxString PropertyValue; wxString PropertyTokens; bool FirstToken = TRUE; - int intSplitsFound = 0; - int intSplitSize = 0; int intPrevValue = 7; SplitValues(&PropertySeg1, &SplitPoints, &SplitLength, intPrevValue); @@ -4403,8 +4373,6 @@ void ContactDataObject::ProcessCalendarFreeBusy(wxString PropertySeg1, wxString intPropertyLen = PropertySeg2.Len(); SplitPoints.clear(); SplitLength.clear(); - intSplitsFound = 0; - intSplitSize = 0; intPrevValue = 0; CaptureString(&PropertySeg2, FALSE); @@ -4435,8 +4403,7 @@ void ContactDataObject::ProcessCalendarFreeBusy(wxString PropertySeg1, wxString void ContactDataObject::ProcessKey(wxString PropertySeg1, wxString PropertySeg2, int *KeyCount){ // Process the key. - - size_t intPropertyLen = PropertySeg1.Len(); + std::map SplitPoints; std::map SplitLength; std::map::iterator SLiter; @@ -4502,7 +4469,6 @@ void ContactDataObject::ProcessKey(wxString PropertySeg1, wxString PropertySeg2, } - intPropertyLen = PropertySeg2.Len(); SplitPoints.clear(); SplitLength.clear(); intSplitsFound = 0; -- 2.39.5