]> Devoid-pointer.net GitWeb - anyanka.git/commitdiff
Remove commented out code
authorMichal Malý <madcatxster@devoid-pointer.net>
Fri, 10 Oct 2014 15:33:27 +0000 (17:33 +0200)
committerMichal Malý <madcatxster@devoid-pointer.net>
Fri, 10 Oct 2014 15:33:27 +0000 (17:33 +0200)
signaldrawer.cpp

index f74546a93131f9767fa782d690bc538a774d44ee..719d9c5fb4756469d56f6db826dec364363be167 100644 (file)
@@ -328,51 +328,6 @@ bool SignalDrawer::drawScale(QPixmap* const target)
   p.end();
 
   return true;
-
-  /*
-  switch (axis) {
-  case SignalController::Axis::TIME:
-    relMin = m_relXMin; relMax = m_relXMax;
-    tickDrawFunc = std::bind(&SignalDrawer::renderTimeScaleTick, this, &p, std::placeholders::_1, std::placeholders::_2);
-    textDrawFunc = std::bind(&SignalDrawer::renderTimeScaleText, this, &p, 0, std::placeholders::_1, std::placeholders::_2);
-    p.drawLine(SCALE_MARGIN_VALUE, m_gHeight + 1, m_gWidth + SCALE_MARGIN_VALUE, m_gHeight + 1);
-    break;
-  case SignalController::Axis::VALUE: /* VALUE axis is drawn first in order to determine offset from the left border *
-    relMin = m_relYMin; relMax = m_relYMax;
-    tickDrawFunc = std::bind(&SignalDrawer::renderValueScaleTick, this, &p, std::placeholders::_1, std::placeholders::_2);
-    textDrawFunc = std::bind(&SignalDrawer::renderValueScaleText, this, &p, maxTextWidth, std::placeholders::_1, std::placeholders::_2);
-    /* Offset from the left is now k
-    p.drawLine(SCALE_MARGIN_VALUE + maxTextWidth, 0, SCALE_MARGIN_VALUE + maxTextWidth, m_gHeight);
-    break;
-  default:
-    return false;
-  }
-
-  RulerDrawData rd = m_controller->getRulerDrawData(relMin, relMax, axis);
-  //qDebug() << __QFUNC__ << "step" << rd.step << "relStep" << rd.relStep;
-
-  /* Draw subticks before the first tick *
-  {
-    int ctr = 10;
-    for (double subRel = rd.firstTickRel; subRel >= relMin; subRel -= rd.relStep / 10)
-      tickDrawFunc(subRel, (--ctr == 5) ? TickType::TICK : TickType::SUBTICK);
-  }
-  /* Draw ticks *
-  absVal = rd.firstTickAbs;
-  for (double rel = rd.firstTickRel; rel <= relMax; rel += rd.relStep) {
-    tickDrawFunc(rel, TickType::TICK);
-    textDrawFunc(rel, absVal);
-    absVal += rd.step;
-
-    /* Draw subticks ticks *
-    double subRel = rel;
-    for (uint i = 1; i < 10; i++) {
-      subRel += rd.relStep / 10;
-      tickDrawFunc(subRel, (i == 5) ? TickType::TICK : TickType::SUBTICK);
-    }
-
-  }
-  p.end();*/
 }
 
 void SignalDrawer::renderTimeScaleText(QPainter* const p, const double rel, const double value, const TickType tt)