Removed unused method for getting supported checksum algorithms

This commit is contained in:
zbeacon 2021-04-30 08:53:00 +03:00
parent 5b1cc8ac33
commit b45d514b83
2 changed files with 0 additions and 13 deletions

View File

@ -33,8 +33,6 @@ public interface FirmwareService {
Firmware saveFirmware(Firmware firmware);
PageData<String> getSupportedChecksumAlgorithms(PageLink pageLink);
String generateChecksum(ChecksumAlgorithm checksumAlgorithm, ByteBuffer data) throws ThingsboardException;
Firmware findFirmwareById(TenantId tenantId, FirmwareId firmwareId);

View File

@ -148,17 +148,6 @@ public class BaseFirmwareService implements FirmwareService {
return hashFunction.hashBytes(data.array()).toString();
}
@Override
public PageData<String> getSupportedChecksumAlgorithms(PageLink pageLink) {
List<String> methodNames = new ArrayList<>();
Method[] hashingMethods = Hashing.class.getMethods();
Arrays.stream(hashingMethods).forEach(method -> {
methodNames.add(method.getName());
});
return new PageData<>(methodNames, 1, methodNames.size(), false);
}
@Override
public Firmware findFirmwareById(TenantId tenantId, FirmwareId firmwareId) {
log.trace("Executing findFirmwareById [{}]", firmwareId);