Skip to content

Commit

Permalink
Removed the GUI1 color2markup formatting function
Browse files Browse the repository at this point in the history
Unused now with the removal of the GUI1 addons manager
  • Loading branch information
Vultraz committed Feb 18, 2017
1 parent dec7c30 commit 76d6687
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
12 changes: 0 additions & 12 deletions src/font/marked-up_text.cpp
Expand Up @@ -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};
Expand Down
3 changes: 0 additions & 3 deletions src/font/marked-up_text.hpp
Expand Up @@ -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.
*
Expand Down

0 comments on commit 76d6687

Please sign in to comment.