Bimba.git

commit ae5068cf00a897920984922872282af92bd9e15c

Author: Adam Pioterek <adam.pioterek@protonmail.ch>

remove TODOs

%!v(PANIC=String method: strings: negative Repeat count)


diff --git a/app/src/main/java/ml/adamsprogs/bimba/models/Timetable.kt b/app/src/main/java/ml/adamsprogs/bimba/models/Timetable.kt
index fa9209cc29bf5fa3f831edec5a208568095f370a..3903ffbcec24fc67e2067efcf815c75e40d1545d 100644
--- a/app/src/main/java/ml/adamsprogs/bimba/models/Timetable.kt
+++ b/app/src/main/java/ml/adamsprogs/bimba/models/Timetable.kt
@@ -232,7 +232,7 @@
         return map
     }
 
-    fun getStopDeparturesBySegments(segments: Set<StopSegment>): Map<String, List<Departure>> { // todo optimisation!!!
+    fun getStopDeparturesBySegments(segments: Set<StopSegment>): Map<String, List<Departure>> {
         val stopCodes = HashMap<String, Int>()
         var cursor = db!!.rawQuery("select stop_id, stop_code from stops", emptyArray())
         while (cursor.moveToNext()) {




diff --git a/app/src/main/java/ml/adamsprogs/bimba/models/adapters/FavouriteEditRowAdapter.kt b/app/src/main/java/ml/adamsprogs/bimba/models/adapters/FavouriteEditRowAdapter.kt
index 8532b027357f41a83507319536e2fd74de53f0ef..d9a29e8872e4a7f99c68c282ef20cdf823791fb4 100644
--- a/app/src/main/java/ml/adamsprogs/bimba/models/adapters/FavouriteEditRowAdapter.kt
+++ b/app/src/main/java/ml/adamsprogs/bimba/models/adapters/FavouriteEditRowAdapter.kt
@@ -18,7 +18,6 @@ import ml.adamsprogs.bimba.models.Plate
 import ml.adamsprogs.bimba.models.StopSegment
 
 
-//todo when plates null -> get all plates from proxy
 class FavouriteEditRowAdapter(private var favourite: Favourite) :
         RecyclerView.Adapter<FavouriteEditRowAdapter.ViewHolder>() {