summaryrefslogtreecommitdiffstats
path: root/fifo.c
diff options
context:
space:
mode:
authoruau <uau@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-02-24 07:28:07 +0000
committeruau <uau@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-02-24 07:28:07 +0000
commit46c3f0385385971eecfa8413ba3005271ab1ab49 (patch)
tree3529d0e8ee934ce07d239c3a48c8b66c9c294cd3 /fifo.c
parente5ab09bb64448e8d60f081891fb85d742c83c9a0 (diff)
downloadmpv-46c3f0385385971eecfa8413ba3005271ab1ab49.tar.bz2
mpv-46c3f0385385971eecfa8413ba3005271ab1ab49.tar.xz
Remove some #if 0 code
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22331 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'fifo.c')
-rw-r--r--fifo.c35
1 files changed, 0 insertions, 35 deletions
diff --git a/fifo.c b/fifo.c
index e43f0649e3..bf365f66b4 100644
--- a/fifo.c
+++ b/fifo.c
@@ -1,39 +1,5 @@
#include "input/mouse.h"
-#if 0
-
-// keyboard:
-static int keyb_fifo_put=-1;
-static int keyb_fifo_get=-1;
-
-static void set_nonblock_flag(int fd) {
- int oldflags;
-
- oldflags = fcntl(fd, F_GETFL, 0);
- if (oldflags != -1) {
- if (fcntl(keyb_fifo_put, F_SETFL, oldflags | O_NONBLOCK) != -1) {
- return;
- }
- }
- mp_msg(MSGT_INPUT,MSGL_ERR,"Cannot set nonblocking mode for fd %d!\n", fd);
-}
-
-static void make_pipe(int* pr,int* pw){
- int temp[2];
- if(pipe(temp)!=0) mp_msg(MSGT_FIXME, MSGL_FIXME, MSGTR_CannotMakePipe);
- *pr=temp[0];
- *pw=temp[1];
- set_nonblock_flag(temp[1]);
-}
-
-static void mplayer_put_key_internal(int code){
-
- if( write(keyb_fifo_put,&code,4) != 4 ){
- mp_msg(MSGT_INPUT,MSGL_ERR,"*** key event dropped (FIFO is full) ***\n");
- }
-}
-
-#else
int key_fifo_size = 7;
static int *key_fifo_data = NULL;
@@ -66,7 +32,6 @@ int mplayer_get_key(int fd){
return key;
}
-#endif
static unsigned doubleclick_time = 300;