aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
authorMartin Rudalics2013-11-30 17:25:51 +0100
committerMartin Rudalics2013-11-30 17:25:51 +0100
commit90caab3fe722c43bfcf299d82c7aca3b60c24633 (patch)
tree3c01222da6e554e0502a8f17491ab89a04964d9a /src/window.c
parent6ae87264fd7d9ce6614e7048bc57a431d480098a (diff)
downloademacs-90caab3fe722c43bfcf299d82c7aca3b60c24633.tar.gz
emacs-90caab3fe722c43bfcf299d82c7aca3b60c24633.zip
Remove some unused items introduced during pixelwise change.
* window.c (window_resize_total_check): Remove unused function. * xdisp.c (remember_mouse_glyph): Remove unused label. (Ftool_bar_height): Move declaration inside #if. * xterm.c (x_set_window_size): Don't use r and c.
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c96
1 files changed, 0 insertions, 96 deletions
diff --git a/src/window.c b/src/window.c
index bf914662df7..e62fdad6827 100644
--- a/src/window.c
+++ b/src/window.c
@@ -3784,102 +3784,6 @@ window_resize_check (struct window *w, bool horflag)
3784 : FRAME_LINE_HEIGHT (f))); 3784 : FRAME_LINE_HEIGHT (f)));
3785} 3785}
3786 3786
3787static int
3788window_resize_total_check (struct window *w, int horflag)
3789{
3790 struct frame *f = XFRAME (w->frame);
3791 struct window *c;
3792
3793 if (WINDOW_VERTICAL_COMBINATION_P (w))
3794 /* W is a vertical combination. */
3795 {
3796 c = XWINDOW (w->contents);
3797 if (horflag)
3798 /* All child windows of W must have the same width as W. */
3799 {
3800 while (c)
3801 {
3802 if (XINT (c->new_pixel) != XINT (w->new_pixel)
3803/** || XINT (c->new_total != XINT (w->new_total)) **/
3804 || !window_resize_check (c, horflag))
3805 return 0;
3806
3807 c = NILP (c->next) ? 0 : XWINDOW (c->next);
3808 }
3809
3810 return 1;
3811 }
3812 else
3813 /* The sum of the heights of the child windows of W must equal
3814 W's height. */
3815 {
3816 int sum_of_pixels = 0, sum_of_totals = 0;
3817
3818 while (c)
3819 {
3820 if (!window_resize_check (c, horflag))
3821 return 0;
3822
3823 sum_of_pixels = sum_of_pixels + XINT (c->new_pixel);
3824/** sum_of_totals = sum_of_totals + XINT (c->new_total); **/
3825 c = NILP (c->next) ? 0 : XWINDOW (c->next);
3826 }
3827
3828 return (sum_of_pixels == XINT (w->new_pixel)
3829/** && sum_of_totals == XINT (w->new_total) **/
3830 );
3831 }
3832 }
3833 else if (WINDOW_HORIZONTAL_COMBINATION_P (w))
3834 /* W is a horizontal combination. */
3835 {
3836 c = XWINDOW (w->contents);
3837 if (horflag)
3838 /* The sum of the widths of the child windows of W must equal W's
3839 width. */
3840 {
3841 int sum_of_pixels = 0, sum_of_totals = 0;
3842
3843 while (c)
3844 {
3845 if (!window_resize_check (c, horflag))
3846 return 0;
3847
3848 sum_of_pixels = sum_of_pixels + XINT (c->new_pixel);
3849 sum_of_totals = sum_of_totals + XINT (c->new_total);
3850 c = NILP (c->next) ? 0 : XWINDOW (c->next);
3851 }
3852
3853 return (sum_of_pixels == XINT (w->new_pixel)
3854/** && sum_of_totals == XINT (w->new_total) **/
3855 );
3856 }
3857 else
3858 /* All child windows of W must have the same height as W. */
3859 {
3860 while (c)
3861 {
3862 if (XINT (c->new_pixel) != XINT (w->new_pixel)
3863/** || XINT (c->new_total) != XINT (w->new_total) **/
3864 || !window_resize_check (c, horflag))
3865 return 0;
3866
3867 c = NILP (c->next) ? 0 : XWINDOW (c->next);
3868 }
3869
3870 return 1;
3871 }
3872 }
3873 else
3874 /* A leaf window. Make sure it's not too small. The following
3875 hardcodes the values of `window-safe-min-width' (2) and
3876 `window-safe-min-height' (1) which are defined in window.el. */
3877 return (XINT (w->new_pixel) >= (horflag
3878 ? (2 * FRAME_COLUMN_WIDTH (f))
3879 : FRAME_LINE_HEIGHT (f))
3880/** && XINT (w->new_total) >= (horflag ? 2 : 1) **/
3881 );
3882}
3883 3787
3884/* Set w->pixel_height (w->pixel_height if HORIZONTAL is non-zero) to 3788/* Set w->pixel_height (w->pixel_height if HORIZONTAL is non-zero) to
3885 w->new_pixel for window W and recursively all child windows of W. 3789 w->new_pixel for window W and recursively all child windows of W.