summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKjell Ahlstedt <kjell.ahlstedt@bredband.net>2017-03-13 15:18:20 +0100
committerKjell Ahlstedt <kjell.ahlstedt@bredband.net>2017-03-13 15:18:20 +0100
commit52fd4750b84b730c17b1d4a5cac20909cfbc48a1 (patch)
tree1bfd4f9a3b8e2abde747e50fedf64d23afab3549
parent2f80fe4276c9ed4de493dc88218187d8c685d06a (diff)
downloadglibmm-52fd4750b84b730c17b1d4a5cac20909cfbc48a1.tar.gz
Remove Glib::unconst()
It's not used by glibmm or gtkmm. It's unnecessary. Use const_cast<>() directly instead.
-rw-r--r--glib/glibmm/utility.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/glib/glibmm/utility.h b/glib/glibmm/utility.h
index 3cbca146..5e171833 100644
--- a/glib/glibmm/utility.h
+++ b/glib/glibmm/utility.h
@@ -42,17 +42,6 @@ make_unique_ptr_gfree(T* p)
return std::unique_ptr<T[], decltype(&g_free)>(p, &g_free);
}
-// TODO: Deprecate this? We don't use it ourselves.
-/** Removes the const nature of a ptr
- *
- */
-template <class T>
-inline T*
-unconst(const T* t)
-{
- return const_cast<T*>(t);
-}
-
// Convert const gchar* to ustring, while treating NULL as empty string.
inline Glib::ustring
convert_const_gchar_ptr_to_ustring(const char* str)