From 111dff5492e456cf5d54c96e5761f2ba58386630 Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 3 Jun 2022 08:01:59 +0200 Subject: [PATCH] Cleanup --- app/src/main/java/eu/faircode/email/ContactInfo.java | 2 -- app/src/main/java/eu/faircode/email/EntityCertificate.java | 1 - app/src/main/java/eu/faircode/email/FragmentAnswer.java | 1 - app/src/main/java/eu/faircode/email/FragmentCompose.java | 1 - .../main/java/eu/faircode/email/FragmentDialogInsertLink.java | 4 ---- app/src/main/java/eu/faircode/email/WidgetSync.java | 1 - 6 files changed, 10 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/ContactInfo.java b/app/src/main/java/eu/faircode/email/ContactInfo.java index 801f31bad8..eb60d207a6 100644 --- a/app/src/main/java/eu/faircode/email/ContactInfo.java +++ b/app/src/main/java/eu/faircode/email/ContactInfo.java @@ -35,7 +35,6 @@ import android.net.Uri; import android.provider.ContactsContract; import android.text.TextUtils; import android.util.Pair; -import android.util.Xml; import androidx.annotation.NonNull; import androidx.preference.PreferenceManager; @@ -45,7 +44,6 @@ import org.json.JSONObject; import org.jsoup.nodes.Document; import org.jsoup.nodes.Element; import org.jsoup.select.Elements; -import org.xmlpull.v1.XmlPullParser; import java.io.BufferedOutputStream; import java.io.EOFException; diff --git a/app/src/main/java/eu/faircode/email/EntityCertificate.java b/app/src/main/java/eu/faircode/email/EntityCertificate.java index 150fac0734..063005c0d4 100644 --- a/app/src/main/java/eu/faircode/email/EntityCertificate.java +++ b/app/src/main/java/eu/faircode/email/EntityCertificate.java @@ -28,7 +28,6 @@ import androidx.room.Index; import androidx.room.PrimaryKey; import org.bouncycastle.asn1.ASN1Encodable; -import org.bouncycastle.asn1.DERApplicationSpecific; import org.bouncycastle.asn1.DEROctetString; import org.bouncycastle.asn1.x500.AttributeTypeAndValue; import org.bouncycastle.asn1.x500.RDN; diff --git a/app/src/main/java/eu/faircode/email/FragmentAnswer.java b/app/src/main/java/eu/faircode/email/FragmentAnswer.java index 913bb85365..4d5791db9d 100644 --- a/app/src/main/java/eu/faircode/email/FragmentAnswer.java +++ b/app/src/main/java/eu/faircode/email/FragmentAnswer.java @@ -21,7 +21,6 @@ package eu.faircode.email; import static android.app.Activity.RESULT_OK; -import android.content.ClipboardManager; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; diff --git a/app/src/main/java/eu/faircode/email/FragmentCompose.java b/app/src/main/java/eu/faircode/email/FragmentCompose.java index 5dc2a18b93..c30d9683c2 100644 --- a/app/src/main/java/eu/faircode/email/FragmentCompose.java +++ b/app/src/main/java/eu/faircode/email/FragmentCompose.java @@ -230,7 +230,6 @@ import biweekly.Biweekly; import biweekly.ICalendar; import biweekly.component.VEvent; import biweekly.property.Organizer; -import io.noties.markwon.core.spans.LinkSpan; public class FragmentCompose extends FragmentBase { private enum State {NONE, LOADING, LOADED} diff --git a/app/src/main/java/eu/faircode/email/FragmentDialogInsertLink.java b/app/src/main/java/eu/faircode/email/FragmentDialogInsertLink.java index 27536f336c..5730034876 100644 --- a/app/src/main/java/eu/faircode/email/FragmentDialogInsertLink.java +++ b/app/src/main/java/eu/faircode/email/FragmentDialogInsertLink.java @@ -45,16 +45,12 @@ import androidx.appcompat.app.AlertDialog; import org.jsoup.nodes.Document; import org.jsoup.nodes.Element; -import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; -import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.URL; import java.nio.charset.StandardCharsets; -import javax.net.ssl.HttpsURLConnection; - public class FragmentDialogInsertLink extends FragmentDialogBase { private EditText etLink; private EditText etTitle; diff --git a/app/src/main/java/eu/faircode/email/WidgetSync.java b/app/src/main/java/eu/faircode/email/WidgetSync.java index 93f3b5927d..ed747862da 100644 --- a/app/src/main/java/eu/faircode/email/WidgetSync.java +++ b/app/src/main/java/eu/faircode/email/WidgetSync.java @@ -26,7 +26,6 @@ import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; -import android.content.res.ColorStateList; import android.graphics.Color; import android.os.Build; import android.widget.RemoteViews;