summaryrefslogtreecommitdiff
path: root/gui/gui.c
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-23 17:00:55 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-23 17:00:55 -0300
commitc9b85bd14a54881898d08261f7b9d98288a217b3 (patch)
tree423b685c283e2157c7b1c07d48f39056987c1282 /gui/gui.c
parentee5aca2e6cc5a60ea8356e56ca315609c7ea7bc3 (diff)
downloadeeshow-c9b85bd14a54881898d08261f7b9d98288a217b3.tar.gz
eeshow-c9b85bd14a54881898d08261f7b9d98288a217b3.tar.bz2
eeshow-c9b85bd14a54881898d08261f7b9d98288a217b3.zip
gui/: do without the "unrender_all" atrocity
Benefits: - no horrible memory leak - we don't need to jump to the current page (causing zoom_to_extents) Drawbacks: - only supported in non-diff modes
Diffstat (limited to 'gui/gui.c')
-rw-r--r--gui/gui.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/gui/gui.c b/gui/gui.c
index dd00832..5fe3cc9 100644
--- a/gui/gui.c
+++ b/gui/gui.c
@@ -43,24 +43,6 @@
#include "gui/gui.h"
-/* ----- @@@ Hack: discard all rendering on major mode change -------------- */
-
-void unrender_all(struct gui_ctx *ctx)
-{
- const struct gui_hist *h;
- struct gui_sheet *sheet;
-
- for (h = ctx->hist; h; h = h->next)
- for (sheet = h->sheets; sheet; sheet = sheet->next) {
- /*
- * @@@ if there was a gfx_free, we wouldn't create a
- * massive memory leak here.
- */
- sheet->rendered = 0;
- }
-}
-
-
/* ----- Helper functions -------------------------------------------------- */