summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMarcus Lundblad <ml@update.uu.se>2021-02-25 22:22:51 +0100
committerMarcus Lundblad <ml@update.uu.se>2021-04-04 09:19:54 +0200
commitd96d5776d059aa63c68e26455a88806bf2f7180b (patch)
treef771ca95306b24a5a3c5556135abc8c3d7b143f8 /lib
parent8d09731a87e786b3c4174569bcc5c7b934dca8fe (diff)
downloadgnome-maps-d96d5776d059aa63c68e26455a88806bf2f7180b.tar.gz
maps-contact: Remove bounding boxwip/mlundblad/replace-bbox-and-ensure-visible
Stop exposing bounding boxes of contact places. This is not used anymore.
Diffstat (limited to 'lib')
-rw-r--r--lib/maps-contact.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/lib/maps-contact.c b/lib/maps-contact.c
index a842a5a9..f733e8e1 100644
--- a/lib/maps-contact.c
+++ b/lib/maps-contact.c
@@ -19,7 +19,6 @@
#include <folks/folks.h>
#include <geocode-glib/geocode-glib.h>
-#include <champlain/champlain.h>
#include "maps-contact.h"
@@ -30,7 +29,6 @@ struct _MapsContactPrivate
GLoadableIcon *icon;
GList *places;
- ChamplainBoundingBox *bbox;
GMutex geocode_mutex;
guint geocode_counter;
@@ -114,11 +112,6 @@ maps_contact_get_property (GObject *object,
contact->priv->id);
break;
- case PROP_BBOX:
- g_value_set_boxed (value,
- contact->priv->bbox);
- break;
-
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
break;
@@ -133,7 +126,6 @@ maps_contact_dispose (GObject *object)
g_clear_pointer (&contact->priv->name, g_free);
g_clear_pointer (&contact->priv->id, g_free);
g_clear_object (&contact->priv->icon);
- g_clear_object (&contact->priv->bbox);
g_list_free_full (contact->priv->places, g_object_unref);
G_OBJECT_CLASS (maps_contact_parent_class)->dispose (object);
@@ -187,19 +179,6 @@ maps_contact_class_init (MapsContactClass *klass)
G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS);
g_object_class_install_property (maps_class, PROP_ICON, pspec);
-
- /**
- * MapsContact:bounding-box:
- *
- * The bounding box for the contact.
- */
- pspec = g_param_spec_boxed ("bounding-box",
- "Bounding Box",
- "The bounding box for the place",
- CHAMPLAIN_TYPE_BOUNDING_BOX,
- G_PARAM_READABLE |
- G_PARAM_STATIC_STRINGS);
- g_object_class_install_property (maps_class, PROP_BBOX, pspec);
}
static void
@@ -211,7 +190,6 @@ maps_contact_init (MapsContact *contact)
contact->priv->id = NULL;
contact->priv->icon = NULL;
contact->priv->places = NULL;
- contact->priv->bbox = NULL;
g_mutex_init (&contact->priv->geocode_mutex);
}
@@ -273,14 +251,6 @@ on_geocode_search_async (GeocodeForward *forward,
g_object_set (G_OBJECT (data->place), "osm-id",
geocode_place_get_osm_id (place), NULL);
- /* Update the contact bounding box */
- if (contact->priv->bbox == NULL)
- contact->priv->bbox = champlain_bounding_box_new ();
-
- champlain_bounding_box_extend (contact->priv->bbox,
- geocode_location_get_latitude (location),
- geocode_location_get_longitude (location));
-
/* Make sure we do not lie about how good our resolution is */
street_address = geocode_place_get_street_address (place);
street = geocode_place_get_street (place);