Removed unused function.

This commit is contained in:
Alexander Shaduri
2017-10-04 21:10:34 +00:00
parent 6888d0862d
commit 4f78e3dd90
2 changed files with 0 additions and 23 deletions
@@ -63,24 +63,6 @@ void app_gtkmm_set_widget_tooltip(Gtk::Widget& widget,
bool app_gtkmm_icon_theme_has_icon(Glib::RefPtr<Gtk::IconTheme> theme,
const Glib::ustring& icon_name, int size)
{
if (!theme || !theme->has_icon(icon_name)) // check if it exists first, or exception may be thrown.
return false;
std::vector<int> sizes = theme->get_icon_sizes(icon_name);
for (std::vector<int>::const_iterator iter = sizes.begin(); iter != sizes.end(); ++iter) {
if (*iter == size || *iter == -1) // -1 means scalable
return true;
}
return false;
}
namespace {
/// This has been copied from _g_utf8_make_valid() (glib-2.20.4).
@@ -68,11 +68,6 @@ int app_gtkmm_create_tree_view_column(Gtk::TreeModelColumn<T>& mcol, Gtk::TreeVi
/// Check whether the icon theme has the specified icon of size \c size.
bool app_gtkmm_icon_theme_has_icon(Glib::RefPtr<Gtk::IconTheme> theme,
const Glib::ustring& icon_name, int size);
/// Get Glib::ustring from gchar*, freeing gchar*.
Glib::ustring app_ustring_from_gchar(gchar* str);