[vte/wip/sixels: 92/111] terminal: Remove unused frozen-image-limit




commit da7c7cfd7e8d3d660c9f3892e4f5af51372a86a0
Author: Hans Petter Jansson <hpj cl no>
Date:   Sat Aug 8 20:42:49 2020 +0200

    terminal: Remove unused frozen-image-limit

 src/vte.cc            | 11 +----------
 src/vte/vteterminal.h |  8 --------
 src/vtedefines.hh     |  1 -
 src/vtegtk.cc         | 41 -----------------------------------------
 src/vtegtk.hh         |  1 -
 src/vteinternal.hh    |  2 --
 6 files changed, 1 insertion(+), 63 deletions(-)
---
diff --git a/src/vte.cc b/src/vte.cc
index ff7e3ba4..b2c680b8 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -7389,14 +7389,6 @@ Terminal::set_cell_height_scale(double scale)
         return true;
 }
 
-bool
-Terminal::set_frozen_image_limit(gulong limit)
-{
-        m_frozen_image_limit = limit;
-
-        return true;
-}
-
 /* Read and refresh our perception of the size of the PTY. */
 void
 Terminal::refresh_size()
@@ -7733,8 +7725,7 @@ Terminal::Terminal(vte::platform::Widget* w,
         m_overline_position = 1;
         m_regex_underline_position = 1;
 
-        /* Image */
-        m_frozen_image_limit = VTE_DEFAULT_FROZEN_IMAGE_LIMIT;
+        /* Images */
         m_images_enabled = TRUE;
 
         reset_default_attributes(true);
diff --git a/src/vte/vteterminal.h b/src/vte/vteterminal.h
index 9bae740a..1244f7cc 100644
--- a/src/vte/vteterminal.h
+++ b/src/vte/vteterminal.h
@@ -505,14 +505,6 @@ gboolean vte_terminal_write_contents_sync (VteTerminal *terminal,
 
 /* Images */
 
-/* Set or get maximum storage size for offscreen frozen images */
-_VTE_PUBLIC
-void vte_terminal_set_frozen_image_limit(VteTerminal *terminal,
-                                          gulong limit) _VTE_GNUC_NONNULL(1);
-
-_VTE_PUBLIC
-gulong vte_terminal_get_frozen_image_limit(VteTerminal *terminal) _VTE_GNUC_NONNULL(1);
-
 /* Set or get whether inline image support is enabled */
 _VTE_PUBLIC
 void vte_terminal_set_images_enabled (VteTerminal *terminal,
diff --git a/src/vtedefines.hh b/src/vtedefines.hh
index 883d38b8..8aa4d9dc 100644
--- a/src/vtedefines.hh
+++ b/src/vtedefines.hh
@@ -88,7 +88,6 @@
 #define VTE_MAX_PROCESS_TIME           100
 #define VTE_CELL_BBOX_SLACK            1
 #define VTE_DEFAULT_UTF8_AMBIGUOUS_WIDTH 1
-#define VTE_DEFAULT_FROZEN_IMAGE_LIMIT  (16 * 1024 * 1024)  /* 16 MB */
 
 #define VTE_UTF8_BPC                    (4) /* Maximum number of bytes used per UTF-8 character */
 
diff --git a/src/vtegtk.cc b/src/vtegtk.cc
index 38c787fa..0f7c6b99 100644
--- a/src/vtegtk.cc
+++ b/src/vtegtk.cc
@@ -1824,17 +1824,6 @@ vte_terminal_class_init(VteTerminalClass *klass)
                                      NULL,
                                      (GParamFlags) (G_PARAM_READABLE | G_PARAM_STATIC_STRINGS | 
G_PARAM_EXPLICIT_NOTIFY));
 
-        /**
-         * VteTerminal:frozen-image-limit:
-         *
-         * This property indicates allowed max storage size for offscreen frozen images
-         */
-        pspecs[PROP_FROZEN_IMAGE_LIMIT] =
-                g_param_spec_ulong ("frozen-image-limit", NULL, NULL,
-                                    0, G_MAXULONG, VTE_DEFAULT_FROZEN_IMAGE_LIMIT,
-                                    (GParamFlags) (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | 
G_PARAM_EXPLICIT_NOTIFY));
-
-
         /**
          * VteTerminal:input-enabled:
          *
@@ -5686,36 +5675,6 @@ catch (...)
 } // namespace glib
 } // namespace vte
 
-/**
- * vte_terminal_set_frozen_image_limit:
- * @terminal: a #VteTerminal
- * @limit: 0 to G_MAXINT
- *
- * Set allowed max storage size for offscreen frozen images
- */
-void
-vte_terminal_set_frozen_image_limit(VteTerminal *terminal, gulong limit)
-{
-        g_return_if_fail(VTE_IS_TERMINAL(terminal));
-
-        if (IMPL(terminal)->set_frozen_image_limit(limit))
-                g_object_notify_by_pspec(G_OBJECT(terminal), pspecs[PROP_FROZEN_IMAGE_LIMIT]);
-}
-
-/**
- * vte_terminal_get_frozen_image_limit:
- * @terminal: a #VteTerminal
- *
- * Get allowed max storage size for offscreen frozen images
- */
-gulong
-vte_terminal_get_frozen_image_limit(VteTerminal *terminal)
-{
-        g_return_val_if_fail(VTE_IS_TERMINAL(terminal), 0);
-
-        return IMPL(terminal)->m_frozen_image_limit;
-}
-
 /**
  * vte_terminal_set_images_enabled:
  * @terminal: a #VteTerminal
diff --git a/src/vtegtk.hh b/src/vtegtk.hh
index 4900f252..09eb90df 100644
--- a/src/vtegtk.hh
+++ b/src/vtegtk.hh
@@ -81,7 +81,6 @@ enum {
         PROP_ENCODING,
         PROP_FONT_DESC,
         PROP_FONT_SCALE,
-        PROP_FROZEN_IMAGE_LIMIT,
         PROP_HYPERLINK_HOVER_URI,
         PROP_ICON_TITLE,
         PROP_INPUT_ENABLED,
diff --git a/src/vteinternal.hh b/src/vteinternal.hh
index 687823ce..1b205e67 100644
--- a/src/vteinternal.hh
+++ b/src/vteinternal.hh
@@ -760,7 +760,6 @@ public:
         gboolean m_sixel_scrolls_right;
         gboolean m_sixel_use_private_register;
         sixel_state_t m_sixel_state;
-        gulong m_frozen_image_limit;
 
        /* State variables for handling match checks. */
         int m_match_regex_next_tag{0};
@@ -1513,7 +1512,6 @@ public:
                           GError** error);
         bool set_font_desc(PangoFontDescription const* desc);
         bool set_font_scale(double scale);
-        bool set_frozen_image_limit(gulong limit);
         bool set_input_enabled(bool enabled);
         bool set_mouse_autohide(bool autohide);
         bool set_rewrap_on_resize(bool rewrap);


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