more dead functions

This commit is contained in:
markt 2006-12-22 05:44:42 +00:00
parent 17a92c3253
commit 9d1447b0d5
7 changed files with 19 additions and 5 deletions

View file

@ -399,9 +399,6 @@ void Ewmh::updateClientList(BScreen &screen) {
for (; client_it != client_it_end; ++client_it) for (; client_it != client_it_end; ++client_it)
wl[win++] = (*client_it)->window(); wl[win++] = (*client_it)->window();
//number of windows to show in client list
num = win;
/* From Extended Window Manager Hints, draft 1.3: /* From Extended Window Manager Hints, draft 1.3:
* *
* _NET_CLIENT_LIST, WINDOW[]/32 * _NET_CLIENT_LIST, WINDOW[]/32

View file

@ -41,18 +41,22 @@ public:
virtual iterator insert(ItemType &item, unsigned int pos=0); virtual iterator insert(ItemType &item, unsigned int pos=0);
/// remove item from list /// remove item from list
virtual void remove(ItemType &item); virtual void remove(ItemType &item);
#ifdef NOT_USED
/// cycle all item upwards /// cycle all item upwards
virtual void cycleUp(); virtual void cycleUp();
/// cycle all items downwards /// cycle all items downwards
virtual void cycleDown(); virtual void cycleDown();
#endif // NOT_USED
/// move item to top /// move item to top
virtual void raise(ItemType &item); virtual void raise(ItemType &item);
/// move item to bottom /// move item to bottom
virtual void lower(ItemType &item); virtual void lower(ItemType &item);
#ifdef NOT_USED
/// raise a specific item one step /// raise a specific item one step
virtual void stepUp(ItemType &item); virtual void stepUp(ItemType &item);
/// lower a specific item one step /// lower a specific item one step
virtual void stepDown(ItemType &item); virtual void stepDown(ItemType &item);
#endif // NOT_USED
virtual void restack(); virtual void restack();
/// @return layer item on specific position, on failure 0 /// @return layer item on specific position, on failure 0
ItemType *getItem(unsigned int position); ItemType *getItem(unsigned int position);
@ -93,6 +97,7 @@ void Layer<ItemType, Container>::remove(ItemType &item) {
m_list.erase(it); m_list.erase(it);
} }
#ifdef NOT_USED
template <typename ItemType, typename Container> template <typename ItemType, typename Container>
void Layer<ItemType, Container>::cycleUp() { void Layer<ItemType, Container>::cycleUp() {
if (size() == 0) if (size() == 0)
@ -157,6 +162,8 @@ void Layer<ItemType, Container>::stepDown(ItemType &item) {
itemList().insert(new_pos, textitem); itemList().insert(new_pos, textitem);
restack(); restack();
} }
#endif // NOT_USED
template <typename ItemType, typename Container> template <typename ItemType, typename Container>
void Layer<ItemType, Container>::raise(ItemType &item) { void Layer<ItemType, Container>::raise(ItemType &item) {
if (&item == itemList().front()) // already at the bottom if (&item == itemList().front()) // already at the bottom

View file

@ -34,8 +34,11 @@ public:
virtual void raise() = 0; virtual void raise() = 0;
virtual void lower() = 0; virtual void lower() = 0;
#ifdef NOT_USED
virtual void stepUp() = 0; virtual void stepUp() = 0;
virtual void stepDown() = 0; virtual void stepDown() = 0;
#endif // NOT_USED
}; };
} // end namespace FbTk } // end namespace FbTk

View file

@ -190,6 +190,7 @@ void XLayer::remove(XLayerItem &item) {
} }
} }
#ifdef NOT_USED
void XLayer::cycleUp() { void XLayer::cycleUp() {
// need to find highest visible window, and move it to bottom // need to find highest visible window, and move it to bottom
iterator it = itemList().begin(); iterator it = itemList().begin();
@ -265,8 +266,7 @@ void XLayer::stepDown(XLayerItem &item) {
return; // nothing to do return; // nothing to do
// get our position // get our position
iterator myit = find(itemList().begin(), itemList().end(), &item); iterator it = find(itemList().begin(), itemList().end(), &item);
iterator it = myit;
// go one below it (top is front, so we must increment) // go one below it (top is front, so we must increment)
it++; it++;
@ -282,6 +282,7 @@ void XLayer::stepDown(XLayerItem &item) {
stackBelowItem(&item, *it); stackBelowItem(&item, *it);
// if we did reach the end, then there are no visible windows, so we don't do anything // if we did reach the end, then there are no visible windows, so we don't do anything
} }
#endif // NOT_USED
void XLayer::raise(XLayerItem &item) { void XLayer::raise(XLayerItem &item) {
// assume it is already in this layer // assume it is already in this layer

View file

@ -63,12 +63,14 @@ public:
iterator insert(XLayerItem &item, unsigned int pos=0); iterator insert(XLayerItem &item, unsigned int pos=0);
void remove(XLayerItem &item); void remove(XLayerItem &item);
#ifdef NOT_USED
// move highest to bottom // move highest to bottom
void cycleUp(); void cycleUp();
void cycleDown(); void cycleDown();
// just go above the next window up in the current layer (not all the way to the top) // just go above the next window up in the current layer (not all the way to the top)
void stepUp(XLayerItem &item); void stepUp(XLayerItem &item);
void stepDown(XLayerItem &item); void stepDown(XLayerItem &item);
#endif // NOT_USED
// bring to top of layer // bring to top of layer
void raise(XLayerItem &item); void raise(XLayerItem &item);

View file

@ -60,6 +60,7 @@ void XLayerItem::tempRaise() {
m_layer->tempRaise(*this); m_layer->tempRaise(*this);
} }
#ifdef NOT_USED
void XLayerItem::stepUp() { void XLayerItem::stepUp() {
m_layer->stepUp(*this); m_layer->stepUp(*this);
} }
@ -67,6 +68,7 @@ void XLayerItem::stepUp() {
void XLayerItem::stepDown() { void XLayerItem::stepDown() {
m_layer->stepDown(*this); m_layer->stepDown(*this);
} }
#endif // NOT_USED
void XLayerItem::raiseLayer() { void XLayerItem::raiseLayer() {
m_layer->raiseLayer(*this); m_layer->raiseLayer(*this);

View file

@ -48,9 +48,11 @@ public:
void lower(); void lower();
void tempRaise(); // this raise gets reverted by a restack() void tempRaise(); // this raise gets reverted by a restack()
#ifdef NOT_USED
// go above the next item visible in this layer // go above the next item visible in this layer
void stepUp(); void stepUp();
void stepDown(); void stepDown();
#endif // NOT_USED
// send to next layer up // send to next layer up
void raiseLayer(); void raiseLayer();