diff options
| author | Manolo Gouy <Manolo> | 2016-04-23 04:30:39 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2016-04-23 04:30:39 +0000 |
| commit | a56124c20b16e1930f0ec1dc5dc116c845bc4835 (patch) | |
| tree | bb725f5b32082628bf6e1fbe3374a2134f5102ef /FL/Fl_Tree_Item_Array.H | |
| parent | 5ec684f236e14c40e53f7b67b37048895c61db6b (diff) | |
Remove #if FLTK_ABI_VERSION >= xxx directives.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11679 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL/Fl_Tree_Item_Array.H')
| -rw-r--r-- | FL/Fl_Tree_Item_Array.H | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/FL/Fl_Tree_Item_Array.H b/FL/Fl_Tree_Item_Array.H index f876458cb..05b3562c3 100644 --- a/FL/Fl_Tree_Item_Array.H +++ b/FL/Fl_Tree_Item_Array.H @@ -49,12 +49,10 @@ class FL_EXPORT Fl_Tree_Item_Array { int _total; // #items in array int _size; // #items *allocated* for array int _chunksize; // #items to enlarge mem allocation -#if FLTK_ABI_VERSION >= 10303 - enum { + enum { MANAGE_ITEM = 1, ///> manage the Fl_Tree_Item's internals (internal use only) }; char _flags; // flags to control behavior -#endif void enlarge(int count); public: Fl_Tree_Item_Array(int new_chunksize = 10); // CTOR @@ -73,17 +71,7 @@ public: return(_total); } /// Swap the two items at index positions \p ax and \p bx. -#if FLTK_ABI_VERSION >= 10301 - // NEW -- code moved to .cxx void swap(int ax, int bx); -#else /*FLTK_ABI_VERSION*/ - // OLD - void swap(int ax, int bx) { - Fl_Tree_Item *asave = _items[ax]; - _items[ax] = _items[bx]; - _items[bx] = asave; - } -#endif /*FLTK_ABI_VERSION*/ int move(int to, int from); int deparent(int pos); int reparent(Fl_Tree_Item *item, Fl_Tree_Item *newparent, int pos); @@ -93,7 +81,6 @@ public: void replace(int pos, Fl_Tree_Item *new_item); void remove(int index); int remove(Fl_Tree_Item *item); -#if FLTK_ABI_VERSION >= 10303 /// Option to control if Fl_Tree_Item_Array's destructor will also destroy the Fl_Tree_Item's. /// If set: items and item array is destroyed. /// If clear: only the item array is destroyed, not items themselves. @@ -103,7 +90,6 @@ public: int manage_item_destroy() const { return _flags & MANAGE_ITEM ? 1 : 0; } -#endif }; #endif /*_FL_TREE_ITEM_ARRAY_H*/ |
