diff --git a/photon-core/src/main/java/org/photonvision/vision/processes/VisionSourceManager.java b/photon-core/src/main/java/org/photonvision/vision/processes/VisionSourceManager.java index 468d5c618e..4ea5185790 100644 --- a/photon-core/src/main/java/org/photonvision/vision/processes/VisionSourceManager.java +++ b/photon-core/src/main/java/org/photonvision/vision/processes/VisionSourceManager.java @@ -211,7 +211,6 @@ private List matchUSBCameras( if (config.otherPaths.length == 0) { logger.debug("No valid path-by-id found for config with name " + config.baseName); } else { - // attempt matching by path and basename logger.debug( "Trying to find a match for loaded camera " @@ -453,7 +452,6 @@ private boolean containsName( * @return If the list of cameras contains the unique name. */ private boolean containsName(final String uniqueName) { - return VisionModuleManager.getInstance().getModules().stream() .anyMatch(camera -> camera.visionSource.cameraConfiguration.uniqueName.equals(uniqueName)); }