[chronojump] treeview printTotal/AVG/SD calls: removed unneded param



commit 66533289cd93aeadfe06e2d0e94485d9762b8790
Author: Xavier de Blas <xaviblas gmail com>
Date:   Wed Aug 31 13:59:37 2022 +0200

    treeview printTotal/AVG/SD calls: removed unneded param

 src/treeview/event.cs          | 18 +++++++++++-------
 src/treeview/jump.cs           |  8 +++++---
 src/treeview/multiChronopic.cs | 10 ++++++----
 src/treeview/pulse.cs          |  9 ++++++---
 src/treeview/run.cs            |  9 ++++++---
 5 files changed, 34 insertions(+), 20 deletions(-)
---
diff --git a/src/treeview/event.cs b/src/treeview/event.cs
index 5ca81ef62..fef3eff19 100644
--- a/src/treeview/event.cs
+++ b/src/treeview/event.cs
@@ -139,23 +139,27 @@ public class TreeViewEvent
                return columnsString.Length +1;
        }
        
-       protected virtual void addStatisticInfo(TreeIter iterDeep, System.Object myObject) {
-               store.AppendValues(iterDeep, printTotal(myObject, getColsNum()));
-               store.AppendValues(iterDeep, printAVG(myObject, getColsNum()));
-               store.AppendValues(iterDeep, printSD(myObject, getColsNum()));
+       protected virtual void addStatisticInfo (TreeIter iterDeep, System.Object myObject)
+       {
+               store.AppendValues (iterDeep, printTotal (myObject));
+               store.AppendValues (iterDeep, printAVG (myObject));
+               store.AppendValues (iterDeep, printSD (myObject));
        }
        
-       protected virtual string [] printTotal(System.Object myObject, int cols) {
+       protected virtual string [] printTotal (System.Object myObject)
+       {
                string [] nothing = new string[0];
                return nothing;
        }
        
-       protected virtual string [] printAVG(System.Object myObject, int cols) {
+       protected virtual string [] printAVG (System.Object myObject)
+       {
                string [] nothing = new string[0];
                return nothing;
        }
 
-       protected virtual string [] printSD(System.Object myObject, int cols) {
+       protected virtual string [] printSD (System.Object myObject)
+       {
                string [] nothing = new string[0];
                return nothing;
        }
diff --git a/src/treeview/jump.cs b/src/treeview/jump.cs
index 28df7dab8..14c46dbdc 100644
--- a/src/treeview/jump.cs
+++ b/src/treeview/jump.cs
@@ -443,7 +443,8 @@ public class TreeViewJumpsRj : TreeViewJumps
                return myData;
        }
 
-       protected override string [] printTotal(System.Object myObject, int cols) {
+       protected override string [] printTotal (System.Object myObject)
+       {
                JumpRj newJumpRj = (JumpRj)myObject;
 
                string [] myData = new String [getColsNum()];
@@ -473,7 +474,7 @@ public class TreeViewJumpsRj : TreeViewJumps
                return myData;
        }
        
-       protected override string [] printAVG(System.Object myObject, int cols)
+       protected override string [] printAVG (System.Object myObject)
        {
                JumpRj newJumpRj = (JumpRj)myObject;
 
@@ -582,7 +583,8 @@ public class TreeViewJumpsRj : TreeViewJumps
                return myData;
        }
        
-       protected override string [] printSD(System.Object myObject, int cols) {
+       protected override string [] printSD (System.Object myObject)
+       {
                JumpRj newJumpRj = (JumpRj)myObject;
                
                string tcString = newJumpRj.TcString;
diff --git a/src/treeview/multiChronopic.cs b/src/treeview/multiChronopic.cs
index f8bc1969c..8ee62a8ca 100644
--- a/src/treeview/multiChronopic.cs
+++ b/src/treeview/multiChronopic.cs
@@ -164,13 +164,14 @@ public class TreeViewMultiChronopic : TreeViewEvent
                MultiChronopic mc = (MultiChronopic)myObject;
                if(mc.Type == Constants.RunAnalysisName) {
                } else {
-                       store.AppendValues(iterDeep, printAVG(myObject, 19+1));
-                       store.AppendValues(iterDeep, printSD(myObject, 19+1));
+                       store.AppendValues (iterDeep, printAVG (myObject));
+                       store.AppendValues (iterDeep, printSD (myObject));
                }
 
        }
        
-       protected override string [] printAVG(System.Object myObject, int cols) {
+       protected override string [] printAVG (System.Object myObject)
+       {
                MultiChronopic mc = (MultiChronopic)myObject;
                string [] averages = mc.Statistics(true, pDN); //first boolean is averageOrSD
                
@@ -190,7 +191,8 @@ public class TreeViewMultiChronopic : TreeViewEvent
                return mc.DeleteCols(myData, maxCPs, false);
        }
 
-       protected override string [] printSD(System.Object myObject, int cols) {
+       protected override string [] printSD (System.Object myObject)
+       {
                MultiChronopic mc = (MultiChronopic)myObject;
                string [] sds = mc.Statistics(false, pDN); //first boolean is averageOrSD
                
diff --git a/src/treeview/pulse.cs b/src/treeview/pulse.cs
index cc3361059..b76f3e778 100644
--- a/src/treeview/pulse.cs
+++ b/src/treeview/pulse.cs
@@ -122,7 +122,8 @@ public class TreeViewPulses : TreeViewEvent
                return myData;
        }
        
-       protected override string [] printTotal(System.Object myObject, int cols) {
+       protected override string [] printTotal (System.Object myObject)
+       {
                Pulse newPulse = (Pulse)myObject;
 
                string [] myData = new String [getColsNum()];
@@ -139,7 +140,8 @@ public class TreeViewPulses : TreeViewEvent
                return myData;
        }
        
-       protected override string [] printAVG(System.Object myObject, int cols) {
+       protected override string [] printAVG (System.Object myObject)
+       {
                Pulse newPulse = (Pulse)myObject;
 
                string [] myData = new String [getColsNum()];
@@ -156,7 +158,8 @@ public class TreeViewPulses : TreeViewEvent
                return myData;
        }
        
-       protected override string [] printSD(System.Object myObject, int cols) {
+       protected override string [] printSD(System.Object myObject)
+       {
                Pulse newPulse = (Pulse)myObject;
 
                string [] myData = new String [getColsNum()];
diff --git a/src/treeview/run.cs b/src/treeview/run.cs
index be063920a..55f2c38cd 100644
--- a/src/treeview/run.cs
+++ b/src/treeview/run.cs
@@ -255,7 +255,8 @@ public class TreeViewRunsInterval : TreeViewRuns
                return myStringFull.Length; 
        } 
                        
-       protected override string [] printTotal(System.Object myObject, int cols) {
+       protected override string [] printTotal (System.Object myObject)
+       {
                RunInterval newRunI = (RunInterval)myObject;
 
                string [] myData = new String [getColsNum()];
@@ -272,7 +273,8 @@ public class TreeViewRunsInterval : TreeViewRuns
                return myData;
        }
        
-       protected override string [] printAVG(System.Object myObject, int cols) {
+       protected override string [] printAVG (System.Object myObject)
+       {
                RunInterval newRunI = (RunInterval)myObject;
 
                string [] myData = new String [getColsNum()];
@@ -295,7 +297,8 @@ public class TreeViewRunsInterval : TreeViewRuns
                return myData;
        }
 
-       protected override string [] printSD(System.Object myObject, int cols) {
+       protected override string [] printSD (System.Object myObject)
+       {
                RunInterval newRunI = (RunInterval)myObject;
 
                string [] myData = new String [getColsNum()];


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]