Code Cleanup: Remove #if 0 code

As a personal habit I tend to use the C pre-processor to
comment out code blocks I don't want to remove. This is in
case the code will be required in the future.

I think it is now safe to say the code commented out is not
required -- most of it is legacy and marks the transition from
earlier designs or legacy code.

I've done this in one big commit since in theory it has no
functional change, and in future can look in this commit for any
code we may want to reinstate.
This commit is contained in:
Mark Liversedge
2013-02-11 15:00:00 +00:00
parent fa04eddb6b
commit caec4ee0fe
17 changed files with 15 additions and 395 deletions

View File

@@ -379,9 +379,6 @@ CriticalPowerWindow::updateCpint(double minutes)
double a = pow(10,RideFileCache::decimalsFor(series()));
value = ((int)((0.5/a + value) * a))/a;
#if 0
label = QString("%1 kJ (%2)").arg(watts * minutes * 60.0 / 1000.0, 0, 'f', 0);
#endif
label = QString("%1 %2 (%3)").arg(value).arg(units)
.arg(date.isValid() ? date.toString(tr("MM/dd/yyyy")) : tr("no date"));
}