Skip to content

Commit

Permalink
Delete unused loggers.
Browse files Browse the repository at this point in the history
  • Loading branch information
dkocher committed Nov 28, 2024
1 parent afc355b commit a2a33bb
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,7 @@
import ch.cyberduck.core.proxy.ProxyFactory;
import ch.cyberduck.core.threading.CancelCallback;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

public class AnonymousConnectionService implements ConnectionService {
private static final Logger log = LogManager.getLogger(AnonymousConnectionService.class);

@Override
public boolean check(final Session<?> session, final CancelCallback callback) throws BackgroundException {
Expand All @@ -38,7 +34,7 @@ public boolean check(final Session<?> session, final CancelCallback callback) th
@Override
public void connect(final Session<?> session, final CancelCallback cancel) throws BackgroundException {
session.open(ProxyFactory.get(),
new DisabledHostKeyCallback(), new DisabledLoginCallback(), cancel);
new DisabledHostKeyCallback(), new DisabledLoginCallback(), cancel);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,7 @@
* Bug fixes, suggestions and comments should be sent to feedback@cyberduck.ch
*/

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

public class CertificateStoreFactory extends Factory<CertificateStore> {
private static final Logger log = LogManager.getLogger(CertificateStoreFactory.class);

private CertificateStoreFactory() {
super("factory.certificatestore.class");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,7 @@

import ch.cyberduck.core.Local;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

public class DonationKey extends DictionaryLicense implements LicenseVerifier {
private static final Logger log = LogManager.getLogger(DonationKey.class);

/**
* @param file The license key file.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,7 @@

import ch.cyberduck.core.Local;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

public class DonationKeyFactory extends LicenseFactory {
private static final Logger log = LogManager.getLogger(DonationKeyFactory.class);

@Override
protected License open(final Local file) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,9 @@
import ch.cyberduck.core.LocaleFactory;
import ch.cyberduck.core.preferences.PreferencesFactory;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

import java.util.regex.Pattern;

public class ReceiptFactory extends LicenseFactory {
private static final Logger log = LogManager.getLogger(ReceiptFactory.class);

public ReceiptFactory() {
super(new Local[]{LocalFactory.get(PreferencesFactory.get().getProperty("application.receipt.path"))},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,8 @@
import org.apache.http.HttpResponse;
import org.apache.http.client.ServiceUnavailableRetryStrategy;
import org.apache.http.protocol.HttpContext;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

public class DisabledServiceUnavailableRetryStrategy implements ServiceUnavailableRetryStrategy {
private static final Logger log = LogManager.getLogger(DisabledServiceUnavailableRetryStrategy.class);

@Override
public boolean retryRequest(final HttpResponse response, final int executionCount, final HttpContext context) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,12 @@
import ch.cyberduck.core.exception.LocalAccessDeniedException;
import ch.cyberduck.core.local.features.Directory;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.text.MessageFormat;

public class DefaultLocalDirectoryFeature implements Directory {
private static final Logger log = LogManager.getLogger(DefaultLocalDirectoryFeature.class);

@Override
public void mkdir(final Local file) throws AccessDeniedException {
Expand All @@ -39,7 +35,7 @@ public void mkdir(final Local file) throws AccessDeniedException {
}
catch(IOException e) {
throw new LocalAccessDeniedException(MessageFormat.format(LocaleFactory.localizedString(
"Cannot create folder {0}", "Error"), file.getName()), e);
"Cannot create folder {0}", "Error"), file.getName()), e);
}
}
}
3 changes: 0 additions & 3 deletions core/src/main/java/ch/cyberduck/core/local/TildeExpander.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,8 @@
import ch.cyberduck.core.preferences.PreferencesFactory;

import org.apache.commons.lang3.StringUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

public class TildeExpander {
private static final Logger log = LogManager.getLogger(TildeExpander.class);

private final Preferences preferences = PreferencesFactory.get();

Expand Down

0 comments on commit a2a33bb

Please sign in to comment.