mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-09-28 15:50:17 +08:00
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:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user