Browse Source

Remove code for reserving space for prediction

Jonas Björkert 2 years ago
parent
commit
81b285604e
1 changed files with 1 additions and 8 deletions
  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
         // Set Colors
         let lineBG = BGChart.lineData!.dataSets[dataIndex] as! LineChartDataSet
         let lineBG = BGChart.lineData!.dataSets[dataIndex] as! LineChartDataSet