summaryrefslogtreecommitdiff
path: root/FL/Fl_Tree_Item_Array.H
diff options
context:
space:
mode:
Diffstat (limited to 'FL/Fl_Tree_Item_Array.H')
-rw-r--r--FL/Fl_Tree_Item_Array.H16
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*/