[libshumate] view: Remove overlay sources



commit 61e19a2948198b1da30f46421998c16487265656
Author: James Westman <james jwestman net>
Date:   Tue Jun 29 21:39:29 2021 -0500

    view: Remove overlay sources
    
    They have been replaced by map layers and don't do anything anymore.

 shumate/shumate-view.c | 65 --------------------------------------------------
 shumate/shumate-view.h |  5 ----
 2 files changed, 70 deletions(-)
---
diff --git a/shumate/shumate-view.c b/shumate/shumate-view.c
index 9090c92..8d8c2bd 100644
--- a/shumate/shumate-view.c
+++ b/shumate/shumate-view.c
@@ -139,8 +139,6 @@ typedef struct
    */
   GList *user_layer_slots;
 
-  GList *overlay_sources;
-
   gboolean zoom_on_double_click;
   gboolean animate_zoom;
 
@@ -739,9 +737,6 @@ shumate_view_dispose (GObject *object)
 
   g_clear_object (&priv->viewport);
 
-  g_list_free_full (priv->overlay_sources, g_object_unref);
-  priv->overlay_sources = NULL;
-
   //g_clear_object (&priv->background_content);
   //g_clear_handle_id (&priv->zoom_actor_timeout, g_source_remove);
   g_clear_handle_id (&priv->zoom_timeout, g_source_remove);
@@ -1321,63 +1316,3 @@ shumate_view_get_state (ShumateView *view)
 
   return priv->state;
 }
-
-/**
- * shumate_view_add_overlay_source:
- * @view: a #ShumateView
- * @map_source: a #ShumateMapSource
- *
- * Adds a new overlay map source to render tiles on top of the ordinary map
- * source. Multiple overlay sources can be added.
- */
-void
-shumate_view_add_overlay_source (ShumateView      *view,
-                                 ShumateMapSource *map_source)
-{
-  ShumateViewPrivate *priv = shumate_view_get_instance_private (view);
-
-  g_return_if_fail (SHUMATE_IS_VIEW (view));
-  g_return_if_fail (SHUMATE_IS_MAP_SOURCE (map_source));
-
-  priv->overlay_sources = g_list_append (priv->overlay_sources, g_object_ref (map_source));
-}
-
-
-/**
- * shumate_view_remove_overlay_source:
- * @view: a #ShumateView
- * @map_source: a #ShumateMapSource
- *
- * Removes an overlay source from #ShumateView.
- */
-void
-shumate_view_remove_overlay_source (ShumateView      *view,
-                                    ShumateMapSource *map_source)
-{
-  ShumateViewPrivate *priv = shumate_view_get_instance_private (view);
-
-  g_return_if_fail (SHUMATE_IS_VIEW (view));
-  g_return_if_fail (SHUMATE_IS_MAP_SOURCE (map_source));
-
-  priv->overlay_sources = g_list_remove (priv->overlay_sources, map_source);
-  g_object_unref (map_source);
-}
-
-
-/**
- * shumate_view_get_overlay_sources:
- * @view: a #ShumateView
- *
- * Gets a list of overlay sources.
- *
- * Returns: (transfer container) (element-type ShumateMapSource): the list
- */
-GList *
-shumate_view_get_overlay_sources (ShumateView *view)
-{
-  ShumateViewPrivate *priv = shumate_view_get_instance_private (view);
-
-  g_return_val_if_fail (SHUMATE_IS_VIEW (view), NULL);
-
-  return g_list_copy (priv->overlay_sources);
-}
diff --git a/shumate/shumate-view.h b/shumate/shumate-view.h
index 39cc3c6..a46f123 100644
--- a/shumate/shumate-view.h
+++ b/shumate/shumate-view.h
@@ -71,11 +71,6 @@ void shumate_view_set_go_to_duration (ShumateView *self,
 
 void shumate_view_set_map_source (ShumateView *view,
     ShumateMapSource *map_source);
-void shumate_view_add_overlay_source (ShumateView *view,
-    ShumateMapSource *map_source);
-void shumate_view_remove_overlay_source (ShumateView *view,
-    ShumateMapSource *map_source);
-GList *shumate_view_get_overlay_sources (ShumateView *view);
 
 void shumate_view_set_zoom_on_double_click (ShumateView *view,
     gboolean value);


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