removed add/removeWorkspace and fixed indent

This commit is contained in:
fluxgen 2002-02-28 15:44:39 +00:00
parent 4921925c17
commit 34b2b9637b
2 changed files with 6 additions and 23 deletions

View file

@ -86,18 +86,3 @@ void Workspacemenu::itemSelected(int button, int index) {
} }
} }
void Workspacemenu::removeWorkspace(unsigned int id) {
if (id<getCount()) {
remove(id+2); // + 2 is where workspaces starts
#ifdef DEBUG
using namespace std;
cerr<<__FILE__<<"("<<__LINE__<<"): Removing "<<id<<endl;
#endif
}
}
void Workspacemenu::addWorkspace(Workspace *wkspc) {
assert(wkspc);
insert(wkspc->getName(), wkspc->getMenu(),
wkspc->getWorkspaceID() + 2);
}

View file

@ -36,8 +36,6 @@ protected:
public: public:
Workspacemenu(BScreen *); Workspacemenu(BScreen *);
void removeWorkspace(unsigned int id);
void addWorkspace(Workspace *wkspc);
}; };