Skip to content

Commit 2672908

Browse files
committed
Remove unused getLogger overload
1 parent ad133cd commit 2672908

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

src/main/java/org/fluentd/logger/FluentLoggerFactory.java

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -81,30 +81,6 @@ public synchronized FluentLogger getLogger(String tagPrefix, String host, int po
8181
return logger;
8282
}
8383

84-
public FluentLogger getLogger(String tagPrefix, String host, int port, int timeout, int bufferCapacity,
85-
Sender sender) {
86-
if (sender == null) {
87-
return getLogger(tagPrefix, host, port, timeout, bufferCapacity);
88-
}
89-
String key = String.format("%s_%s_%d_%d_%d_%s", new Object[] { tagPrefix, host, port, timeout, bufferCapacity, sender.getName() });
90-
if (loggers.containsValue(key)) {
91-
for (Map.Entry<FluentLogger, String> entry : loggers.entrySet()) {
92-
if (entry.getValue().equals(key)) {
93-
FluentLogger found = entry.getKey();
94-
if(found != null) {
95-
return found;
96-
}
97-
break;
98-
}
99-
}
100-
return getLogger(tagPrefix, host, port, timeout, bufferCapacity);
101-
} else {
102-
FluentLogger logger = new FluentLogger(tagPrefix, sender);
103-
loggers.put(logger, key);
104-
return logger;
105-
}
106-
}
107-
10884
@SuppressWarnings("unchecked")
10985
private Sender createSenderInstance(final String className, final Object[] params) throws ClassNotFoundException,
11086
SecurityException, NoSuchMethodException, IllegalArgumentException, InstantiationException,

0 commit comments

Comments
 (0)