From: Po Lu Date: Wed, 4 May 2022 08:40:41 +0000 (+0000) Subject: Remove unused variable in Haiku selection code X-Git-Tag: emacs-29.0.90~1931^2~75 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=19231f7db24e4f697a0aaa95b65a51008763d580;p=emacs.git Remove unused variable in Haiku selection code * src/haiku_select.cc (selection_state_flag): * src/haikuselect.h: Remove variable. --- diff --git a/src/haiku_select.cc b/src/haiku_select.cc index be8026b6a16..a26a0049cbf 100644 --- a/src/haiku_select.cc +++ b/src/haiku_select.cc @@ -35,8 +35,6 @@ static int64 count_clipboard = -1; static int64 count_primary = -1; static int64 count_secondary = -1; -int selection_state_flag; - static char * BClipboard_find_data (BClipboard *cb, const char *type, ssize_t *len) { diff --git a/src/haikuselect.h b/src/haikuselect.h index a99721dd221..d4f331a9ccb 100644 --- a/src/haikuselect.h +++ b/src/haikuselect.h @@ -21,6 +21,8 @@ along with GNU Emacs. If not, see . */ #ifdef __cplusplus #include +#else +#include #endif #include @@ -33,13 +35,11 @@ enum haiku_clipboard }; #ifdef __cplusplus -#include extern "C" { extern void init_haiku_select (void); #endif /* Whether or not the selection was recently changed. */ -extern int selection_state_flag; /* Find a string with the MIME type TYPE in the system clipboard. */ extern char *BClipboard_find_system_data (const char *, ssize_t *);