Skip to content
This repository has been archived by the owner on May 15, 2020. It is now read-only.

Commit

Permalink
rm useless code
Browse files Browse the repository at this point in the history
  • Loading branch information
Yisaer committed Jun 13, 2018
1 parent 682f2ca commit 80a5fa9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.qunhe.util</groupId>
<artifactId>nest</artifactId>
<version>1.0</version>
<groupId>com.yisa.util</groupId>
<artifactId>nest4J</artifactId>
<version>0.0.1</version>
<build>
<plugins>
<plugin>
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/com/qunhe/util/nest/Nest.java
Original file line number Diff line number Diff line change
Expand Up @@ -200,12 +200,10 @@ public Result launchWorkers(List<NestPath> tree ,NestPath binPolygon ,Config con
for(int i = 0 ; i< placelist.size();i++){
NestPath part = placelist.get(i);
key = new NfpKey(binPolygon .getId() , part.getId() , true , 0 , part.getRotation());
// String jsonKey = gson.toJson(key);
nfpPairs.add(new NfpPair(binPolygon,part,key));
for(int j = 0 ; j< i ; j ++){
NestPath placed = placelist.get(j);
NfpKey keyed = new NfpKey(placed.getId() , part.getId() , false , rotations.get(j), rotations.get(i));
// String jsonKeyed = gson.toJson(keyed);
nfpPairs.add( new NfpPair(placed , part , keyed));
}
}
Expand All @@ -221,6 +219,7 @@ public Result launchWorkers(List<NestPath> tree ,NestPath binPolygon ,Config con
}
for(int i = 0 ; i<generatedNfp.size() ; i++){
ParallelData Nfp = generatedNfp.get(i);
//TODO remove gson & generate a new key algorithm
String tkey = gson.toJson(Nfp.getKey());
nfpCache.put(tkey , Nfp.value);
}
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/com/qunhe/util/nest/util/NfpUtil.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package com.qunhe.util.nest.util;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.qunhe.util.nest.data.*;
import java.util.List;

Expand Down

0 comments on commit 80a5fa9

Please sign in to comment.