diff options
Diffstat (limited to 'views')
-rw-r--r-- | views/controls/table/table_view.cc | 10 | ||||
-rw-r--r-- | views/controls/table/table_view.h | 3 |
2 files changed, 0 insertions, 13 deletions
diff --git a/views/controls/table/table_view.cc b/views/controls/table/table_view.cc index 114019f..35a2399 100644 --- a/views/controls/table/table_view.cc +++ b/views/controls/table/table_view.cc @@ -1074,16 +1074,6 @@ LRESULT TableView::OnNotify(int w_param, LPNMHDR hdr) { return 0; } -void TableView::OnDestroy() { - if (table_type_ == ICON_AND_TEXT) { - HIMAGELIST image_list = - ListView_GetImageList(GetNativeControlHWND(), LVSIL_SMALL); - DCHECK(image_list); - if (image_list) - ImageList_Destroy(image_list); - } -} - // Returns result, unless ascending is false in which case -result is returned. static int SwapCompareResult(int result, bool ascending) { return ascending ? result : -result; diff --git a/views/controls/table/table_view.h b/views/controls/table/table_view.h index a1cce45d..282d590 100644 --- a/views/controls/table/table_view.h +++ b/views/controls/table/table_view.h @@ -276,9 +276,6 @@ class TableView : public NativeControl, virtual LRESULT OnNotify(int w_param, LPNMHDR l_param); - // Overriden to destroy the image list. - virtual void OnDestroy(); - // Used to sort the two rows. Returns a value < 0, == 0 or > 0 indicating // whether the row2 comes before row1, row2 is the same as row1 or row1 comes // after row2. This invokes CompareValues on the model with the sorted column. |