diff options
| author | Martin Rudalics | 2013-11-30 17:25:51 +0100 |
|---|---|---|
| committer | Martin Rudalics | 2013-11-30 17:25:51 +0100 |
| commit | 90caab3fe722c43bfcf299d82c7aca3b60c24633 (patch) | |
| tree | 3c01222da6e554e0502a8f17491ab89a04964d9a /src/xterm.c | |
| parent | 6ae87264fd7d9ce6614e7048bc57a431d480098a (diff) | |
| download | emacs-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/xterm.c')
| -rw-r--r-- | src/xterm.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/xterm.c b/src/xterm.c index 46419aed154..9673535be79 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -8747,7 +8747,7 @@ x_set_window_size (struct frame *f, int change_gravity, int width, int height, b | |||
| 8747 | 8747 | ||
| 8748 | if (NILP (tip_frame) || XFRAME (tip_frame) != f) | 8748 | if (NILP (tip_frame) || XFRAME (tip_frame) != f) |
| 8749 | { | 8749 | { |
| 8750 | int r, c, text_width, text_height; | 8750 | int text_width, text_height; |
| 8751 | 8751 | ||
| 8752 | /* When the frame is maximized/fullscreen or running under for | 8752 | /* When the frame is maximized/fullscreen or running under for |
| 8753 | example Xmonad, x_set_window_size_1 will be a no-op. | 8753 | example Xmonad, x_set_window_size_1 will be a no-op. |
| @@ -8764,12 +8764,10 @@ x_set_window_size (struct frame *f, int change_gravity, int width, int height, b | |||
| 8764 | #endif | 8764 | #endif |
| 8765 | text_width = FRAME_PIXEL_TO_TEXT_WIDTH (f, FRAME_PIXEL_WIDTH (f)); | 8765 | text_width = FRAME_PIXEL_TO_TEXT_WIDTH (f, FRAME_PIXEL_WIDTH (f)); |
| 8766 | text_height = FRAME_PIXEL_TO_TEXT_HEIGHT (f, pixelh); | 8766 | text_height = FRAME_PIXEL_TO_TEXT_HEIGHT (f, pixelh); |
| 8767 | r = FRAME_PIXEL_HEIGHT_TO_TEXT_LINES (f, pixelh); | ||
| 8768 | /* Update f->scroll_bar_actual_width because it is used in | 8767 | /* Update f->scroll_bar_actual_width because it is used in |
| 8769 | FRAME_PIXEL_WIDTH_TO_TEXT_COLS. */ | 8768 | FRAME_PIXEL_WIDTH_TO_TEXT_COLS. */ |
| 8770 | f->scroll_bar_actual_width | 8769 | f->scroll_bar_actual_width |
| 8771 | = FRAME_SCROLL_BAR_COLS (f) * FRAME_COLUMN_WIDTH (f); | 8770 | = FRAME_SCROLL_BAR_COLS (f) * FRAME_COLUMN_WIDTH (f); |
| 8772 | c = FRAME_PIXEL_WIDTH_TO_TEXT_COLS (f, FRAME_PIXEL_WIDTH (f)); | ||
| 8773 | change_frame_size (f, text_width, text_height, 0, 1, 0, 1); | 8771 | change_frame_size (f, text_width, text_height, 0, 1, 0, 1); |
| 8774 | } | 8772 | } |
| 8775 | 8773 | ||