From dade7b0e0a3f704e173cd330c27fa7d59e10d19b Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 23 Dec 2024 22:24:15 +0100 Subject: [PATCH] Remove more commented out code related to sorting It doesn't look like this could ever be useful, so just remove it. --- src/gtk/dataview.cpp | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/src/gtk/dataview.cpp b/src/gtk/dataview.cpp index 6ff01b3c5e..a4692c67f9 100644 --- a/src/gtk/dataview.cpp +++ b/src/gtk/dataview.cpp @@ -3506,26 +3506,6 @@ bool wxDataViewColumn::IsReorderable() const // wxGtkTreeModelNode //----------------------------------------------------------------------------- -#if 0 -class wxGtkTreeModelChildWithPos -{ -public: - unsigned int pos; - void *id; -}; - -static -int wxGtkTreeModelChildWithPosCmp( const void* data1, const void* data2, const void* user_data ) -{ - const wxGtkTreeModelChildWithPos* child1 = (const wxGtkTreeModelChildWithPos*) data1; - const wxGtkTreeModelChildWithPos* child2 = (const wxGtkTreeModelChildWithPos*) data2; - const wxDataViewCtrlInternal *internal = (const wxDataViewCtrlInternal *) user_data; - int ret = internal->GetDataViewModel()->Compare( child1->id, child2->id, - internal->GetSortColumn(), (internal->GetSortOrder() == GTK_SORT_DESCENDING) ); - - return ret; -} -#else static int LINKAGEMODE wxGtkTreeModelChildPtrCmp( void*** data1, void*** data2 ) { @@ -3534,7 +3514,6 @@ int LINKAGEMODE wxGtkTreeModelChildPtrCmp( void*** data1, void*** data2 ) } WX_DEFINE_ARRAY_PTR( void**, wxGtkTreeModelChildrenPtr ); -#endif void wxGtkTreeModelNode::Resort() {