Remove str{width,height} functions, they are in libdialog now.

It is only first hook for new autosizing changes, more changes
will follow.
This commit is contained in:
Andrey A. Chernov 1994-11-16 14:42:22 +00:00
parent 5f5d7caab1
commit 8b6840ff55
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=4528
2 changed files with 1 additions and 29 deletions

View File

@ -87,8 +87,6 @@ extern struct disklabel *avail_disklabels;
extern u_short dkcksum(struct disklabel *);
/* utils.c */
int strheight __P((const char *p));
int strwidth __P((const char *p));
void Abort __P((void));
void ExitSysinstall __P((void));
void TellEm __P((char *fmt, ...));

View File

@ -6,7 +6,7 @@
* this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
* ----------------------------------------------------------------------------
*
* $Id: utils.c,v 1.25 1994/11/07 04:53:23 phk Exp $
* $Id: utils.c,v 1.26 1994/11/07 13:48:54 jkh Exp $
*
*/
@ -38,32 +38,6 @@ strip_trailing_newlines(char *p)
p[--len] = '\0';
}
int strwidth(const char *p)
{
int i = 0, len;
const char *start, *s;
for (start = s = p; (s = strchr(s, '\n')) != NULL; start = ++s) {
len = s - start;
if (len > i)
i = len;
}
len = strlen(start);
if (len > i)
i = len;
return i;
}
int strheight(const char *p)
{
int i = 1;
const char *s;
for (s = p; (s = strchr(s, '\n')) != NULL; s++)
i++;
return i;
}
void
Debug(char *fmt, ...)
{