Removed the GUI1 color2markup
formatting function
Unused now with the removal of the GUI1 addons manager
This commit is contained in:
parent
dec7c30644
commit
76d6687c0b
2 changed files with 0 additions and 15 deletions
|
@ -144,18 +144,6 @@ std::string del_tags(const std::string& text){
|
|||
return utils::join(lines, "\n");
|
||||
}
|
||||
|
||||
std::string color2markup(const color_t &color)
|
||||
{
|
||||
std::stringstream markup;
|
||||
// The RGB of color_t are Uint8, we need to cast them to int.
|
||||
// Without cast, it gives their char equivalent.
|
||||
markup << "<"
|
||||
<< static_cast<int>(color.r) << ","
|
||||
<< static_cast<int>(color.g) << ","
|
||||
<< static_cast<int>(color.b) << ">";
|
||||
return markup.str();
|
||||
}
|
||||
|
||||
SDL_Rect text_area(const std::string& text, int size, int style)
|
||||
{
|
||||
const SDL_Rect area = {0,0,10000,10000};
|
||||
|
|
|
@ -92,9 +92,6 @@ bool is_format_char(char c);
|
|||
*/
|
||||
bool is_cjk_char(const ucs4::char_t ch);
|
||||
|
||||
/** Create string of color-markup, such as "<255,255,0>" for yellow. */
|
||||
std::string color2markup(const color_t &color);
|
||||
|
||||
/**
|
||||
* Wrap text.
|
||||
*
|
||||
|
|
Loading…
Add table
Reference in a new issue