From f74be16b9c093e1e19800b317edeedd3bdf078fb Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 22 Dec 2014 01:31:13 +0000 Subject: [PATCH] Remove unnecessary methods of wxCocoaOutlineDataSource. {append,remove}Child() were never used, remove them to make it easier to remove the use of "children" array itself later (see #16740). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78294 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/osx/cocoa/dataview.h | 2 -- src/osx/cocoa/dataview.mm | 10 ---------- 2 files changed, 12 deletions(-) diff --git a/include/wx/osx/cocoa/dataview.h b/include/wx/osx/cocoa/dataview.h index 2d33fff661..540b66a56c 100644 --- a/include/wx/osx/cocoa/dataview.h +++ b/include/wx/osx/cocoa/dataview.h @@ -314,11 +314,9 @@ private: -(void) removeFromBuffer:(wxPointerObject*)item; // buffered children handling - -(void) appendChild:(wxPointerObject*)item; -(void) clearChildren; -(wxPointerObject*) getChild:(NSUInteger)index; -(NSUInteger) getChildCount; - -(void) removeChild:(NSUInteger)index; // buffer handling -(void) clearBuffers; diff --git a/src/osx/cocoa/dataview.mm b/src/osx/cocoa/dataview.mm index 54f2d4ea29..c7fdad3f94 100644 --- a/src/osx/cocoa/dataview.mm +++ b/src/osx/cocoa/dataview.mm @@ -1039,11 +1039,6 @@ outlineView:(NSOutlineView*)outlineView // // children handling // --(void) appendChild:(wxPointerObject*)item -{ - [children addObject:item]; -} - -(void) clearChildren { [children removeAllObjects]; @@ -1059,11 +1054,6 @@ outlineView:(NSOutlineView*)outlineView return [children count]; } --(void) removeChild:(NSUInteger)index -{ - [children removeObjectAtIndex:index]; -} - // // buffer handling //