Browse Source

Remove 'xloadfontset' function.

It was used only once and its return value was ignored.
master
noname 9 years ago
committed by Roberto E. Vargas Caballero
parent
commit
6f5f770186
1 changed files with 2 additions and 11 deletions
  1. +2
    -11
      st.c

+ 2
- 11
st.c View File

@ -419,7 +419,6 @@ static int xsetcolorname(int, const char *);
static int xgeommasktogravity(int); static int xgeommasktogravity(int);
static int xloadfont(Font *, FcPattern *); static int xloadfont(Font *, FcPattern *);
static void xloadfonts(char *, double); static void xloadfonts(char *, double);
static int xloadfontset(Font *);
static void xsettitle(char *); static void xsettitle(char *);
static void xresettitle(void); static void xresettitle(void);
static void xsetpointermotion(int); static void xsetpointermotion(int);
@ -3116,15 +3115,6 @@ xloadfonts(char *fontstr, double fontsize) {
FcPatternDestroy(pattern); FcPatternDestroy(pattern);
} }
int
xloadfontset(Font *f) {
FcResult result;
if(!(f->set = FcFontSort(0, f->pattern, FcTrue, 0, &result)))
return 1;
return 0;
}
void void
xunloadfont(Font *f) { xunloadfont(Font *f) {
XftFontClose(xw.dpy, f->match); XftFontClose(xw.dpy, f->match);
@ -3472,7 +3462,8 @@ xdraws(char *s, Glyph base, int x, int y, int charlen, int bytelen) {
/* Nothing was found. */ /* Nothing was found. */
if(i >= frclen) { if(i >= frclen) {
if(!font->set) if(!font->set)
xloadfontset(font);
font->set = FcFontSort(0, font->pattern,
FcTrue, 0, &fcres);
fcsets[0] = font->set; fcsets[0] = font->set;
/* /*


Loading…
Cancel
Save