Skip to content

Commit d0bfd3d

Browse files
committed
#4813 removing out of date comments
1 parent 0e99e15 commit d0bfd3d

1 file changed

Lines changed: 0 additions & 13 deletions

File tree

  • src/main/java/edu/harvard/iq/dataverse/api

src/main/java/edu/harvard/iq/dataverse/api/Files.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -372,19 +372,6 @@ public Response updateFileMetadata(@FormDataParam("jsonData") String jsonData,
372372
List<FileMetadata> fmdList = editVersion.getFileMetadatas();
373373
for(FileMetadata testFmd : fmdList) {
374374
DataFile daf = testFmd.getDataFile();
375-
// Not sure I understand why we are comparing the checksum values here,
376-
// and not the DataFile ids. (probably because this code was
377-
// copy-and-pasted from somewhere where it was potentially operating
378-
// on *new* datafiles, that haven't been saved in the database yet;
379-
// but it should never be the case in the context of this API)
380-
// -- L.A. Mar. 2020
381-
//SEK 5/2020 - we can't use checksum because it
382-
//is no longer guaranteed to be unique.
383-
/*
384-
if(daf.getChecksumType().equals(df.getChecksumType())
385-
&& daf.getChecksumValue().equals(df.getChecksumValue())) {
386-
upFmd = testFmd;
387-
}*/
388375
if(daf.equals(df)){
389376
upFmd = testFmd;
390377
break;

0 commit comments

Comments
 (0)