mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
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)
This commit is contained in:
5
src/ui.c
5
src/ui.c
@@ -1589,6 +1589,7 @@ clip_gen_request_selection(VimClipboard *cbd)
|
||||
#endif
|
||||
}
|
||||
|
||||
#if (defined(FEAT_X11) && defined(USE_SYSTEM)) || defined(PROTO)
|
||||
int
|
||||
clip_gen_owner_exists(VimClipboard *cbd UNUSED)
|
||||
{
|
||||
@@ -1603,6 +1604,7 @@ clip_gen_owner_exists(VimClipboard *cbd UNUSED)
|
||||
return TRUE;
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* FEAT_CLIPBOARD */
|
||||
|
||||
@@ -2574,12 +2576,15 @@ clip_x11_set_selection(VimClipboard *cbd UNUSED)
|
||||
{
|
||||
}
|
||||
|
||||
#if (defined(FEAT_X11) && defined(FEAT_XCLIPBOARD) && defined(USE_SYSTEM)) \
|
||||
|| defined(PROTO)
|
||||
int
|
||||
clip_x11_owner_exists(VimClipboard *cbd)
|
||||
{
|
||||
return XGetSelectionOwner(X_DISPLAY, cbd->sel_atom) != None;
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(FEAT_XCLIPBOARD) || defined(FEAT_GUI_X11) \
|
||||
|| defined(FEAT_GUI_GTK) || defined(PROTO)
|
||||
|
Reference in New Issue
Block a user