[gnome-maps/wip/mlundblad/remove-contacts: 2/11] mapView: Remove support for showing contacts




commit 03dc5d5ebee188709078e28fefdbbde7d729bf79
Author: Marcus Lundblad <ml dfupdate se>
Date:   Wed Jun 22 22:10:34 2022 +0200

    mapView: Remove support for showing contacts

 src/mapView.js | 18 ------------------
 1 file changed, 18 deletions(-)
---
diff --git a/src/mapView.js b/src/mapView.js
index 77dde247..b02eeda4 100644
--- a/src/mapView.js
+++ b/src/mapView.js
@@ -33,7 +33,6 @@ import GnomeMaps from 'gi://GnomeMaps';
 
 import {Application} from './application.js';
 import {BoundingBox} from './boundingBox.js';
-import {ContactPlace} from './contactPlace.js';
 import * as Color from './color.js';
 import * as Geoclue from './geoclue.js';
 import {GeoJSONShapeLayer} from './geoJSONShapeLayer.js';
@@ -689,23 +688,6 @@ export class MapView extends GtkChamplain.Embed {
         this._turnPointMarker.goTo();
     }
 
-    showContact(contact) {
-        let places = contact.get_places();
-        if (places.length === 0)
-            return;
-
-        this._placeLayer.remove_all();
-        places.forEach((p) => {
-            let place = new ContactPlace({ place: p,
-                                           contact: contact });
-            let marker = new PlaceMarker({ place: place,
-                                           mapView: this });
-            this._placeLayer.add_marker(marker);
-        });
-
-        new MapWalker(places[0], this).goTo(true);
-    }
-
     _showStoredRoute(stored) {
         let query = Application.routeQuery;
         let route = Application.routingDelegator.graphHopper.route;


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