terminal-util: remove terminal_vhangup() because apparently unused

This commit is contained in:
Lennart Poettering
2024-07-19 11:44:04 +02:00
parent ac508b1173
commit 1ca3924827
2 changed files with 0 additions and 11 deletions
-10
View File
@@ -432,16 +432,6 @@ int terminal_vhangup_fd(int fd) {
return RET_NERRNO(ioctl(fd, TIOCVHANGUP));
}
int terminal_vhangup(const char *name) {
_cleanup_close_ int fd = -EBADF;
fd = open_terminal(name, O_RDWR|O_NOCTTY|O_CLOEXEC|O_NONBLOCK);
if (fd < 0)
return fd;
return terminal_vhangup_fd(fd);
}
int vt_disallocate(const char *name) {
const char *e;
int r;
-1
View File
@@ -133,7 +133,6 @@ int acquire_terminal(const char *name, AcquireTerminalFlags flags, usec_t timeou
int release_terminal(void);
int terminal_vhangup_fd(int fd);
int terminal_vhangup(const char *name);
int terminal_set_size_fd(int fd, const char *ident, unsigned rows, unsigned cols);
int proc_cmdline_tty_size(const char *tty, unsigned *ret_rows, unsigned *ret_cols);