Remove unused function wsfont_getflg. OK ?

-- 
Alexandr Shadchin

Index: wsfont.c
===================================================================
RCS file: /cvs/src/sys/dev/wsfont/wsfont.c,v
retrieving revision 1.28
diff -u -p -r1.28 wsfont.c
--- wsfont.c    8 Jan 2012 14:48:56 -0000       1.28
+++ wsfont.c    9 Jan 2012 12:31:44 -0000
@@ -579,26 +579,6 @@ wsfont_lock(int cookie, struct wsdisplay
 }
 
 /*
- * 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
Index: wsfont.h
===================================================================
RCS file: /cvs/src/sys/dev/wsfont/wsfont.h,v
retrieving revision 1.6
diff -u -p -r1.6 wsfont.h
--- wsfont.h    6 Jan 2012 14:55:38 -0000       1.6
+++ wsfont.h    9 Jan 2012 12:31:44 -0000
@@ -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);

Reply via email to