Skip to content

Commit

Permalink
refactor: removed unnecessary class and members
Browse files Browse the repository at this point in the history
  • Loading branch information
PtrMan committed Nov 21, 2019
1 parent 621f063 commit 3e5adda
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 62 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,12 @@
public class LineDetectorWithMultiplePoints {
public List<ProcessA.Sample> samples = new ArrayList<>(); // actual samples which are "included" in the line

// variable for the line drawing in the acceleration structure
//public ArrayRealVector spatialAccelerationLineDirection; // can be null
//public double spatialAccelerationLineLength; // can be null
//public Vector2d<Integer> spatialAccelerationCenterPosition;

public double cachedConf = 0.0; // cached confidence of this line detector

public double m, n;

public double mse = 0.0f;

//public boolean isLocked = false; // has the detector received enough activation so it stays?

public boolean isHardened = false; // has the detector received enough activation so it got hardened?

public int commonObjectId = -1;
Expand Down Expand Up @@ -81,10 +74,6 @@ public double calcActivation() {
return calcActivation(x);
}

public boolean isCommonObjectIdValid() {
return commonObjectId != -1;
}

@Deprecated public ArrayRealVector projectPointOntoLine(IntIntPair point) {
return projectPointOntoLine(real(point));
}
Expand Down Expand Up @@ -129,13 +118,6 @@ public boolean isYAxisSingularity() {
return Double.isInfinite(m);
}

// public double getHorizontalOffset(List<ProcessA.Sample> samples) {
// Assert.Assert(isYAxisSingularity(), "");
//
// int sampleIndex = integratedSampleIndices.get(0);
// return samples.get(sampleIndex).position.getOne();
// }

public double getLength() {
List<ArrayRealVector> sortedSamplePositions = ProcessD.getSortedSamplePositions(this);

Expand All @@ -157,11 +139,9 @@ public void recalcConf() {
}
}


// must be called before removal in process-D
public void cleanup() {
for(ProcessA.Sample iSample : samples)
iSample.refCount--;
}

}
2 changes: 0 additions & 2 deletions src/main/java/ptrman/levels/retina/ProcessD.java
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,6 @@ public List<ProcessA.Sample> selectRandomSamples(List<ProcessA.Sample> source) {
public void sampleNewByRandom() {
final double maxLength = Math.sqrt(squaredDistance(new double[]{imageSize.x, imageSize.y})); // max length of line

List<LineDetectorWithMultiplePoints> multiplePointsLineDetector = new ArrayList<>();

final List<ProcessA.Sample> workingSamples = inputSampleConnector.getWorkspace();

// filter valid points
Expand Down
40 changes: 0 additions & 40 deletions src/main/java/ptrman/misc/SetUtility.java

This file was deleted.

0 comments on commit 3e5adda

Please sign in to comment.