From bb7129dae2be48affa0a19292122e5ce988c0719 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Sun, 6 Nov 2022 15:03:19 +0100 Subject: Use the new Fl_Int_Vector class in Fl_Table Replace local IntVector with Fl_Int_Vector --- src/Fl_Table.cxx | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'src') diff --git a/src/Fl_Table.cxx b/src/Fl_Table.cxx index 431847b61..baf06249e 100644 --- a/src/Fl_Table.cxx +++ b/src/Fl_Table.cxx @@ -26,27 +26,6 @@ #include // realloc/free -// An STL-ish vector without templates (private to Fl_Table) - -void Fl_Table::IntVector::copy(int *newarr, unsigned int newsize) { - size(newsize); - memcpy(arr, newarr, newsize * sizeof(int)); -} - -Fl_Table::IntVector::~IntVector() { // DTOR - if (arr) - free(arr); - arr = 0; -} - -void Fl_Table::IntVector::size(unsigned int count) { - if (count != _size) { - arr = (int*)realloc(arr, count * sizeof(int)); - _size = count; - } -} - - /** Sets the vertical scroll position so 'row' is at the top, and causes the screen to redraw. */ -- cgit v1.2.3