diff --git a/library/pom.xml b/library/pom.xml index 90d6e18..221abcf 100644 --- a/library/pom.xml +++ b/library/pom.xml @@ -24,11 +24,6 @@ robolectric test - - org.slf4j - slf4j-simple - test - @@ -40,12 +35,6 @@ com.google.android support-v4 - - - - org.slf4j - slf4j-api - diff --git a/library/src/main/java/de/psdev/licensesdialog/licenses/License.java b/library/src/main/java/de/psdev/licensesdialog/licenses/License.java index b4f29fa..d088d26 100644 --- a/library/src/main/java/de/psdev/licensesdialog/licenses/License.java +++ b/library/src/main/java/de/psdev/licensesdialog/licenses/License.java @@ -17,8 +17,6 @@ package de.psdev.licensesdialog.licenses; import android.content.Context; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; import java.io.BufferedReader; import java.io.IOException; @@ -27,7 +25,6 @@ import java.io.Serializable; public abstract class License implements Serializable { - private static final Logger LOG = LoggerFactory.getLogger(License.class); private static final long serialVersionUID = 3100331505738956523L; @@ -53,8 +50,7 @@ protected String getContent(final Context context, final int contentResourceId) } throw new IOException("Error opening license file."); } catch (final IOException e) { - LOG.error(e.getMessage(), e); - return ""; + throw new IllegalStateException(e); } finally { if (reader != null) { try { diff --git a/pom.xml b/pom.xml index 268558c..092994f 100644 --- a/pom.xml +++ b/pom.xml @@ -102,12 +102,6 @@ ${robolectric.version} test - - org.slf4j - slf4j-simple - ${slf4j-api.version} - test - @@ -120,13 +114,6 @@ support-v4 ${android-support.version} - - - - org.slf4j - slf4j-api - ${slf4j-api.version} -