]> err.no Git - libchamplain/commitdiff
Remove some dead code
authorPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Sun, 26 Oct 2008 18:04:41 +0000 (14:04 -0400)
committerPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Sun, 26 Oct 2008 18:04:41 +0000 (14:04 -0400)
There used to be an anchor in ChamplainMarker, but ClutterActor
offers that functionality now.

champlain/champlainmarker.c
champlain/champlainprivate.h
champlain/champlainview.c

index 423df8f1a889add4895a1bed5f3026a981f81c10..8170b7fd4e6032d728db9963c65205a4f84bf01c 100644 (file)
@@ -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;
 }
 
 
index 328f1cec0337175441b9695d48a1e2281094d3eb..3da8526a4d190ed157c8e7284948a831b22f96d3 100644 (file)
@@ -37,8 +37,6 @@ struct _ChamplainMarkerPrivate
 {
   gdouble lon;
   gdouble lat;
-  
-  ChamplainPoint anchor;
 };
 
 typedef struct 
index e27d0d4279039aac3368922540bf0c60fcea1285..4ede33711cc386654199e7658df9871cec140098 100644 (file)
@@ -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);
     }
 }