diff options
| author | Juanma Barranquero | 2015-10-12 21:43:39 +0200 |
|---|---|---|
| committer | Juanma Barranquero | 2015-10-12 21:43:39 +0200 |
| commit | 4462823ebfaeda6540dac3cacf03592406bedc05 (patch) | |
| tree | 4d53345de66385ea44be43ffb9eee834512f802b /src | |
| parent | 48c38426cb8f799eb41ff6c5baa738918fe1baa6 (diff) | |
| download | emacs-4462823ebfaeda6540dac3cacf03592406bedc05.tar.gz emacs-4462823ebfaeda6540dac3cacf03592406bedc05.zip | |
Remove or comment out unused variables
* src/w32fns.c (x_set_mouse_color): Comment out variables cursor,
nontext_cursor, mode_cursor, hand_cursor and count.
(x_change_tool_bar_height): Remove variable old_text_height.
(deliver_wm_chars): Remove variable strip_Alt.
(Fw32_shell_execute): Remove variable document_a.
(Fw32_frame_geometry): Remove variable fullboth.
* src/w32term.c (w32_setup_relief_color): Comment out variable
w32_display_info.
(w32_horizontal_scroll_bar_handle_click): Remove variables start, end.
(w32_read_socket): Comment out variables rows, columns.
* src/w32uniscribe.c (uniscribe_check_otf_1): Remove variable rest.
Diffstat (limited to 'src')
| -rw-r--r-- | src/w32fns.c | 8 | ||||
| -rw-r--r-- | src/w32term.c | 6 | ||||
| -rw-r--r-- | src/w32uniscribe.c | 1 |
3 files changed, 7 insertions, 8 deletions
diff --git a/src/w32fns.c b/src/w32fns.c index 9b0770a99e8..97dd40ba262 100644 --- a/src/w32fns.c +++ b/src/w32fns.c | |||
| @@ -1299,8 +1299,10 @@ x_set_background_color (struct frame *f, Lisp_Object arg, Lisp_Object oldval) | |||
| 1299 | void | 1299 | void |
| 1300 | x_set_mouse_color (struct frame *f, Lisp_Object arg, Lisp_Object oldval) | 1300 | x_set_mouse_color (struct frame *f, Lisp_Object arg, Lisp_Object oldval) |
| 1301 | { | 1301 | { |
| 1302 | #if 0 | ||
| 1302 | Cursor cursor, nontext_cursor, mode_cursor, hand_cursor; | 1303 | Cursor cursor, nontext_cursor, mode_cursor, hand_cursor; |
| 1303 | int count; | 1304 | int count; |
| 1305 | #endif | ||
| 1304 | int mask_color; | 1306 | int mask_color; |
| 1305 | 1307 | ||
| 1306 | if (!EQ (Qnil, arg)) | 1308 | if (!EQ (Qnil, arg)) |
| @@ -1737,7 +1739,6 @@ x_change_tool_bar_height (struct frame *f, int height) | |||
| 1737 | int unit = FRAME_LINE_HEIGHT (f); | 1739 | int unit = FRAME_LINE_HEIGHT (f); |
| 1738 | int old_height = FRAME_TOOL_BAR_HEIGHT (f); | 1740 | int old_height = FRAME_TOOL_BAR_HEIGHT (f); |
| 1739 | int lines = (height + unit - 1) / unit; | 1741 | int lines = (height + unit - 1) / unit; |
| 1740 | int old_text_height = FRAME_TEXT_HEIGHT (f); | ||
| 1741 | Lisp_Object fullscreen; | 1742 | Lisp_Object fullscreen; |
| 1742 | 1743 | ||
| 1743 | /* Make sure we redisplay all windows in this frame. */ | 1744 | /* Make sure we redisplay all windows in this frame. */ |
| @@ -3004,7 +3005,7 @@ deliver_wm_chars (int do_translate, HWND hwnd, UINT msg, UINT wParam, | |||
| 3004 | { | 3005 | { |
| 3005 | W32Msg wmsg; | 3006 | W32Msg wmsg; |
| 3006 | DWORD console_modifiers = construct_console_modifiers (); | 3007 | DWORD console_modifiers = construct_console_modifiers (); |
| 3007 | int *b = buf, strip_Alt = 1, strip_ExtraMods = 1, hairy = 0; | 3008 | int *b = buf, strip_ExtraMods = 1, hairy = 0; |
| 3008 | char *type_CtrlAlt = NULL; | 3009 | char *type_CtrlAlt = NULL; |
| 3009 | 3010 | ||
| 3010 | /* XXXX In fact, there may be another case when we need to do the same: | 3011 | /* XXXX In fact, there may be another case when we need to do the same: |
| @@ -7651,7 +7652,7 @@ a ShowWindow flag: | |||
| 7651 | } | 7652 | } |
| 7652 | else | 7653 | else |
| 7653 | { | 7654 | { |
| 7654 | char document_a[MAX_PATH], current_dir_a[MAX_PATH]; | 7655 | char current_dir_a[MAX_PATH]; |
| 7655 | SHELLEXECUTEINFOA shexinfo_a; | 7656 | SHELLEXECUTEINFOA shexinfo_a; |
| 7656 | int codepage = codepage_for_filenames (NULL); | 7657 | int codepage = codepage_for_filenames (NULL); |
| 7657 | int ldoc_a = pWideCharToMultiByte (codepage, 0, doc_w, -1, NULL, 0, | 7658 | int ldoc_a = pWideCharToMultiByte (codepage, 0, doc_w, -1, NULL, 0, |
| @@ -8010,7 +8011,6 @@ and width values are in pixels. | |||
| 8010 | int single_menu_bar_height, wrapped_menu_bar_height, menu_bar_height; | 8011 | int single_menu_bar_height, wrapped_menu_bar_height, menu_bar_height; |
| 8011 | int tool_bar_height = FRAME_TOOL_BAR_HEIGHT (f); | 8012 | int tool_bar_height = FRAME_TOOL_BAR_HEIGHT (f); |
| 8012 | int internal_border_width = FRAME_INTERNAL_BORDER_WIDTH (f); | 8013 | int internal_border_width = FRAME_INTERNAL_BORDER_WIDTH (f); |
| 8013 | bool fullboth = EQ (get_frame_param (f, Qfullscreen), Qfullboth); | ||
| 8014 | 8014 | ||
| 8015 | if (FRAME_INITIAL_P (f) || !FRAME_W32_P (f)) | 8015 | if (FRAME_INITIAL_P (f) || !FRAME_W32_P (f)) |
| 8016 | return Qnil; | 8016 | return Qnil; |
diff --git a/src/w32term.c b/src/w32term.c index 82b05bffffe..9dc6b17d1ce 100644 --- a/src/w32term.c +++ b/src/w32term.c | |||
| @@ -1596,7 +1596,9 @@ w32_setup_relief_color (struct frame *f, struct relief *relief, double factor, | |||
| 1596 | unsigned long mask = GCForeground; | 1596 | unsigned long mask = GCForeground; |
| 1597 | COLORREF pixel; | 1597 | COLORREF pixel; |
| 1598 | COLORREF background = di->relief_background; | 1598 | COLORREF background = di->relief_background; |
| 1599 | #if 0 | ||
| 1599 | struct w32_display_info *dpyinfo = FRAME_DISPLAY_INFO (f); | 1600 | struct w32_display_info *dpyinfo = FRAME_DISPLAY_INFO (f); |
| 1601 | #endif | ||
| 1600 | 1602 | ||
| 1601 | /* TODO: Free colors (if using palette)? */ | 1603 | /* TODO: Free colors (if using palette)? */ |
| 1602 | 1604 | ||
| @@ -4350,8 +4352,6 @@ w32_horizontal_scroll_bar_handle_click (struct scroll_bar *bar, W32Msg *msg, | |||
| 4350 | if (dragging) | 4352 | if (dragging) |
| 4351 | { | 4353 | { |
| 4352 | SCROLLINFO si; | 4354 | SCROLLINFO si; |
| 4353 | int start = bar->start; | ||
| 4354 | int end = bar->end; | ||
| 4355 | 4355 | ||
| 4356 | si.cbSize = sizeof (si); | 4356 | si.cbSize = sizeof (si); |
| 4357 | si.fMask = SIF_POS; | 4357 | si.fMask = SIF_POS; |
| @@ -5159,7 +5159,7 @@ w32_read_socket (struct terminal *terminal, | |||
| 5159 | if (f && !FRAME_ICONIFIED_P (f) && msg.msg.wParam != SIZE_MINIMIZED) | 5159 | if (f && !FRAME_ICONIFIED_P (f) && msg.msg.wParam != SIZE_MINIMIZED) |
| 5160 | { | 5160 | { |
| 5161 | RECT rect; | 5161 | RECT rect; |
| 5162 | int rows, columns, width, height, text_width, text_height; | 5162 | int /* rows, columns, */ width, height, text_width, text_height; |
| 5163 | 5163 | ||
| 5164 | if (GetClientRect (msg.msg.hwnd, &rect) | 5164 | if (GetClientRect (msg.msg.hwnd, &rect) |
| 5165 | /* GetClientRect evidently returns (0, 0, 0, 0) if | 5165 | /* GetClientRect evidently returns (0, 0, 0, 0) if |
diff --git a/src/w32uniscribe.c b/src/w32uniscribe.c index 8b3bf60b4b6..e5efec77c0f 100644 --- a/src/w32uniscribe.c +++ b/src/w32uniscribe.c | |||
| @@ -779,7 +779,6 @@ uniscribe_check_otf_1 (HDC context, Lisp_Object script, Lisp_Object lang, | |||
| 779 | int max_tags = ARRAYELTS (tags); | 779 | int max_tags = ARRAYELTS (tags); |
| 780 | int ntags, i, ret = 0; | 780 | int ntags, i, ret = 0; |
| 781 | HRESULT rslt; | 781 | HRESULT rslt; |
| 782 | Lisp_Object rest; | ||
| 783 | 782 | ||
| 784 | *retval = 0; | 783 | *retval = 0; |
| 785 | 784 | ||