Skip to content

Commit e7abe55

Browse files
committed
removed useless IAW timer code
1 parent 98b0f1c commit e7abe55

File tree

2 files changed

+0
-23
lines changed

2 files changed

+0
-23
lines changed

vSMR/Rimcas.hpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -174,15 +174,6 @@ class CRimcas {
174174

175175
RimcasAlertTypes getAlert(string callsign);
176176

177-
void setCountdownDefinition(vector<int> data, vector<int> dataLVP)
178-
{
179-
CountdownDefinition = data;
180-
std::sort(CountdownDefinition.begin(), CountdownDefinition.end(), std::greater<int>());
181-
182-
CountdownDefinitionLVP = dataLVP;
183-
std::sort(CountdownDefinitionLVP.begin(), CountdownDefinitionLVP.end(), std::greater<int>());
184-
}
185-
186177
void ToggleClosedRunway(string name) {
187178
for (auto &runway : Runways) {
188179
if (runway.name == name) {

vSMR/SMRRadar.cpp

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -195,20 +195,6 @@ void CSMRRadar::LoadProfile(string profileName)
195195
// Loading the new profile
196196
CurrentConfig->setActiveProfile(profileName);
197197

198-
// Loading all the new data
199-
const Value &RimcasTimer = CurrentConfig->getActiveProfile()["rimcas"]["timer"];
200-
const Value &RimcasTimerLVP = CurrentConfig->getActiveProfile()["rimcas"]["timer_lvp"];
201-
202-
vector<int> RimcasNorm;
203-
for (SizeType i = 0; i < RimcasTimer.Size(); i++) {
204-
RimcasNorm.push_back(RimcasTimer[i].GetInt());
205-
}
206-
207-
vector<int> RimcasLVP;
208-
for (SizeType i = 0; i < RimcasTimerLVP.Size(); i++) {
209-
RimcasLVP.push_back(RimcasTimerLVP[i].GetInt());
210-
}
211-
RimcasInstance->setCountdownDefinition(RimcasNorm, RimcasLVP);
212198
LeaderLineDefaultlenght = CurrentConfig->getActiveProfile()["labels"]["leader_line_length"].GetInt();
213199

214200
// Reloading the fonts

0 commit comments

Comments
 (0)