textscreen: Remove superfluous first_widget param.

This avoids a warning from doxygen about the fact that the parameter
is undocumented. Since it's not necessary anyway, it can just be
removed.
This commit is contained in:
Simon Howard 2018-12-26 13:58:58 -05:00
parent 211dd15229
commit f0d613f188
2 changed files with 3 additions and 6 deletions

View file

@ -908,16 +908,13 @@ txt_table_t *TXT_NewTable(int columns)
// Alternative to TXT_NewTable() that allows a list of widgets to be
// provided in its arguments.
txt_table_t *TXT_MakeTable(int columns, TXT_UNCAST_ARG(first_widget), ...)
txt_table_t *TXT_MakeTable(int columns, ...)
{
TXT_CAST_ARG(txt_widget_t, first_widget);
txt_table_t *table;
va_list args;
table = TXT_NewTable(columns);
TXT_AddWidget(table, first_widget);
va_start(args, TXT_UNCAST_ARG_NAME(first_widget));
va_start(args, columns);
for (;;)
{

View file

@ -110,7 +110,7 @@ txt_table_t *TXT_NewTable(int columns);
* @return Pointer to the new table structure.
*/
txt_table_t *TXT_MakeTable(int columns, TXT_UNCAST_ARG(first_widget), ...);
txt_table_t *TXT_MakeTable(int columns, ...);
/**
* Create a table containing the specified widgets packed horizontally,