aboutsummaryrefslogtreecommitdiff
path: root/st.c
diff options
context:
space:
mode:
authornoname <noname@inventati.org>2015-04-08 23:24:06 +0000
committerRoberto E. Vargas Caballero <k0ga@shike2.com>2015-04-10 23:31:53 +0200
commit6f5f7701864e6987544cb7e7dc5f2d24db1a4537 (patch)
tree46fc95799fbe6cae202e5171a0ba967bd72a958b /st.c
parent6524f022f7d1d32f43208254e12f934bf64ed559 (diff)
downloadst-6f5f7701864e6987544cb7e7dc5f2d24db1a4537.tar.gz
st-6f5f7701864e6987544cb7e7dc5f2d24db1a4537.tar.bz2
Remove 'xloadfontset' function.
It was used only once and its return value was ignored.
Diffstat (limited to 'st.c')
-rw-r--r--st.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/st.c b/st.c
index 7dbd87a..0065240 100644
--- a/st.c
+++ b/st.c
@@ -419,7 +419,6 @@ static int xsetcolorname(int, const char *);
static int xgeommasktogravity(int);
static int xloadfont(Font *, FcPattern *);
static void xloadfonts(char *, double);
-static int xloadfontset(Font *);
static void xsettitle(char *);
static void xresettitle(void);
static void xsetpointermotion(int);
@@ -3116,15 +3115,6 @@ xloadfonts(char *fontstr, double fontsize) {
FcPatternDestroy(pattern);
}
-int
-xloadfontset(Font *f) {
- FcResult result;
-
- if(!(f->set = FcFontSort(0, f->pattern, FcTrue, 0, &result)))
- return 1;
- return 0;
-}
-
void
xunloadfont(Font *f) {
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. */
if(i >= frclen) {
if(!font->set)
- xloadfontset(font);
+ font->set = FcFontSort(0, font->pattern,
+ FcTrue, 0, &fcres);
fcsets[0] = font->set;
/*