Skip to content

Commit

Permalink
remove duplicated and unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
auumgn committed Jul 24, 2024
1 parent 7eee4c3 commit 73e9a77
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions orcid-core/src/main/java/org/orcid/pojo/ajaxForm/Email.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,22 +44,6 @@ public static Email valueOf(org.orcid.jaxb.model.v3.release.record.Email e) {
email.setVerified(e.isVerified());
email.setVisibility(e.getVisibility());

if (e.getCreatedDate() != null) {
Date createdDate = new Date();
createdDate.setYear(String.valueOf(e.getCreatedDate().getValue().getYear()));
createdDate.setMonth(String.valueOf(e.getCreatedDate().getValue().getMonth()));
createdDate.setDay(String.valueOf(e.getCreatedDate().getValue().getDay()));
email.setCreatedDate(createdDate);
}

if (e.getLastModifiedDate() != null) {
Date lastModifiedDate = new Date();
lastModifiedDate.setYear(String.valueOf(e.getLastModifiedDate().getValue().getYear()));
lastModifiedDate.setMonth(String.valueOf(e.getLastModifiedDate().getValue().getMonth()));
lastModifiedDate.setDay(String.valueOf(e.getLastModifiedDate().getValue().getDay()));
email.setLastModified(lastModifiedDate);
}

if (e.getSource().getSourceName() != null) {
email.setSourceName(e.getSource().getSourceName().getContent());
}
Expand Down Expand Up @@ -90,7 +74,6 @@ public static Email valueOf(org.orcid.jaxb.model.v3.release.record.Email e) {
lastModifiedDate.setYear(String.valueOf(e.getLastModifiedDate().getValue().getYear()));
lastModifiedDate.setMonth(String.valueOf(e.getLastModifiedDate().getValue().getMonth()));
lastModifiedDate.setDay(String.valueOf(e.getLastModifiedDate().getValue().getDay()));
lastModifiedDate.setTimestamp(e.getLastModifiedDate().getValue().toGregorianCalendar().getTimeInMillis());
email.setLastModified(lastModifiedDate);
}
}
Expand Down

0 comments on commit 73e9a77

Please sign in to comment.