diff --git a/src/gui/widgets/helper.cpp b/src/gui/widgets/helper.cpp index 5426790fa96..f2357532de4 100644 --- a/src/gui/widgets/helper.cpp +++ b/src/gui/widgets/helper.cpp @@ -137,16 +137,6 @@ t_string missing_widget(const std::string& id) return t_string(vgettext("Mandatory widget '$id' hasn't been defined.", symbols)); } -std::string get_uid() -{ - static unsigned id = 0; - ++id; - assert(id); // avoid wrapping. - - return "____" + lexical_cast(id); - -} - void get_screen_size_variables(game_logic::map_formula_callable& variable) { variable.add("screen_width", variant(settings::screen_width)); diff --git a/src/gui/widgets/helper.hpp b/src/gui/widgets/helper.hpp index d15a97477c2..a95553e7f86 100644 --- a/src/gui/widgets/helper.hpp +++ b/src/gui/widgets/helper.hpp @@ -136,16 +136,6 @@ unsigned decode_font_style(const std::string& style); */ t_string missing_widget(const std::string& id); -/** - * Gets an unique id for a widget. - * - * The id will have extra leading underscores so it's in the private range and - * can't collide with user defined ids. - * - * @returns The id. - */ -std::string get_uid(); - /** * Gets a formula object with the screen size. *