From 5b43fd8393bbfc7ee5bd1c6f98cd40961565bce2 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Wed, 13 Mar 2024 16:56:06 +0100 Subject: [PATCH] xfree86: os-support: drop unused xf86SerialSendBreak() Since no evidency of anybody actually using it (nor it ever been used within recorded git history), it's time to drop this old relic from times before the great flood. Signed-off-by: Enrico Weigelt, metux IT consult Part-of: --- hw/xfree86/os-support/shared/posix_tty.c | 10 ---------- hw/xfree86/os-support/xf86_OSproc.h | 1 - 2 files changed, 11 deletions(-) diff --git a/hw/xfree86/os-support/shared/posix_tty.c b/hw/xfree86/os-support/shared/posix_tty.c index 0cb9788cc..50f88cdc9 100644 --- a/hw/xfree86/os-support/shared/posix_tty.c +++ b/hw/xfree86/os-support/shared/posix_tty.c @@ -411,16 +411,6 @@ xf86WaitForInput(int fd, int timeout) return r; } -int -xf86SerialSendBreak(int fd, int duration) -{ - int r; - - SYSCALL(r = tcsendbreak(fd, duration)); - return r; - -} - int xf86FlushInput(int fd) { diff --git a/hw/xfree86/os-support/xf86_OSproc.h b/hw/xfree86/os-support/xf86_OSproc.h index 88a1ee98a..8d61d8208 100644 --- a/hw/xfree86/os-support/xf86_OSproc.h +++ b/hw/xfree86/os-support/xf86_OSproc.h @@ -129,7 +129,6 @@ extern _X_EXPORT int xf86WriteSerial(int fd, const void *buf, int count); extern _X_EXPORT int xf86CloseSerial(int fd); extern _X_EXPORT int xf86FlushInput(int fd); extern _X_EXPORT int xf86WaitForInput(int fd, int timeout); -extern _X_EXPORT int xf86SerialSendBreak(int fd, int duration); extern _X_EXPORT int xf86SetSerialModemState(int fd, int state); extern _X_EXPORT int xf86GetSerialModemState(int fd); extern _X_EXPORT int xf86SerialModemSetBits(int fd, int bits);