Removed the now unused SOprint().
authormarkus schnalke <meillo@marmaro.de>
Sat, 11 Feb 2012 10:29:26 +0000 (11:29 +0100)
committermarkus schnalke <meillo@marmaro.de>
Sat, 11 Feb 2012 10:29:26 +0000 (11:29 +0100)
uip/mhl.c
uip/mhshowsbr.c
uip/termsbr.c

index 274d43e..4c2f06e 100644 (file)
--- a/uip/mhl.c
+++ b/uip/mhl.c
@@ -242,7 +242,6 @@ static void m_popen(char *);
 
 void m_pclose(void);
 
 
 void m_pclose(void);
 
-int SOprintf(char *, ...);  /* from termsbr.c */
 int sc_width(void);  /* from termsbr.c */
 
 
 int sc_width(void);  /* from termsbr.c */
 
 
index c81cf92..15991c1 100644 (file)
@@ -45,9 +45,6 @@ char *formsw = NULL;
 pid_t xpid = 0;
 
 
 pid_t xpid = 0;
 
 
-/* termsbr.c */
-int SOprintf(char *, ...);
-
 /* mhparse.c */
 int pidcheck(int);
 
 /* mhparse.c */
 int pidcheck(int);
 
index 0568bf3..defc93f 100644 (file)
@@ -60,8 +60,6 @@ static long speedcode;
 static int initCO = 0;
 
 static int CO = 80;      /* number of colums */
 static int initCO = 0;
 
 static int CO = 80;      /* number of colums */
-static char *SE = NULL;  /* termcap string to end standout mode   */
-static char *SO = NULL;  /* termcap string to begin standout mode */
 
 static char termcap[TXTSIZ];
 
 
 static char termcap[TXTSIZ];
 
@@ -123,10 +121,6 @@ read_termcap(void)
        cp = termcap;
        if ((bp = tgetstr("pc", &cp)))
                PC = *bp;
        cp = termcap;
        if ((bp = tgetstr("pc", &cp)))
                PC = *bp;
-       if (tgetnum("sg") <= 0) {
-               SE = tgetstr("se", &cp);
-               SO = tgetstr("so", &cp);
-       }
 }
 
 
 }
 
 
@@ -147,27 +141,3 @@ sc_width(void)
 
        return CO;
 }
 
        return CO;
 }
-
-
-/*
-** print in standout mode
-*/
-int
-SOprintf(char *fmt, ...)
-{
-       va_list ap;
-
-       read_termcap();
-       if (!(SO && SE))
-               return NOTOK;
-
-       tputs(SO, 1, putchar);
-
-       va_start(ap, fmt);
-       vprintf(fmt, ap);
-       va_end(ap);
-
-       tputs(SE, 1, putchar);
-
-       return OK;
-}