[chronojump] Removed unused code
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Removed unused code
- Date: Wed, 25 Aug 2021 12:04:49 +0000 (UTC)
commit c9f28aba0eec5195c7894273c3426ade4e81ef9c
Author: Xavier de Blas <xaviblas gmail com>
Date: Wed Aug 25 14:02:53 2021 +0200
Removed unused code
src/gui/cairo/xy.cs | 36 ------------------------------------
1 file changed, 36 deletions(-)
---
diff --git a/src/gui/cairo/xy.cs b/src/gui/cairo/xy.cs
index 57f5eee0b..387521f05 100644
--- a/src/gui/cairo/xy.cs
+++ b/src/gui/cairo/xy.cs
@@ -698,40 +698,4 @@ public abstract class CairoXY : CairoGeneric
}
*/
-
- /*
- //unused code
- private void plotBars()
- {
- //calculate separation between series and bar width
- int distanceBetweenCols = Convert.ToInt32((graphWidth - rightMargin)*(1+.5)/point_l.Count) -
- Convert.ToInt32((graphWidth - rightMargin)*(0+.5)/point_l.Count);
-
- int tctfSep = Convert.ToInt32(.3*distanceBetweenCols);
- int barWidth = Convert.ToInt32(.3*distanceBetweenCols);
- int barDesplLeft = Convert.ToInt32(.5*barWidth);
-
- int i = 10;
- int count = 0;
- //note p.X is jump fall and p.Y jump height
- //TODO: maybe this will be for a legend, because the graph wants X,Y points
- foreach(PointF p in point_l)
- {
- int x = Convert.ToInt32((graphWidth -
rightMargin)*(count+.5)/point_l.Count)-barDesplLeft;
- int y = calculatePaintY(Convert.ToDouble(p.X), graphHeight, pointsMaxValue, 0,
topMargin, bottomMargin + bottomAxis);
-
- LogB.Information(string.Format("red: {0}, {1}, {2}, {3}", Convert.ToDouble(p.X),
graphHeight, pointsMaxValue, y));
- drawRoundedRectangle (x, y, barWidth, graphHeight - y, 4, g, red);
-
- x = Convert.ToInt32((graphWidth -
rightMargin)*(count+.5)/point_l.Count)-barDesplLeft+tctfSep;
- y = calculatePaintY(Convert.ToDouble(p.Y), graphHeight, pointsMaxValue, 0, topMargin,
bottomMargin + bottomAxis);
-
- LogB.Information(string.Format("blue: {0}, {1}, {2}, {3}", Convert.ToDouble(p.Y),
graphHeight, pointsMaxValue, y));
- drawRoundedRectangle (x, y, barWidth, graphHeight -y, 4, g, blue);
-
- count ++;
- }
- }
- */
-
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]