From 0a90006dce811f5df16fabea1a13c26232a4b775 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Mon, 28 Dec 2015 05:22:35 +0000 Subject: [PATCH] Removed previous version of ProcessIntegerValue. --- source/contacteditor/ContactDataObject.cpp | 24 ---------------------- source/contacteditor/ContactDataObject.h | 4 ---- 2 files changed, 28 deletions(-) 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, -- 2.39.5