diff options
author | Po Lu <luangruo@yahoo.com> | 2022-05-04 08:40:41 +0000 |
---|---|---|
committer | Po Lu <luangruo@yahoo.com> | 2022-05-04 08:40:58 +0000 |
commit | 19231f7db24e4f697a0aaa95b65a51008763d580 (patch) | |
tree | 0106e316d2f292b4ac7854b6ea26167e890e505d | |
parent | da1b7b659048320850e5778e3dfbe5eff366e45d (diff) | |
download | emacs-19231f7db24e4f697a0aaa95b65a51008763d580.tar.gz |
Remove unused variable in Haiku selection code
* src/haiku_select.cc (selection_state_flag):
* src/haikuselect.h: Remove variable.
-rw-r--r-- | src/haiku_select.cc | 2 | ||||
-rw-r--r-- | src/haikuselect.h | 4 |
2 files changed, 2 insertions, 4 deletions
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 <https://www.gnu.org/licenses/>. */ #ifdef __cplusplus #include <cstdio> +#else +#include <stdio.h> #endif #include <SupportDefs.h> @@ -33,13 +35,11 @@ enum haiku_clipboard }; #ifdef __cplusplus -#include <stdio.h> 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 *); |