summaryrefslogtreecommitdiff
path: root/nlpsolver
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-08-11 15:58:09 +0200
committerNoel Grandin <noel@peralex.com>2014-08-14 10:59:48 +0200
commitac5954d7c540f34702033d7d951d1d16cb96730a (patch)
tree310ba9698a10c74662de0714db683f932de32b0c /nlpsolver
parent89c0a2b2f65beeb6f42d3334662100a13169a8d6 (diff)
java: remove commented out code
Change-Id: I05c907a38b562231e968c17f14e09ef80e0a6ed1
Diffstat (limited to 'nlpsolver')
-rw-r--r--nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/global/GlobalFile.java5
-rw-r--r--nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/global/RandomGenerator.java1
2 files changed, 0 insertions, 6 deletions
diff --git a/nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/global/GlobalFile.java b/nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/global/GlobalFile.java
index d1ede927c4b6..36e4ebba91a8 100644
--- a/nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/global/GlobalFile.java
+++ b/nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/global/GlobalFile.java
@@ -116,7 +116,6 @@ public class GlobalFile {
public static ArrayList<ArrayList<Double>> getCurveDataFromFile(String fileName) {
File file = new File(fileName);
if(!file.exists()){
- //showMessage();
return null;
}
//open data file
@@ -126,7 +125,6 @@ public class GlobalFile {
inStream = new FileInputStream(file);
inReader = new BufferedReader(new InputStreamReader(inStream));
}catch(Exception e){
- //showMessage();
return null;//Data file open error.
}
ArrayList<Double> xaxes = new ArrayList<Double>(1);
@@ -158,7 +156,6 @@ public class GlobalFile {
xaxis = Double.valueOf(s);
xaxes.add(xaxis);
}catch(NumberFormatException e){
- //showMessage();
inReader.close();
inStream.close();
return null;//Data file data format error.
@@ -168,7 +165,6 @@ public class GlobalFile {
yaxis = Double.valueOf(s);
yaxes.add(yaxis);
}catch(NumberFormatException e){
- //showMessage();
inReader.close();
inStream.close();
return null;//Data file data format error.
@@ -177,7 +173,6 @@ public class GlobalFile {
}
inReader.close();
}catch(Exception e){
- //showMessage();
return null;//Uncertain data file error.
}
ArrayList<ArrayList<Double>> curveData = new ArrayList<ArrayList<Double>>(2);
diff --git a/nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/global/RandomGenerator.java b/nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/global/RandomGenerator.java
index 48d3b6d799e5..549d9e14c89d 100644
--- a/nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/global/RandomGenerator.java
+++ b/nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/global/RandomGenerator.java
@@ -68,7 +68,6 @@ public static double doubleRangeRandom(double lowLimit,double upLimit){
if(times<=0) return new int[0];
int realTimes = Math.min(maxNum, times);
boolean[] flags = new boolean[maxNum];
-// Arrays.fill(flags, false);
boolean isBelowHalf = times<maxNum*0.5;
int virtualTimes = realTimes;
if(!isBelowHalf) {