mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-30 09:54:10 +03:00
Remove textboxwrap() and wrap() return value
This removes Graphics::textboxwrap(), as it is now an unused function. Additionally, this removes the return value of textboxclass::wrap(), as it is also now unused.
This commit is contained in:
@@ -274,7 +274,7 @@ void textboxclass::centertext(void)
|
||||
padtowidth(w-16);
|
||||
}
|
||||
|
||||
int textboxclass::wrap(int pad)
|
||||
void textboxclass::wrap(int pad)
|
||||
{
|
||||
/* This function just takes a single-line textbox and wraps it...
|
||||
* pad = the total number of characters we are going to pad this textbox.
|
||||
@@ -285,7 +285,7 @@ int textboxclass::wrap(int pad)
|
||||
if (lines.empty())
|
||||
{
|
||||
vlog_error("textboxclass::wrap() has no first line!");
|
||||
return 16;
|
||||
return;
|
||||
}
|
||||
|
||||
std::string wrapped = font::string_wordwrap_balanced(
|
||||
@@ -304,8 +304,6 @@ int textboxclass::wrap(int pad)
|
||||
addline(wrapped.substr(startline, newline-startline));
|
||||
startline = newline + 1;
|
||||
} while (newline != std::string::npos);
|
||||
|
||||
return h;
|
||||
}
|
||||
|
||||
void textboxclass::copyoriginaltext(void)
|
||||
|
||||
Reference in New Issue
Block a user