Commit de784987 authored by niklas.baumgarten's avatar niklas.baumgarten
Browse files

removing mgraph level, next might be plevel and maybe this guy disappears completely

parent bc804d1a
......@@ -5,18 +5,6 @@ void Level::Update(int level) {
fine = level;
coarse = level - 1;
pLevel = coarse;
mGfine = fine - pLevel;
if (coarse - pLevel > 0)
mGcoarse = coarse - pLevel;
else
mGcoarse = 0;
}
int Level::MGLevel(bool getCoarse) const {
if (getCoarse)
return mGcoarse;
else
return mGfine;
}
bool Level::operator==(const Level &level) const {
......@@ -26,10 +14,6 @@ bool Level::operator==(const Level &level) const {
return false;
if (this->pLevel != level.pLevel)
return false;
if (this->mGfine != level.mGfine)
return false;
if (this->mGcoarse != level.mGcoarse)
return false;
return true;
}
......
......@@ -17,8 +17,6 @@ struct Level {
int fine;
int coarse;
int pLevel;
int mGfine;
int mGcoarse;
Level() {}
......@@ -28,7 +26,10 @@ struct Level {
void Update(int level);
int MGLevel(bool getCoarse) const;
int ActualLevel(bool getCoarse) const {
if(getCoarse) return fine;
else return coarse;
};
bool operator==(const Level &level) const;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment