From: Steve Brokenshire Date: Mon, 28 Dec 2015 05:22:35 +0000 (+0000) Subject: Removed previous version of ProcessIntegerValue. X-Git-Tag: release-0.09~157 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=0a90006dce811f5df16fabea1a13c26232a4b775;p=xestiaab%2F.git Removed previous version of ProcessIntegerValue. --- diff --git a/source/contacteditor/ContactDataObject.cpp b/source/contacteditor/ContactDataObject.cpp index 6ee703e..7d8f535 100644 --- a/source/contacteditor/ContactDataObject.cpp +++ b/source/contacteditor/ContactDataObject.cpp @@ -5206,30 +5206,6 @@ void ProcessIntegerValue(wxString *PropertyName, } -void ProcessIntegerValue(std::map *PrefPtr, - wxString *PropertyValue, - int *ItemCount){ - - int PriorityNumber = 0; - bool ValidNumber = TRUE; - - try{ - PriorityNumber = std::stoi(PropertyValue->ToStdString()); - } - - catch(std::invalid_argument &e){ - ValidNumber = FALSE; - } - - if (ValidNumber == TRUE){ - - PrefPtr->erase(*ItemCount); - PrefPtr->insert(std::make_pair(*ItemCount, PriorityNumber)); - - } - -} - void SplitValues(wxString *PropertyLine, std::map *SplitPoints, std::map *SplitLength, diff --git a/source/contacteditor/ContactDataObject.h b/source/contacteditor/ContactDataObject.h index a5c1fbb..6777544 100644 --- a/source/contacteditor/ContactDataObject.h +++ b/source/contacteditor/ContactDataObject.h @@ -624,10 +624,6 @@ void ProcessIntegerValue(wxString *PropertyName, wxString *PropertyValue, int *ItemCount, bool *PropertyMatched); - -void ProcessIntegerValue(std::map *PrefPtr, - wxString *PropertyValue, - int *ItemCount); void ProcessStringValue(wxString *PropertyName, wxString PropertyNameMatch,