summaryrefslogtreecommitdiff
path: root/sys/src/libttf
diff options
context:
space:
mode:
authorJacob Moody <moody@posixcafe.org>2023-03-16 05:16:17 +0000
committerJacob Moody <moody@posixcafe.org>2023-03-16 05:16:17 +0000
commitf40225e86cf4b92cab975d9121ff06ed5cfe9d91 (patch)
tree2570c74b9dea2a44b0a9b6c57c81a9a56e5b0802 /sys/src/libttf
parent125ca8ddfee1da241d86f82439e24467b25b310a (diff)
auth/none, mothra, news, libttf: unused variable removal
Diffstat (limited to 'sys/src/libttf')
-rw-r--r--sys/src/libttf/scan.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/src/libttf/scan.c b/sys/src/libttf/scan.c
index 8a3743954..d512eb556 100644
--- a/sys/src/libttf/scan.c
+++ b/sys/src/libttf/scan.c
@@ -409,7 +409,7 @@ ttfscan(TTGlyph *g)
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 @@ ttfgetcontour(TTGlyph *g, int i, float **fp, int *np)
}
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]];