diff options
author | Mathias Gumz <akira at fluxbox dot org> | 2009-10-01 06:58:56 (GMT) |
---|---|---|
committer | Mathias Gumz <akira at fluxbox dot org> | 2009-10-01 06:58:56 (GMT) |
commit | 4eeac74a3dbb1b23a9c5a6936965e9d5acb3df48 (patch) | |
tree | 9f658c46e0a150e2c53323233078a127fc158795 /src/FbTk/Layer.hh | |
parent | 65a45dc65f359f3300d980cfd8981a98f3afe4fc (diff) | |
download | fluxbox_pavel-4eeac74a3dbb1b23a9c5a6936965e9d5acb3df48.zip fluxbox_pavel-4eeac74a3dbb1b23a9c5a6936965e9d5acb3df48.tar.bz2 |
removed unused code
Diffstat (limited to 'src/FbTk/Layer.hh')
-rw-r--r-- | src/FbTk/Layer.hh | 15 |
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 | ||
105 | template <typename ItemType, typename Container> | 103 | template <typename ItemType, typename Container> |
106 | ItemType *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 | |||
118 | template <typename ItemType, typename Container> | ||
119 | void Layer<ItemType, Container>::restack() { | 104 | void Layer<ItemType, Container>::restack() { |
120 | } | 105 | } |
121 | 106 | ||