From 035e8e4d4518674304666b89935ad1ba8c351a9b Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sat, 19 Mar 2022 12:35:03 -0700 Subject: [PATCH] Remove sanitize_window_sizes * src/window.c (sanitize_window_sizes): Remove; no-longer-used. A previous refactoring moved this to Lisp without removing the C code. --- src/window.c | 9 --------- src/window.h | 1 - 2 files changed, 10 deletions(-) diff --git a/src/window.c b/src/window.c index 59e21f11cb1..8f92b46afd6 100644 --- a/src/window.c +++ b/src/window.c @@ -3181,14 +3181,6 @@ resize_root_window (Lisp_Object window, Lisp_Object delta, horizontal, ignore, pixelwise); } -void -sanitize_window_sizes (Lisp_Object horizontal) -{ - /* Don't burp in temacs -nw before window.el is loaded. */ - if (!NILP (Fsymbol_function (Qwindow__sanitize_window_sizes))) - call1 (Qwindow__sanitize_window_sizes, horizontal); -} - static Lisp_Object window_pixel_to_total (Lisp_Object frame, Lisp_Object horizontal) @@ -8232,7 +8224,6 @@ syms_of_window (void) DEFSYM (Qwindow__resize_root_window_vertically, "window--resize-root-window-vertically"); DEFSYM (Qwindow__resize_mini_frame, "window--resize-mini-frame"); - DEFSYM (Qwindow__sanitize_window_sizes, "window--sanitize-window-sizes"); DEFSYM (Qwindow__pixel_to_total, "window--pixel-to-total"); DEFSYM (Qsafe, "safe"); DEFSYM (Qdisplay_buffer, "display-buffer"); diff --git a/src/window.h b/src/window.h index 141c29e8100..94c9b7124f3 100644 --- a/src/window.h +++ b/src/window.h @@ -1188,7 +1188,6 @@ extern int window_scroll_margin (struct window *, enum margin_unit); extern void temp_output_buffer_show (Lisp_Object); extern void replace_buffer_in_windows (Lisp_Object); extern void replace_buffer_in_windows_safely (Lisp_Object); -extern void sanitize_window_sizes (Lisp_Object horizontal); /* This looks like a setter, but it is a bit special. */ extern void wset_buffer (struct window *, Lisp_Object); extern bool window_outdated (struct window *); -- 2.39.2