summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorAlexandr Shadchin <shadchin@cvs.openbsd.org>2012-01-10 18:50:41 +0000
committerAlexandr Shadchin <shadchin@cvs.openbsd.org>2012-01-10 18:50:41 +0000
commit8793fb696e0df7ac1f452d958eea15c4043dcf8c (patch)
treec939245e1e8a4162e452e60a558d3d7d28e173dc /sys
parent8386ba022c0c14c97859e2b93d40143d2154472d (diff)
Remove unused function wsfont_getflg.
ok mpi@
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/wsfont/wsfont.c22
-rw-r--r--sys/dev/wsfont/wsfont.h3
2 files changed, 2 insertions, 23 deletions
diff --git a/sys/dev/wsfont/wsfont.c b/sys/dev/wsfont/wsfont.c
index f82dcad1b86..d2d21de50f1 100644
--- a/sys/dev/wsfont/wsfont.c
+++ b/sys/dev/wsfont/wsfont.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wsfont.c,v 1.28 2012/01/08 14:48:56 shadchin Exp $ */
+/* $OpenBSD: wsfont.c,v 1.29 2012/01/10 18:50:40 shadchin Exp $ */
/* $NetBSD: wsfont.c,v 1.17 2001/02/07 13:59:24 ad Exp $ */
/*-
@@ -579,26 +579,6 @@ wsfont_lock(int cookie, struct wsdisplay_font **ptr, int bitorder,
}
/*
- * Get font flags and lockcount.
- */
-int
-wsfont_getflg(int cookie, int *flg, int *lc)
-{
- struct font *ent;
- int s;
-
- s = splhigh();
-
- if ((ent = wsfont_find0(cookie)) != NULL) {
- *flg = ent->flg;
- *lc = ent->lockcount;
- }
-
- splx(s);
- return (ent != NULL ? 0 : -1);
-}
-
-/*
* Unlock a given font and return new lockcount.
*/
int
diff --git a/sys/dev/wsfont/wsfont.h b/sys/dev/wsfont/wsfont.h
index 0cb185bf6fb..a6478b60ea5 100644
--- a/sys/dev/wsfont/wsfont.h
+++ b/sys/dev/wsfont/wsfont.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: wsfont.h,v 1.6 2012/01/06 14:55:38 shadchin Exp $ */
+/* $OpenBSD: wsfont.h,v 1.7 2012/01/10 18:50:40 shadchin Exp $ */
/* $NetBSD: wsfont.h,v 1.12 2000/06/13 13:37:07 ad Exp $ */
/*-
@@ -73,7 +73,6 @@ int wsfont_remove(int);
void wsfont_enum(void (*)(char *, int, int, int));
int wsfont_lock(int, struct wsdisplay_font **, int, int);
int wsfont_unlock(int);
-int wsfont_getflg(int, int *, int *);
int wsfont_map_unichar(struct wsdisplay_font *, int);
int wsfont_rotate(int);