Skip to content

Commit

Permalink
Remove unused code (#62)
Browse files Browse the repository at this point in the history
* Remove unused code
  • Loading branch information
elharo authored Nov 23, 2024
1 parent 8612f43 commit 215b8ea
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,6 @@
public class ProjectJavamailMailSender extends AbstractMailSender {
private static final String SSL_FACTORY = "javax.net.ssl.SSLSocketFactory";

// ----------------------------------------------------------------------
//
// ----------------------------------------------------------------------

private Properties userProperties;

private Properties props;

// ----------------------------------------------------------------------
Expand Down Expand Up @@ -86,16 +80,6 @@ public void initialize() {
if (isTlsEnabled()) {
props.put("mail.smtp.starttls.enable", "true");
}

if (userProperties != null) {
for (Object o : userProperties.keySet()) {
String key = (String) o;

String value = userProperties.getProperty(key);

props.put(key, value);
}
}
}

// ----------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -295,12 +295,6 @@ public void executeReport(Locale locale) throws MavenReportException {
copyStaticResources();
}

private void failIfUsingDeprecatedParameter(Object value, String name, String message) throws MavenReportException {
if (value != null) {
throw new MavenReportException("You are using the old parameter '" + name + "'. " + message);
}
}

@Override
public String getDescription(Locale locale) {
return getBundle(locale).getString("report.issues.description");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,9 @@ public boolean isSupportedFeedType(final String type) {
/**
* A List of supported feed types.
*
* @return a List of supported feed types.
* @return a List of supported feed types
* @see #isSupportedFeedType(java.lang.String)
*/
@SuppressWarnings("unchecked")
public List<String> getSupportedFeedTypes() {
return feed.getSupportedFeedTypes();
}
Expand Down

0 comments on commit 215b8ea

Please sign in to comment.