comparison src/ui.c @ 15555:d89c5b339c2a v8.1.0785

patch 8.1.0785: depending on the configuration some functions are unused commit https://github.com/vim/vim/commit/113e10721f42fc2500b63fe95193f8665658a90c Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 20 15:30:40 2019 +0100 patch 8.1.0785: depending on the configuration some functions are unused Problem: Depending on the configuration some functions are unused. Solution: Add more #ifdefs, remove unused functions. (Dominique Pelle, closes #3822)
author Bram Moolenaar <Bram@vim.org>
date Sun, 20 Jan 2019 15:45:07 +0100
parents dd725a8ab112
children 62b3805506b3
comparison
equal deleted inserted replaced
15554:496f146a0836 15555:d89c5b339c2a
1587 #else 1587 #else
1588 clip_mch_request_selection(cbd); 1588 clip_mch_request_selection(cbd);
1589 #endif 1589 #endif
1590 } 1590 }
1591 1591
1592 #if (defined(FEAT_X11) && defined(USE_SYSTEM)) || defined(PROTO)
1592 int 1593 int
1593 clip_gen_owner_exists(VimClipboard *cbd UNUSED) 1594 clip_gen_owner_exists(VimClipboard *cbd UNUSED)
1594 { 1595 {
1595 #ifdef FEAT_XCLIPBOARD 1596 #ifdef FEAT_XCLIPBOARD
1596 # ifdef FEAT_GUI_GTK 1597 # ifdef FEAT_GUI_GTK
1601 return clip_x11_owner_exists(cbd); 1602 return clip_x11_owner_exists(cbd);
1602 #else 1603 #else
1603 return TRUE; 1604 return TRUE;
1604 #endif 1605 #endif
1605 } 1606 }
1607 #endif
1606 1608
1607 #endif /* FEAT_CLIPBOARD */ 1609 #endif /* FEAT_CLIPBOARD */
1608 1610
1609 /***************************************************************************** 1611 /*****************************************************************************
1610 * Functions that handle the input buffer. 1612 * Functions that handle the input buffer.
2572 void 2574 void
2573 clip_x11_set_selection(VimClipboard *cbd UNUSED) 2575 clip_x11_set_selection(VimClipboard *cbd UNUSED)
2574 { 2576 {
2575 } 2577 }
2576 2578
2579 #if (defined(FEAT_X11) && defined(FEAT_XCLIPBOARD) && defined(USE_SYSTEM)) \
2580 || defined(PROTO)
2577 int 2581 int
2578 clip_x11_owner_exists(VimClipboard *cbd) 2582 clip_x11_owner_exists(VimClipboard *cbd)
2579 { 2583 {
2580 return XGetSelectionOwner(X_DISPLAY, cbd->sel_atom) != None; 2584 return XGetSelectionOwner(X_DISPLAY, cbd->sel_atom) != None;
2581 } 2585 }
2586 #endif
2582 #endif 2587 #endif
2583 2588
2584 #if defined(FEAT_XCLIPBOARD) || defined(FEAT_GUI_X11) \ 2589 #if defined(FEAT_XCLIPBOARD) || defined(FEAT_GUI_X11) \
2585 || defined(FEAT_GUI_GTK) || defined(PROTO) 2590 || defined(FEAT_GUI_GTK) || defined(PROTO)
2586 /* 2591 /*