From: Pierre-Luc Beaudoin Date: Sun, 26 Oct 2008 18:04:41 +0000 (-0400) Subject: Remove some dead code X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=53b961901c2ec001090ac5e9657ec76124ab06dc;p=libchamplain Remove some dead code There used to be an anchor in ChamplainMarker, but ClutterActor offers that functionality now. --- diff --git a/champlain/champlainmarker.c b/champlain/champlainmarker.c index 423df8f..8170b7f 100644 --- a/champlain/champlainmarker.c +++ b/champlain/champlainmarker.c @@ -154,8 +154,6 @@ static void champlain_marker_init (ChamplainMarker *champlainMarker) { ChamplainMarkerPrivate *priv = CHAMPLAIN_MARKER_GET_PRIVATE (champlainMarker); - priv->anchor.x = 0; - priv->anchor.y = 0; } diff --git a/champlain/champlainprivate.h b/champlain/champlainprivate.h index 328f1ce..3da8526 100644 --- a/champlain/champlainprivate.h +++ b/champlain/champlainprivate.h @@ -37,8 +37,6 @@ struct _ChamplainMarkerPrivate { gdouble lon; gdouble lat; - - ChamplainPoint anchor; }; typedef struct diff --git a/champlain/champlainview.c b/champlain/champlainview.c index e27d0d4..4ede337 100644 --- a/champlain/champlainview.c +++ b/champlain/champlainview.c @@ -198,8 +198,8 @@ marker_reposition_cb (ChamplainMarker *marker, ChamplainView *view) y = priv->map->latitude_to_y(priv->map, marker_priv->lat, priv->map->current_level->level); clutter_actor_set_position(CLUTTER_ACTOR(marker), - x - marker_priv->anchor.x - priv->map->current_level->anchor.x, - y - marker_priv->anchor.y - priv->map->current_level->anchor.y); + x - priv->map->current_level->anchor.x, + y - priv->map->current_level->anchor.y); } }