code cleanup

This commit is contained in:
anhefti 2023-06-01 16:02:24 +02:00
parent 3dec2f3372
commit 9d7ef0452f

View file

@ -30,8 +30,6 @@ import org.eclipse.swt.widgets.TableItem;
import org.eclipse.swt.widgets.Text; import org.eclipse.swt.widgets.Text;
import org.eclipse.swt.widgets.Tree; import org.eclipse.swt.widgets.Tree;
import org.eclipse.swt.widgets.TreeItem; import org.eclipse.swt.widgets.TreeItem;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
@ -51,8 +49,6 @@ import ch.ethz.seb.sebserver.gui.widget.Selection;
@GuiProfile @GuiProfile
public final class PolyglotPageServiceImpl implements PolyglotPageService { public final class PolyglotPageServiceImpl implements PolyglotPageService {
private static final Logger log = LoggerFactory.getLogger(PolyglotPageServiceImpl.class);
private final I18nSupport i18nSupport; private final I18nSupport i18nSupport;
public PolyglotPageServiceImpl(final I18nSupport i18nSupport) { public PolyglotPageServiceImpl(final I18nSupport i18nSupport) {
@ -97,11 +93,7 @@ public final class PolyglotPageServiceImpl implements PolyglotPageService {
@Override @Override
public void injectI18n(final Label label, final LocTextKey locTextKey) { public void injectI18n(final Label label, final LocTextKey locTextKey) {
try {
injectI18n(label, locTextKey, null); injectI18n(label, locTextKey, null);
} catch (final Exception e) {
log.error("Failed to injectI18n: {}", e.getMessage());
}
} }
@Override @Override