Remove more commented out code related to sorting

It doesn't look like this could ever be useful, so just remove it.
This commit is contained in:
Vadim Zeitlin
2024-12-23 22:50:36 +01:00
parent d9a1a949f8
commit dade7b0e0a
-21
View File
@@ -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()
{