[gnome-maps/wip/mlundblad/remove-transit-tweaks: 1/2] resrobot: Remove use of TransitTweaks




commit bb3e5fc9d960b927aa3653b9364a9c9234ebf324
Author: Marcus Lundblad <ml update uu se>
Date:   Wed Jan 6 22:49:59 2021 +0100

    resrobot: Remove use of TransitTweaks

 src/transitplugins/resrobot.js | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
---
diff --git a/src/transitplugins/resrobot.js b/src/transitplugins/resrobot.js
index 113f5faf..aada8d5f 100644
--- a/src/transitplugins/resrobot.js
+++ b/src/transitplugins/resrobot.js
@@ -36,7 +36,6 @@ const GraphHopperTransit = imports.graphHopperTransit;
 const HTTP = imports.http;
 const HVT = imports.hvt;
 const TransitPlan = imports.transitPlan;
-const TransitTweaks = imports.transitTweaks;
 const Utils = imports.utils;
 
 const BASE_URL = 'https://api.resrobot.se';
@@ -96,7 +95,6 @@ var Resrobot = class Resrobot {
         this._query = Application.routeQuery;
         this._key = params.key;
         this._tz = GLib.TimeZone.new(NATIVE_TIMEZONE);
-        this._tweaks = new TransitTweaks.TransitTweaks({ name: 'resrobot' });
 
         if (!this._key)
             throw new Error('missing key');
@@ -214,9 +212,7 @@ var Resrobot = class Resrobot {
                         // store the back and forward references from the result
                         this._scrB = result.scrB;
                         this._scrF = result.scrF;
-                        this._tweaks.applyTweaks(itineraries, () => {
-                            this._processItineraries(itineraries)
-                        });
+                        this._processItineraries(itineraries);
                     } else {
                         this._noRouteFound();
                     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]