Skip to content

Commit

Permalink
LicensesDialog-24 Remove slf4j dependency
Browse files Browse the repository at this point in the history
- fixed #24
  • Loading branch information
hameno committed Apr 28, 2014
1 parent 2471748 commit c603357
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 29 deletions.
11 changes: 0 additions & 11 deletions library/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@
<artifactId>robolectric</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<scope>test</scope>
</dependency>

<!-- Android -->
<dependency>
Expand All @@ -40,12 +35,6 @@
<groupId>com.google.android</groupId>
<artifactId>support-v4</artifactId>
</dependency>

<!-- Logging -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>
</dependencies>

<build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;

Expand All @@ -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 {
Expand Down
13 changes: 0 additions & 13 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,6 @@
<version>${robolectric.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>${slf4j-api.version}</version>
<scope>test</scope>
</dependency>

<!-- Android -->
<dependency>
Expand All @@ -120,13 +114,6 @@
<artifactId>support-v4</artifactId>
<version>${android-support.version}</version>
</dependency>

<!-- Logging -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4j-api.version}</version>
</dependency>
</dependencies>
</dependencyManagement>

Expand Down

0 comments on commit c603357

Please sign in to comment.