terminal-util: remove reset_terminal() as it is unused

This commit is contained in:
Lennart Poettering
2024-07-19 11:41:43 +02:00
parent 841eb9c186
commit 12f1b0134a
2 changed files with 0 additions and 15 deletions
-14
View File
@@ -319,20 +319,6 @@ finish:
return r;
}
int reset_terminal(const char *name) {
_cleanup_close_ int fd = -EBADF;
/* We open the terminal with O_NONBLOCK here, to ensure we
* don't block on carrier if this is a terminal with carrier
* configured. */
fd = open_terminal(name, O_RDWR|O_NOCTTY|O_CLOEXEC|O_NONBLOCK);
if (fd < 0)
return fd;
return reset_terminal_fd(fd, true);
}
int open_terminal(const char *name, int mode) {
_cleanup_close_ int fd = -EBADF;
unsigned c = 0;
-1
View File
@@ -96,7 +96,6 @@
bool isatty_safe(int fd);
int reset_terminal_fd(int fd, bool switch_to_text);
int reset_terminal(const char *name);
int terminal_reset_ansi_seq(int fd);
int terminal_reset_defensive(int fd, bool switch_to_text);