From: Václav Slavík Date: Tue, 17 Jan 2012 14:05:11 +0000 (+0000) Subject: Removed unused, wrong wxDataViewCtrl code. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/9944f9c6f32c29f50092218319f8ac9bbe385475 Removed unused, wrong wxDataViewCtrl code. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70376 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/datavgen.cpp b/src/generic/datavgen.cpp index 6373be271e..a4a55c65a1 100644 --- a/src/generic/datavgen.cpp +++ b/src/generic/datavgen.cpp @@ -4803,7 +4803,6 @@ void wxDataViewCtrl::OnInternalIdle() int wxDataViewCtrl::GetColumnPosition( const wxDataViewColumn *column ) const { -#if 1 unsigned int len = GetColumnCount(); for ( unsigned int i = 0; i < len; i++ ) { @@ -4813,25 +4812,6 @@ int wxDataViewCtrl::GetColumnPosition( const wxDataViewColumn *column ) const } return wxNOT_FOUND; -#else - // This returns the position in pixels which is not what we want. - int ret = 0, - dummy = 0; - unsigned int len = GetColumnCount(); - for ( unsigned int i = 0; i < len; i++ ) - { - wxDataViewColumn * col = GetColumnAt(i); - if (col->IsHidden()) - continue; - ret += col->GetWidth(); - if (column==col) - { - CalcScrolledPosition( ret, dummy, &ret, &dummy ); - break; - } - } - return ret; -#endif } wxDataViewColumn *wxDataViewCtrl::GetSortingColumn() const