diff --git a/Table.c b/Table.c index 79bd43245..42aab427b 100644 --- a/Table.c +++ b/Table.c @@ -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)); diff --git a/Table.h b/Table.h index fa85fd660..d1bf25af3 100644 --- a/Table.h +++ b/Table.h @@ -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); @@ -90,6 +88,7 @@ void Table_cleanupRow(Table* this, Row* row, int idx); static inline void Table_compact(Table* this) { Vector_compact(this->rows); + this->needsSort = true; } #endif