Remove unused functions from text drawing code.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7253 4a71c877-e1ca-e34f-864e-861f7616d084
master
Per Inge Mathisen 2009-04-30 21:56:04 +00:00 committed by Git SVN Gateway
parent b8d3c62005
commit 73ea6f197e
2 changed files with 2 additions and 19 deletions

View File

@ -76,19 +76,11 @@ extern void iV_DrawTextRotated(const char* string, float x, float y, float rotat
/** Draws text with a printf syntax to the screen.
*/
extern void iV_DrawTextRotatedFv(float x, float y, float rotation, const char* format, va_list ap);
extern void iV_DrawTextRotatedF(float x, float y, float rotation, const char* format, ...) WZ_DECL_FORMAT(printf, 4, 5);
static inline void iV_DrawText(const char* string, float x, float y)
{
iV_DrawTextRotated(string, x, y, 0.f);
}
static inline void iV_DrawTextFv(float x, float y, const char* format, va_list ap)
{
iV_DrawTextRotatedFv(x, y, 0.f, format, ap);
}
extern void iV_DrawTextF(float x, float y, const char* format, ...) WZ_DECL_FORMAT(printf, 3, 4);
#endif // _INCLUDED_TEXTDRAW_

View File

@ -606,7 +606,7 @@ void iV_DrawTextRotated(const char* string, float XPos, float YPos, float rotati
glLoadIdentity();
}
void iV_DrawTextRotatedFv(float x, float y, float rotation, const char* format, va_list ap)
static void iV_DrawTextRotatedFv(float x, float y, float rotation, const char* format, va_list ap)
{
va_list aq;
size_t size;
@ -630,21 +630,12 @@ void iV_DrawTextRotatedFv(float x, float y, float rotation, const char* format,
iV_DrawTextRotated(str, x, y, rotation);
}
void iV_DrawTextRotatedF(float x, float y, float rotation, const char* format, ...)
{
va_list ap;
va_start(ap, format);
iV_DrawTextRotatedFv(x, y, rotation, format, ap);
va_end(ap);
}
void iV_DrawTextF(float x, float y, const char* format, ...)
{
va_list ap;
va_start(ap, format);
iV_DrawTextFv(x, y, format, ap);
iV_DrawTextRotatedFv(x, y, 0.f, format, ap);
va_end(ap);
}