Skip to content

Commit

Permalink
#4813 removing out of date comments
Browse files Browse the repository at this point in the history
  • Loading branch information
sekmiller committed Jul 30, 2020
1 parent 0e99e15 commit d0bfd3d
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/main/java/edu/harvard/iq/dataverse/api/Files.java
Original file line number Diff line number Diff line change
Expand Up @@ -372,19 +372,6 @@ public Response updateFileMetadata(@FormDataParam("jsonData") String jsonData,
List<FileMetadata> fmdList = editVersion.getFileMetadatas();
for(FileMetadata testFmd : fmdList) {
DataFile daf = testFmd.getDataFile();
// Not sure I understand why we are comparing the checksum values here,
// and not the DataFile ids. (probably because this code was
// copy-and-pasted from somewhere where it was potentially operating
// on *new* datafiles, that haven't been saved in the database yet;
// but it should never be the case in the context of this API)
// -- L.A. Mar. 2020
//SEK 5/2020 - we can't use checksum because it
//is no longer guaranteed to be unique.
/*
if(daf.getChecksumType().equals(df.getChecksumType())
&& daf.getChecksumValue().equals(df.getChecksumValue())) {
upFmd = testFmd;
}*/
if(daf.equals(df)){
upFmd = testFmd;
break;
Expand Down

0 comments on commit d0bfd3d

Please sign in to comment.