ref: f40225e86cf4b92cab975d9121ff06ed5cfe9d91
parent: 125ca8ddfee1da241d86f82439e24467b25b310a
author: Jacob Moody <moody@posixcafe.org>
date: Thu Mar 16 01:16:17 EDT 2023
auth/none, mothra, news, libttf: unused variable removal
--- a/sys/src/cmd/auth/none.c
+++ b/sys/src/cmd/auth/none.c
@@ -30,8 +30,6 @@
void
main(int argc, char *argv[])
{
- int fd;
-
ARGBEGIN{
case 'd':
newnsdebug = 1;
--- a/sys/src/cmd/mothra/snoop.c
+++ b/sys/src/cmd/mothra/snoop.c
@@ -124,7 +124,6 @@
snooptype(int fd)
{
char buf[128];
- int i;
if(filetype(fd, buf, sizeof(buf)) < 0)
return -1;
--- a/sys/src/cmd/news.c
+++ b/sys/src/cmd/news.c
@@ -44,7 +44,7 @@
void
main(int argc, char *argv[])
{
- int i, aflag = 0, nflag = 0;
+ int i;
int doupdate = 1;
int printall = 0;
void (*printer)(char*) = print_item;
--- a/sys/src/libttf/scan.c
+++ b/sys/src/libttf/scan.c
@@ -409,7 +409,7 @@
int
ttfgetcontour(TTGlyph *g, int i, float **fp, int *np)
{
- float offx, offy, scale;
+ float offy, scale;
float *nf;
int n, j;
TTPoint p, q, r;
@@ -425,11 +425,9 @@
}
if(g->bit != nil){
scale = 1.0f / 64;
- offx = g->xminpx;
offy = g->yminpx;
}else{
scale = 1.0f * g->font->ppem / g->font->u->emsize;
- offx = 0;
offy = 0;
}
p = g->pt[g->confst[i]];