summaryrefslogtreecommitdiff
path: root/pango/pangowin32-fontmap.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2015-04-04 19:35:08 -0700
committerBehdad Esfahbod <behdad@behdad.org>2015-04-04 19:35:08 -0700
commit4e5e6cf3946846c0cbdb449314473acafce7947a (patch)
tree3b780a5624ad40091acbab4db0ff394af90eb723 /pango/pangowin32-fontmap.c
parent2fc870895bb1ad6d3b28dd013927a4ddde2a102d (diff)
downloadpango-4e5e6cf3946846c0cbdb449314473acafce7947a.tar.gz
[win32] Don't read pango.aliases
Part of Bug 733882 - Kill Pango modules, engines, and config files
Diffstat (limited to 'pango/pangowin32-fontmap.c')
-rw-r--r--pango/pangowin32-fontmap.c54
1 files changed, 0 insertions, 54 deletions
diff --git a/pango/pangowin32-fontmap.c b/pango/pangowin32-fontmap.c
index 306d8316..956e2ca6 100644
--- a/pango/pangowin32-fontmap.c
+++ b/pango/pangowin32-fontmap.c
@@ -493,48 +493,9 @@ read_builtin_aliases (GHashTable *ht_aliases)
#endif
-static void
-read_alias_file (const char *filename, GHashTable *ht_aliases)
-{
- FILE *file;
-
- GString *line_buffer;
- char *errstring = NULL;
- int line = 0;
-
- file = g_fopen (filename, "r");
- if (!file)
- return;
-
- line_buffer = g_string_new (NULL);
-
- while (pango_read_line (file, line_buffer) &&
- errstring == NULL)
- {
- line++;
- handle_alias_line (line_buffer, &errstring, ht_aliases);
- }
-
- if (errstring == NULL && ferror (file))
- errstring = g_strdup (g_strerror(errno));
-
- if (errstring)
- {
- g_warning ("error reading alias file: %s:%d: %s\n", filename, line, errstring);
- g_free (errstring);
- }
-
- g_string_free (line_buffer, TRUE);
-
- fclose (file);
-}
-
static GHashTable *
load_aliases (void)
{
- char *filename;
- const char *home;
-
GHashTable *ht_aliases = g_hash_table_new_full ((GHashFunc)alias_hash,
(GEqualFunc)alias_equal,
(GDestroyNotify)alias_free,
@@ -544,21 +505,6 @@ load_aliases (void)
read_builtin_aliases (ht_aliases);
#endif
- filename = g_strconcat (pango_get_sysconf_subdirectory (),
- G_DIR_SEPARATOR_S "pango.aliases",
- NULL);
- read_alias_file (filename, ht_aliases);
- g_free (filename);
-
- home = g_get_home_dir ();
- if (home && *home)
- {
- filename = g_strconcat (home,
- G_DIR_SEPARATOR_S ".pango.aliases",
- NULL);
- read_alias_file (filename, ht_aliases);
- g_free (filename);
- }
return ht_aliases;
}