]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
[utils] drop ply_switch_to_vt
authorRay Strode <rstrode@redhat.com>
Thu, 24 Sep 2009 03:21:52 +0000 (23:21 -0400)
committerRay Strode <rstrode@redhat.com>
Mon, 28 Sep 2009 15:23:40 +0000 (11:23 -0400)
It's been replaced by ply_console_set_active_vt, and won't
work right because of ply-console anyway.

src/libply/ply-utils.c
src/libply/ply-utils.h

index 37b986be9272ef59e9e481d2859ac88ffdc69bb7..b26773c5fd8dbe02cfd40e4c9a6e8a55038283b9 100644 (file)
@@ -894,25 +894,4 @@ ply_utf8_string_get_length (const char   *string,
   return count;
 }
 
-void
-ply_switch_to_vt (int vt_number)
-{
-    int fd;
-
-    fd = open ("/dev/tty0", O_RDWR | O_NOCTTY);
-
-    if (fd < 0)
-      return;
-
-  if (ioctl (fd, VT_ACTIVATE, vt_number) < 0)
-    {
-      close (fd);
-      return;
-    }
-
-  ioctl (fd, VT_WAITACTIVE, vt_number);
-  close (fd);
-}
-
-
 /* vim: set ts=4 sw=4 expandtab autoindent cindent cino={.5s,(0: */
index 62149ba3925e61e75459d34bc708f5061d5c64b3..592a8e4e439ea38ccf9a429ef1fbf5a30b464d37 100644 (file)
@@ -104,8 +104,6 @@ int ply_utf8_character_get_size (const char   *string,
 int ply_utf8_string_get_length (const char   *string,
                                 size_t        n);
 
-void ply_switch_to_vt (int vt_number);
-
 #endif
 
 #endif /* PLY_UTILS_H */