diff options
Diffstat (limited to 'src/FbTk/MultLayers.cc')
-rw-r--r-- | src/FbTk/MultLayers.cc | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/FbTk/MultLayers.cc b/src/FbTk/MultLayers.cc index 79dab59..a9135e3 100644 --- a/src/FbTk/MultLayers.cc +++ b/src/FbTk/MultLayers.cc | |||
@@ -55,36 +55,6 @@ XLayerItem *MultLayers::getLowestItemAboveLayer(int layernum) { | |||
55 | 55 | ||
56 | } | 56 | } |
57 | 57 | ||
58 | XLayerItem *MultLayers::getItemBelow(XLayerItem &item) { | ||
59 | XLayer &curr_layer = item.getLayer(); | ||
60 | |||
61 | // assume that the LayerItem does exist in a layer. | ||
62 | XLayerItem *ret = curr_layer.getItemBelow(item); | ||
63 | |||
64 | if (ret == 0) { | ||
65 | int num = curr_layer.getLayerNum()-1; | ||
66 | while (num >= 0 && !ret) { | ||
67 | ret = m_layers[num]->getItemBelow(item); | ||
68 | num--; | ||
69 | } | ||
70 | } | ||
71 | |||
72 | return ret; | ||
73 | } | ||
74 | |||
75 | XLayerItem *MultLayers::getItemAbove(XLayerItem &item) { | ||
76 | XLayer &curr_layer = item.getLayer(); | ||
77 | |||
78 | // assume that the LayerItem does exist in a layer. | ||
79 | XLayerItem *ret = curr_layer.getItemAbove(item); | ||
80 | |||
81 | if (!ret) { | ||
82 | ret = getLowestItemAboveLayer(curr_layer.getLayerNum()); | ||
83 | } | ||
84 | |||
85 | return ret; | ||
86 | } | ||
87 | |||
88 | void MultLayers::addToTop(XLayerItem &item, int layernum) { | 58 | void MultLayers::addToTop(XLayerItem &item, int layernum) { |
89 | if (layernum < 0) | 59 | if (layernum < 0) |
90 | layernum = 0; | 60 | layernum = 0; |