emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 19231f7db2: Remove unused variable in Haiku selection code


From: Po Lu
Subject: master 19231f7db2: Remove unused variable in Haiku selection code
Date: Wed, 4 May 2022 04:41:31 -0400 (EDT)

branch: master
commit 19231f7db24e4f697a0aaa95b65a51008763d580
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    Remove unused variable in Haiku selection code
    
    * src/haiku_select.cc (selection_state_flag):
    * src/haikuselect.h: Remove variable.
---
 src/haiku_select.cc | 2 --
 src/haikuselect.h   | 4 ++--
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/haiku_select.cc b/src/haiku_select.cc
index be8026b6a1..a26a0049cb 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 a99721dd22..d4f331a9cc 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 *);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]