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

@@ -47,15 +47,6 @@ using namespace Qwt3D; // namespace ref is only visible in this file (is not in
// util function to create an x/y key for QHash, effective and quick enough
static QString xystring(double x, double y) { return QString("%1:%2").arg((int)x).arg((int)y); }
#if 0
static void unxystring(QString val, double &x, double &y)
{
QRegExp it("^([^:]*):([^:]*)$");
it.exactMatch(val);
x = it.cap(1).toDouble();
y = it.cap(2).toDouble();
}
#endif
// returns the color for an xyz point
class ModelDataColor : public Color