Skip to content

Commit

Permalink
Hide Table_removeIndex() from extern callers
Browse files Browse the repository at this point in the history
Table_removeIndex() needs to be called with care, e.g. Vector_compact()
needs to be called afterwards.  Do no call by accident from external
code.
  • Loading branch information
cgzones committed Aug 14, 2024
1 parent 59578af commit 23ebdbb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion Table.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ void Table_add(Table* this, Row* row) {
// removing items.
// Note: for processes should only be called from ProcessTable_iterate to avoid
// breaking dying process highlighting.
void Table_removeIndex(Table* this, const Row* row, int idx) {
static void Table_removeIndex(Table* this, const Row* row, int idx) {
int rowid = row->id;

assert(row == (Row*)Vector_get(this->rows, idx));
Expand Down
2 changes: 0 additions & 2 deletions Table.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@ void Table_printHeader(const Settings* settings, RichString* header);

void Table_add(Table* this, struct Row_* row);

void Table_removeIndex(Table* this, const struct Row_* row, int idx);

void Table_updateDisplayList(Table* this);

void Table_expandTree(Table* this);
Expand Down

0 comments on commit 23ebdbb

Please sign in to comment.