diff options
author | Patrick Griffis <tingping@tingping.se> | 2017-06-20 16:26:28 -0400 |
---|---|---|
committer | Patrick Griffis <tingping@tingping.se> | 2017-06-20 16:26:28 -0400 |
commit | 99e16110bc42856492636b4b492a0cffe6d70a88 (patch) | |
tree | 5e834a58c6cdf77114da6cbae2de35c8fffb0e71 /plugins/sysinfo/sysinfo.c | |
parent | 2d184c09674b417bf294001d017b0d1ad2337de3 (diff) |
sysinfo: Simplify finding pci.ids file on Unix
There is probably no reason to make this user configurable just get the correct one at build time...
Diffstat (limited to 'plugins/sysinfo/sysinfo.c')
-rw-r--r-- | plugins/sysinfo/sysinfo.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/plugins/sysinfo/sysinfo.c b/plugins/sysinfo/sysinfo.c index 10c9d796..a09e4766 100644 --- a/plugins/sysinfo/sysinfo.c +++ b/plugins/sysinfo/sysinfo.c @@ -133,16 +133,6 @@ print_info (char *info, gboolean announce) hexchat_print (ph, _("Sysinfo: No info by that name\n")); } -/* - * Simple wrapper for backend specific options. - * Ensure dest >= 512. - */ -int -sysinfo_get_str_pref (const char *pref, char *dest) -{ - return hexchat_pluginpref_get_str (ph, pref, dest); -} - static gboolean sysinfo_get_bool_pref (const char *pref, gboolean def) { @@ -184,24 +174,6 @@ sysinfo_set_pref (char *key, char *value) sysinfo_set_pref_real (key, value, DEFAULT_ANNOUNCE); return; } -#ifdef HAVE_LIBPCI - else if (!strcmp (key, "pciids")) - { - if (value && value[0]) - { - hexchat_pluginpref_set_str (ph, "pciids", value); - hexchat_printf (ph, _("Sysinfo: pciids is set to: %s\n"), value); - } - else - { - char buf[512]; - if (hexchat_pluginpref_get_str (ph, "pciids", buf) == 0) - strcpy (buf, DEFAULT_PCIIDS); - hexchat_printf (ph, _("Sysinfo: pciids is set to: %s\n"), buf); - } - return; - } -#endif else if (g_str_has_prefix (key, "hide_")) { int i; |