summaryrefslogtreecommitdiff
path: root/src/FbTk/Layer.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk/Layer.hh')
-rw-r--r--src/FbTk/Layer.hh15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/FbTk/Layer.hh b/src/FbTk/Layer.hh
index b9257c3..aabbe08 100644
--- a/src/FbTk/Layer.hh
+++ b/src/FbTk/Layer.hh
@@ -43,8 +43,6 @@ public:
43 virtual void raise(ItemType &item); 43 virtual void raise(ItemType &item);
44 /// move item to bottom 44 /// move item to bottom
45 virtual void lower(ItemType &item); 45 virtual void lower(ItemType &item);
46 /// @return layer item on specific position, on failure 0
47 ItemType *getItem(unsigned int position);
48 /// @return number of elements in layer 46 /// @return number of elements in layer
49 size_t size() const { return m_list.size(); } 47 size_t size() const { return m_list.size(); }
50 /// @return layer list 48 /// @return layer list
@@ -103,19 +101,6 @@ void Layer<ItemType, Container>::lower(ItemType &item) {
103} 101}
104 102
105template <typename ItemType, typename Container> 103template <typename ItemType, typename Container>
106ItemType *Layer<ItemType, Container>::getItem(unsigned int position) {
107 if (position >= m_list.size())
108 return 0;
109 iterator it = m_list.begin();
110 iterator it_end = m_list.end();
111 for (unsigned int i=0; i < position && it != it_end; i++);
112
113 if (it == it_end) return 0;
114 else
115 return *it;
116}
117
118template <typename ItemType, typename Container>
119void Layer<ItemType, Container>::restack() { 104void Layer<ItemType, Container>::restack() {
120} 105}
121 106