Skip to content

Commit

Permalink
Remove usage reporter classes and tests (#343)
Browse files Browse the repository at this point in the history
* Remove usage reporter classes and tests

* Use Mockito 4.11.0

Wrapper tests fail to run on older versions of Mockito

* Remove BoneJ Usage (Legacy) menu item

* Rename test methods to better represent their action
  • Loading branch information
mdoube authored May 14, 2024
1 parent e95fdd7 commit 0ef2cd0
Show file tree
Hide file tree
Showing 33 changed files with 6 additions and 1,047 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ public void run(final String arg) {
ri.setResultInRow(imp, "Connectivity", connectivity);
ri.setResultInRow(imp, "Conn.D (" + imp.getCalibration().getUnit() + "^-3)", connDensity);
ri.updateTable();
UsageReporter.reportEvent(this).send();
return;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ public void run(final String arg) {
imp.setStack(null, stack);

imp.show();
UsageReporter.reportEvent(this).send();
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ public void run(final String arg) {
IJ.error("Can't calibrate image\n" + e.getMessage());
return;
}
UsageReporter.reportEvent(this).send();
}

private static void scanco(final ImagePlus imp) throws IllegalArgumentException {
Expand Down
1 change: 0 additions & 1 deletion Legacy/bonej/src/main/java/org/bonej/plugins/Moments.java
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,6 @@ public void run(final String arg) {

if (doAxes3D) show3DAxes(imp, E.getV(), centroid, startSlice, endSlice, min,
max);
UsageReporter.reportEvent(this).send();
}

/**
Expand Down
2 changes: 0 additions & 2 deletions Legacy/bonej/src/main/java/org/bonej/plugins/Orienteer.java
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,6 @@ public Orienteer() {
if (WindowManager.getImageCount() == 0) return;
final ImagePlus imp = WindowManager.getCurrentImage();
setup(imp);

UsageReporter.reportEvent(this).send();
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,6 @@ public void run(final String arg) {
}
IJ.showProgress(1.0);
IJ.showStatus("Particle Analysis Complete");
UsageReporter.reportEvent(this).send();
}

/**
Expand Down
1 change: 0 additions & 1 deletion Legacy/bonej/src/main/java/org/bonej/plugins/Purify.java
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ public void run(final String arg) {
if (showPerformance) {
showResults(duration, imp);
}
UsageReporter.reportEvent(this).send();
}


Expand Down
83 changes: 0 additions & 83 deletions Legacy/bonej/src/main/java/org/bonej/plugins/ReporterOptions.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,6 @@ else if (roi.getType() != Roi.RECTANGLE) {
if (do3DAnnotation) {
show3DAxes(imp);
}
UsageReporter.reportEvent(this).send();
}

private void initOrientationCheckBox(final GenericDialog gd) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ public void run(final String arg) {
if (doRoiMan) {
addToRoiManager(imp, roiMan, sphereDim, clearRois);
}
UsageReporter.reportEvent(this).send();
}

/**
Expand Down
Loading

0 comments on commit 0ef2cd0

Please sign in to comment.