Skip to content

Commit

Permalink
Remove unused methods
Browse files Browse the repository at this point in the history
Signed-off-by: upendrakumbham <[email protected]>
  • Loading branch information
upendrakumbham committed Dec 4, 2024
1 parent cade7ec commit 1ad1bcd
Showing 1 changed file with 0 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,12 +178,6 @@ public JsonArray getAnalysisMethods(String experimentAccession) {
return result;
}

public JsonArray getPerplexities(String experimentAccession) {
var perplexityArray = new JsonArray();
tsnePlotSettingsService.getAvailablePerplexities(experimentAccession).forEach(perplexityArray::add);
return perplexityArray;
}

public JsonArray getMetadata(String experimentAccession) {
var metadataArray = new JsonArray();
cellMetadataService
Expand Down Expand Up @@ -300,19 +294,4 @@ private String getValueAsString(JsonObject jsonObject) {
return "";
}
}

private boolean containsValue(JsonObject jsonObject, Object value) {
var key = "value";

if (jsonObject.has(key)) {
try {
String jsonValue = jsonObject.get(key).getAsString();
return value != null && value.toString().equals(jsonValue);
} catch (ClassCastException e) {
// Handle unexpected types gracefully
System.err.println("Invalid value type for key '" + key + "': " + jsonObject);
}
}
return false;
}
}

0 comments on commit 1ad1bcd

Please sign in to comment.