commit f0d613f188e1c5f88679609b3364e1d170ae492a
Author: Simon Howard <fraggle@soulsphere.org>
AuthorDate: Wed Dec 26 13:58:58 2018 -0500
Commit: Simon Howard <fraggle@soulsphere.org>
CommitDate: Wed Dec 26 13:58:58 2018 -0500
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.
---
textscreen/txt_table.c | 7 ++-----
textscreen/txt_table.h | 2 +-
2 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/textscreen/txt_table.c b/textscreen/txt_table.c
index 5f2d61c0..c14da47e 100644
--- a/textscreen/txt_table.c
+++ b/textscreen/txt_table.c
@@ -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 (;;)
{
diff --git a/textscreen/txt_table.h b/textscreen/txt_table.h
index f7ce7141..ff7509ba 100644
--- a/textscreen/txt_table.h
+++ b/textscreen/txt_table.h
@@ -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,