From 9887739e113d60f94f123e48529e1b011101fc1e Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Thu, 22 Apr 2021 06:12:19 +0300 Subject: [PATCH 22/22] sdl/2: Drop unused create_themeicon_button_from_unichar() See osdn #42053 Signed-off-by: Marko Lindqvist --- client/gui-sdl/widget_button.h | 6 +----- client/gui-sdl2/widget_button.h | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/client/gui-sdl/widget_button.h b/client/gui-sdl/widget_button.h index c6971833a0..4deb63269f 100644 --- a/client/gui-sdl/widget_button.h +++ b/client/gui-sdl/widget_button.h @@ -1,4 +1,4 @@ -/********************************************************************** +/*********************************************************************** Freeciv - Copyright (C) 2006 - The Freeciv Project This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -22,10 +22,6 @@ create_str16_from_char(pCharString, iPtsize), \ flags) -#define create_themeicon_button_from_unichar(pIcon_theme, pDest, pUniChar, pUniCharSize, iPtsize, flags) \ - create_themeicon_button(pIcon, pDest, create_string16(pUniChar, pUniCharSize, iPtsize), \ - flags) - #define create_themeicon_button_from_chars(pIcon_theme, pDest, pCharString, iPtsize, flags) \ create_themeicon_button(pIcon_theme, pDest, \ create_str16_from_char(pCharString, \ diff --git a/client/gui-sdl2/widget_button.h b/client/gui-sdl2/widget_button.h index f56e220563..abd06cc1a8 100644 --- a/client/gui-sdl2/widget_button.h +++ b/client/gui-sdl2/widget_button.h @@ -1,4 +1,4 @@ -/********************************************************************** +/*********************************************************************** Freeciv - Copyright (C) 2006 - The Freeciv Project This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -19,10 +19,6 @@ create_utf8_from_char(pCharString, iPtsize), \ flags) -#define create_themeicon_button_from_unichar(pIcon_theme, pDest, pUniChar, pUniCharSize, iPtsize, flags) \ - create_themeicon_button(pIcon, pDest, create_utf8(pUniChar, pUniCharSize, iPtsize), \ - flags) - #define create_themeicon_button_from_chars(pIcon_theme, pDest, pCharString, iPtsize, flags) \ create_themeicon_button(pIcon_theme, pDest, \ create_utf8_from_char(pCharString, \ -- 2.30.2