]> git.eshelyaron.com Git - emacs.git/commitdiff
Remove unused variable in Haiku selection code
authorPo Lu <luangruo@yahoo.com>
Wed, 4 May 2022 08:40:41 +0000 (08:40 +0000)
committerPo Lu <luangruo@yahoo.com>
Wed, 4 May 2022 08:40:58 +0000 (08:40 +0000)
* src/haiku_select.cc (selection_state_flag):
* src/haikuselect.h: Remove variable.

src/haiku_select.cc
src/haikuselect.h

index be8026b6a162ef4b0e088077e2d69f58e4da3cdd..a26a0049cbf61147085d58b8ca53b6e5683f786d 100644 (file)
@@ -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)
 {
index a99721dd2210e0d35d1912998a144068b61c91b5..d4f331a9ccb852bf0fbe8a4ada58512fa7b9917f 100644 (file)
@@ -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 *);