Skip to content

Commit 3e5adda

Browse files
committed
refactor: removed unnecessary class and members
1 parent 621f063 commit 3e5adda

File tree

3 files changed

+0
-62
lines changed

3 files changed

+0
-62
lines changed

src/main/java/ptrman/levels/retina/LineDetectorWithMultiplePoints.java

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,12 @@
1616
public class LineDetectorWithMultiplePoints {
1717
public List<ProcessA.Sample> samples = new ArrayList<>(); // actual samples which are "included" in the line
1818

19-
// variable for the line drawing in the acceleration structure
20-
//public ArrayRealVector spatialAccelerationLineDirection; // can be null
21-
//public double spatialAccelerationLineLength; // can be null
22-
//public Vector2d<Integer> spatialAccelerationCenterPosition;
23-
2419
public double cachedConf = 0.0; // cached confidence of this line detector
2520

2621
public double m, n;
2722

2823
public double mse = 0.0f;
2924

30-
//public boolean isLocked = false; // has the detector received enough activation so it stays?
31-
3225
public boolean isHardened = false; // has the detector received enough activation so it got hardened?
3326

3427
public int commonObjectId = -1;
@@ -81,10 +74,6 @@ public double calcActivation() {
8174
return calcActivation(x);
8275
}
8376

84-
public boolean isCommonObjectIdValid() {
85-
return commonObjectId != -1;
86-
}
87-
8877
@Deprecated public ArrayRealVector projectPointOntoLine(IntIntPair point) {
8978
return projectPointOntoLine(real(point));
9079
}
@@ -129,13 +118,6 @@ public boolean isYAxisSingularity() {
129118
return Double.isInfinite(m);
130119
}
131120

132-
// public double getHorizontalOffset(List<ProcessA.Sample> samples) {
133-
// Assert.Assert(isYAxisSingularity(), "");
134-
//
135-
// int sampleIndex = integratedSampleIndices.get(0);
136-
// return samples.get(sampleIndex).position.getOne();
137-
// }
138-
139121
public double getLength() {
140122
List<ArrayRealVector> sortedSamplePositions = ProcessD.getSortedSamplePositions(this);
141123

@@ -157,11 +139,9 @@ public void recalcConf() {
157139
}
158140
}
159141

160-
161142
// must be called before removal in process-D
162143
public void cleanup() {
163144
for(ProcessA.Sample iSample : samples)
164145
iSample.refCount--;
165146
}
166-
167147
}

src/main/java/ptrman/levels/retina/ProcessD.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,6 @@ public List<ProcessA.Sample> selectRandomSamples(List<ProcessA.Sample> source) {
140140
public void sampleNewByRandom() {
141141
final double maxLength = Math.sqrt(squaredDistance(new double[]{imageSize.x, imageSize.y})); // max length of line
142142

143-
List<LineDetectorWithMultiplePoints> multiplePointsLineDetector = new ArrayList<>();
144-
145143
final List<ProcessA.Sample> workingSamples = inputSampleConnector.getWorkspace();
146144

147145
// filter valid points

src/main/java/ptrman/misc/SetUtility.java

Lines changed: 0 additions & 40 deletions
This file was deleted.

0 commit comments

Comments
 (0)