Commit b45d514b8332a893a076edb455d76c00d65dcc99
1 parent
5b1cc8ac
Removed unused method for getting supported checksum algorithms
Showing
2 changed files
with
0 additions
and
13 deletions
... | ... | @@ -33,8 +33,6 @@ public interface FirmwareService { |
33 | 33 | |
34 | 34 | Firmware saveFirmware(Firmware firmware); |
35 | 35 | |
36 | - PageData<String> getSupportedChecksumAlgorithms(PageLink pageLink); | |
37 | - | |
38 | 36 | String generateChecksum(ChecksumAlgorithm checksumAlgorithm, ByteBuffer data) throws ThingsboardException; |
39 | 37 | |
40 | 38 | Firmware findFirmwareById(TenantId tenantId, FirmwareId firmwareId); | ... | ... |
... | ... | @@ -149,17 +149,6 @@ public class BaseFirmwareService implements FirmwareService { |
149 | 149 | } |
150 | 150 | |
151 | 151 | @Override |
152 | - public PageData<String> getSupportedChecksumAlgorithms(PageLink pageLink) { | |
153 | - List<String> methodNames = new ArrayList<>(); | |
154 | - Method[] hashingMethods = Hashing.class.getMethods(); | |
155 | - Arrays.stream(hashingMethods).forEach(method -> { | |
156 | - methodNames.add(method.getName()); | |
157 | - }); | |
158 | - return new PageData<>(methodNames, 1, methodNames.size(), false); | |
159 | - } | |
160 | - | |
161 | - | |
162 | - @Override | |
163 | 152 | public Firmware findFirmwareById(TenantId tenantId, FirmwareId firmwareId) { |
164 | 153 | log.trace("Executing findFirmwareById [{}]", firmwareId); |
165 | 154 | validateId(firmwareId, INCORRECT_FIRMWARE_ID + firmwareId); | ... | ... |