summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAkira TAGOH <akira@tagoh.org>2017-11-15 16:08:30 +0900
committerAkira TAGOH <akira@tagoh.org>2017-11-20 17:37:22 +0530
commit68ff99c4142e25989409f465e392b1bb3042494d (patch)
tree90df1a200020ad9a8569e05f189d72c8b777ec74 /src
parentb01bf646f110cacfaeb5fe097475d3582fa6cd33 (diff)
cleanup
Diffstat (limited to 'src')
-rw-r--r--src/fcpat.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/fcpat.c b/src/fcpat.c
index 707afc04..dd1307dc 100644
--- a/src/fcpat.c
+++ b/src/fcpat.c
@@ -1105,36 +1105,6 @@ FcPatternGetRange (const FcPattern *p, const char *object, int id, FcRange **r)
return FcPatternObjectGetRange (p, FcObjectFromName (object), id, r);
}
-FcResult
-FcPatternFindFont (const FcPattern *p, FcChar8 **s)
-{
- FcChar8 *file;
- FcResult ret = FcResultNoMatch;
-
- if (FcPatternObjectGetString (p, FC_FILE_OBJECT, 0, &file) == FcResultMatch)
- {
- FcChar8 *dir = FcStrDirname (file);
- const FcChar8 *alias;
-
- if ((alias = FcDirCacheFindAliasPath (dir)))
- {
- FcChar8 *font = FcStrBasename (file);
-
- if (s)
- *s = FcStrBuildFilename (alias, font, NULL);
- FcStrFree (font);
- }
- else
- {
- if (s)
- *s = FcStrdup (file);
- }
- ret = FcResultMatch;
- FcStrFree (dir);
- }
- return ret;
-}
-
FcPattern *
FcPatternDuplicate (const FcPattern *orig)
{