Просмотр исходного кода

Remove code for reserving space for prediction

Jonas Björkert 2 лет назад
Родитель
Сommit
81b285604e
1 измененных файлов с 1 добавлено и 8 удалено
  1. 1 8
      LoopFollow/Controllers/Graphs.swift

+ 1 - 8
LoopFollow/Controllers/Graphs.swift

@@ -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