Skip to content

Commit

Permalink
Remove code for reserving space for prediction
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorkert committed Oct 29, 2023
1 parent 5bf40f2 commit 81b2856
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions LoopFollow/Controllers/Graphs.swift
Original file line number Diff line number Diff line change
Expand Up @@ -483,14 +483,7 @@ extension MainViewController {
}
}

if (predictionData.count < 1) {
let value = ChartDataEntry(x: Double(entries[entries.count-1].date+1200), y: 0)
mainChart.addEntry(value)
colors.append(NSUIColor.systemGray.withAlphaComponent(0.0))
}

if UserDefaultsRepository.debugLog.value { writeDebugLog(value: "Total Graph BGs: " + mainChart.entries.count.description) }

if UserDefaultsRepository.debugLog.value { writeDebugLog(value: "Total Graph BGs: " + mainChart.entries.count.description) }

// Set Colors
let lineBG = BGChart.lineData!.dataSets[dataIndex] as! LineChartDataSet
Expand Down

0 comments on commit 81b2856

Please sign in to comment.