cleanup: remove unnecessary method
parent
722dff965b
commit
6631c7766a
|
@ -82,18 +82,10 @@ class StatisticsService {
|
|||
Box box = Hive.box(reducedStatisticsBoxName);
|
||||
Iterable<String> keys = newFood.keys;
|
||||
for(int i = 0; i < keys.length;i++){
|
||||
addValuesToList(box, keys.elementAt(i), newFood[keys.elementAt(i)] ?? []);
|
||||
box.put(keys.elementAt(i), newFood[keys.elementAt(i)] ?? []);
|
||||
}
|
||||
}
|
||||
|
||||
void addValuesToList(Box box, String key, List<Food> newValues){
|
||||
List<Food> existingList = castDynamicToListFood(box.get(key));
|
||||
for(int i = 0; i < newValues.length;i++){
|
||||
existingList.add(newValues[i]);
|
||||
}
|
||||
box.put(key, existingList);
|
||||
}
|
||||
|
||||
getDayAsIntFromTimestamp(int timestamp){
|
||||
DateTime dateTime = DateTime.fromMillisecondsSinceEpoch(timestamp * 1000);
|
||||
return dateTime.day;
|
||||
|
|
Loading…
Reference in New Issue