Remove unused imports

This commit is contained in:
Joshua Nelson 2017-11-03 18:23:27 -04:00
parent bfc2dcba35
commit a6388ca84f
No known key found for this signature in database
GPG key ID: E655823D8D8B1088
55 changed files with 0 additions and 83 deletions

View file

@ -1,14 +1,6 @@
package com.fsck.k9.mail;
import com.fsck.k9.mail.ServerSettings.Type;
import com.fsck.k9.mail.transport.smtp.SmtpTransport;
import com.fsck.k9.mail.transport.WebDavTransport;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.net.URLEncoder;
public abstract class Transport {
protected static final int SOCKET_CONNECT_TIMEOUT = 10000;

View file

@ -6,7 +6,6 @@ import java.nio.charset.Charset;
import java.util.BitSet;
import org.apache.james.mime4j.Charsets;
import org.apache.james.mime4j.util.CharsetUtil;
/**
* Static methods for encoding header field values. This includes encoded-words

View file

@ -4,7 +4,6 @@ package com.fsck.k9.mail.transport;
import com.fsck.k9.mail.K9MailLib;
import com.fsck.k9.mail.Message;
import com.fsck.k9.mail.MessagingException;
import com.fsck.k9.mail.ServerSettings;
import com.fsck.k9.mail.Transport;
import com.fsck.k9.mail.store.StoreConfig;
import com.fsck.k9.mail.store.webdav.WebDavHttpClient;

View file

@ -23,7 +23,6 @@ import com.fsck.k9.mail.Multipart;
import org.junit.runner.RunWith;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
@RunWith(K9LibRobolectricTestRunner.class)

View file

@ -2,7 +2,6 @@ package com.fsck.k9;
import android.content.Context;
import android.support.annotation.VisibleForTesting;
public class Globals {

View file

@ -8,8 +8,6 @@ import timber.log.Timber;
import android.widget.ArrayAdapter;
import android.widget.Filter;
import com.fsck.k9.K9;
/**
* Filter to search for occurrences of the search-expression in any place of the
* folder-name instead of doing just a prefix-search.

View file

@ -6,8 +6,6 @@ import java.util.List;
import timber.log.Timber;
import com.fsck.k9.K9;
public class MessageReferenceHelper {
public static List<MessageReference> toMessageReferenceList(List<String> messageReferenceStrings) {

View file

@ -9,7 +9,6 @@ import android.content.AsyncTaskLoader;
import android.content.Context;
import timber.log.Timber;
import com.fsck.k9.K9;
import com.fsck.k9.activity.misc.Attachment;
import com.fsck.k9.activity.misc.Attachment.LoadingState;

View file

@ -10,7 +10,6 @@ import android.net.Uri;
import android.provider.OpenableColumns;
import timber.log.Timber;
import com.fsck.k9.K9;
import com.fsck.k9.activity.misc.Attachment;
import com.fsck.k9.activity.misc.Attachment.LoadingState;
import com.fsck.k9.mail.internet.MimeUtility;

View file

@ -9,7 +9,6 @@ import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Toast;
import com.fsck.k9.Account;
import com.fsck.k9.K9;
import com.fsck.k9.Preferences;
import com.fsck.k9.R;
import com.fsck.k9.activity.K9Activity;

View file

@ -36,7 +36,6 @@ import com.fsck.k9.mail.AuthType;
import com.fsck.k9.mail.ConnectionSecurity;
import com.fsck.k9.mail.ServerSettings;
import com.fsck.k9.mail.ServerSettings.Type;
import com.fsck.k9.mail.Transport;
import com.fsck.k9.mail.TransportUris;
import com.fsck.k9.view.ClientCertificateSpinner;
import com.fsck.k9.view.ClientCertificateSpinner.OnClientCertificateChangedListener;

View file

@ -30,7 +30,6 @@ import android.os.Bundle;
import android.os.Parcelable;
import android.preference.DialogPreference;
import android.support.annotation.ArrayRes;
import android.support.annotation.StringRes;
import android.util.AttributeSet;
import android.view.View;
import android.widget.SeekBar;

View file

@ -7,7 +7,6 @@ import java.io.IOException;
import android.content.Context;
import timber.log.Timber;
import com.fsck.k9.K9;
import com.fsck.k9.helper.FileHelper;

View file

@ -10,8 +10,6 @@ import android.content.DialogInterface.OnClickListener;
import android.os.Bundle;
import timber.log.Timber;
import com.fsck.k9.K9;
public class ConfirmationDialogFragment extends DialogFragment implements OnClickListener,
OnCancelListener {
private ConfirmationDialogFragmentListener mListener;

View file

@ -9,7 +9,6 @@ import java.util.Locale;
import timber.log.Timber;
import com.fsck.k9.K9;
import org.apache.commons.io.IOUtils;

View file

@ -16,13 +16,11 @@ import timber.log.Timber;
import android.widget.EditText;
import android.widget.TextView;
import com.fsck.k9.K9;
import com.fsck.k9.ui.ContactBadge;
import com.fsck.k9.mail.Address;
import org.apache.james.mime4j.util.MimeUtil;
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Matcher;

View file

@ -12,7 +12,6 @@ import android.support.annotation.VisibleForTesting;
import android.support.annotation.WorkerThread;
import timber.log.Timber;
import com.fsck.k9.K9;
import com.fsck.k9.mail.Body;
import com.fsck.k9.mail.MessagingException;
import com.fsck.k9.mail.Multipart;

View file

@ -14,7 +14,6 @@ import android.support.annotation.Nullable;
import android.support.annotation.VisibleForTesting;
import timber.log.Timber;
import com.fsck.k9.K9;
import com.fsck.k9.mail.MessagingException;
import com.fsck.k9.mail.internet.RawDataBody;
import com.fsck.k9.mail.internet.SizeAware;

View file

@ -21,7 +21,6 @@ import com.fsck.k9.mail.Message;
import com.fsck.k9.mail.MessagingException;
import com.fsck.k9.mail.Part;
import com.fsck.k9.mail.internet.MessageExtractor;
import com.fsck.k9.mail.internet.MimeUtility;
import com.fsck.k9.mail.internet.Viewable;
import com.fsck.k9.mail.internet.Viewable.Flowed;
import com.fsck.k9.mailstore.CryptoResultAnnotation.CryptoError;

View file

@ -2,7 +2,6 @@ package com.fsck.k9.mailstore;
import java.util.List;
import java.util.Locale;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
@ -10,7 +9,6 @@ import timber.log.Timber;
import com.fsck.k9.Account;
import com.fsck.k9.BuildConfig;
import com.fsck.k9.K9;
import com.fsck.k9.mail.Flag;
import com.fsck.k9.mail.Folder;
import com.fsck.k9.mailstore.migrations.Migrations;
@ -18,8 +16,6 @@ import com.fsck.k9.mailstore.migrations.MigrationsHelper;
import com.fsck.k9.preferences.Storage;
import static com.fsck.k9.mailstore.LocalStore.DB_VERSION;
import static java.lang.String.format;
import static java.util.Locale.US;
class StoreSchemaDefinition implements LockableDatabase.SchemaDefinition {

View file

@ -6,7 +6,6 @@ import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;
import com.fsck.k9.mail.MessagingException;
import com.fsck.k9.mail.internet.SizeAware;

View file

@ -5,8 +5,6 @@ import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteException;
import timber.log.Timber;
import com.fsck.k9.K9;
class MigrationTo35 {
public static void updateRemoveXNoSeenInfoFlag(SQLiteDatabase db) {

View file

@ -5,8 +5,6 @@ import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteException;
import timber.log.Timber;
import com.fsck.k9.K9;
class MigrationTo36 {
public static void addAttachmentsContentIdColumn(SQLiteDatabase db) {

View file

@ -5,8 +5,6 @@ import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteException;
import timber.log.Timber;
import com.fsck.k9.K9;
class MigrationTo37 {
public static void addAttachmentsContentDispositionColumn(SQLiteDatabase db) {

View file

@ -5,8 +5,6 @@ import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteException;
import timber.log.Timber;
import com.fsck.k9.K9;
class MigrationTo39 {
public static void headersPruneOrphans(SQLiteDatabase db) {

View file

@ -5,8 +5,6 @@ import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteException;
import timber.log.Timber;
import com.fsck.k9.K9;
class MigrationTo40 {
public static void addMimeTypeColumn(SQLiteDatabase db) {

View file

@ -7,7 +7,6 @@ import android.database.sqlite.SQLiteException;
import timber.log.Timber;
import com.fsck.k9.Account;
import com.fsck.k9.K9;
import com.fsck.k9.helper.Utility;
import com.fsck.k9.mail.Folder;
import com.fsck.k9.preferences.Storage;

View file

@ -5,14 +5,11 @@ import java.util.List;
import android.content.ContentValues;
import android.content.Context;
import android.content.SharedPreferences;
import android.database.sqlite.SQLiteDatabase;
import timber.log.Timber;
import com.fsck.k9.Account;
import com.fsck.k9.K9;
import com.fsck.k9.R;
import com.fsck.k9.mail.Folder;
import com.fsck.k9.mail.Message;
import com.fsck.k9.mailstore.LocalFolder;
import com.fsck.k9.mailstore.LocalStore;

View file

@ -7,7 +7,6 @@ import timber.log.Timber;
import com.fsck.k9.Account.QuoteStyle;
import com.fsck.k9.Identity;
import com.fsck.k9.K9;
import com.fsck.k9.activity.MessageReference;
import com.fsck.k9.mail.internet.TextBody;
import com.fsck.k9.message.quote.InsertableHtmlContent;

View file

@ -8,7 +8,6 @@ import java.util.StringTokenizer;
import android.net.Uri;
import timber.log.Timber;
import com.fsck.k9.K9;
import com.fsck.k9.mail.filter.Base64;

View file

@ -3,7 +3,6 @@ package com.fsck.k9.message.extractors;
import timber.log.Timber;
import com.fsck.k9.K9;
import com.fsck.k9.mail.Part;
import com.fsck.k9.mail.internet.MessageExtractor;
import com.fsck.k9.mail.internet.MimeUtility;

View file

@ -2,12 +2,9 @@ package com.fsck.k9.message.html;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Locale;
import java.util.Map;
import java.util.Set;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import android.text.Annotation;

View file

@ -8,7 +8,6 @@ import android.content.res.Resources;
import timber.log.Timber;
import com.fsck.k9.Account.QuoteStyle;
import com.fsck.k9.K9;
import com.fsck.k9.R;
import com.fsck.k9.mail.Address;
import com.fsck.k9.mail.Message;

View file

@ -28,7 +28,6 @@ import com.fsck.k9.Account;
import com.fsck.k9.Preferences;
import com.fsck.k9.helper.FileHelper;
import com.fsck.k9.mail.ServerSettings;
import com.fsck.k9.mail.Transport;
import com.fsck.k9.mail.store.RemoteStore;
import com.fsck.k9.preferences.Settings.InvalidSettingValueException;
import com.fsck.k9.preferences.Settings.SettingsDescription;

View file

@ -26,7 +26,6 @@ import com.fsck.k9.Preferences;
import com.fsck.k9.mail.AuthType;
import com.fsck.k9.mail.ConnectionSecurity;
import com.fsck.k9.mail.ServerSettings;
import com.fsck.k9.mail.Transport;
import com.fsck.k9.mail.filter.Base64;
import com.fsck.k9.mail.store.RemoteStore;
import com.fsck.k9.preferences.Settings.InvalidSettingValueException;

View file

@ -17,14 +17,12 @@ import timber.log.Timber;
import com.fsck.k9.Account;
import com.fsck.k9.BuildConfig;
import com.fsck.k9.K9;
import com.fsck.k9.Preferences;
import com.fsck.k9.mail.MessagingException;
import com.fsck.k9.mail.internet.MimeUtility;
import com.fsck.k9.mailstore.LocalStore;
import com.fsck.k9.mailstore.LocalStore.AttachmentInfo;
import org.openintents.openpgp.util.OpenPgpApi.OpenPgpDataSource;
import org.openintents.openpgp.util.ParcelFileDescriptorUtil;
/**

View file

@ -5,7 +5,6 @@ import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Date;
import java.util.Locale;
import android.content.BroadcastReceiver;

View file

@ -5,7 +5,6 @@ import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.Date;
import java.util.Locale;
import android.content.BroadcastReceiver;

View file

@ -1,8 +1,6 @@
package com.fsck.k9.service;
import java.util.Date;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.content.Context;

View file

@ -4,7 +4,6 @@ import android.content.Context;
import android.content.Intent;
import android.os.IBinder;
import timber.log.Timber;
import com.fsck.k9.K9;
public class PushService extends CoreService {
private static String START_SERVICE = "com.fsck.k9.service.PushService.startService";

View file

@ -7,7 +7,6 @@ import android.os.Bundle;
import timber.log.Timber;
import com.fsck.k9.Account;
import com.fsck.k9.K9;
import com.fsck.k9.remotecontrol.K9RemoteControl;
import com.fsck.k9.Preferences;

View file

@ -5,8 +5,6 @@ import android.content.Context;
import android.content.Intent;
import timber.log.Timber;
import com.fsck.k9.K9;
/**
* Capture the system shutdown event in order to properly free resources.
*

View file

@ -6,7 +6,6 @@ import android.content.Intent;
import android.net.Uri;
import timber.log.Timber;
import com.fsck.k9.K9;
import com.fsck.k9.mailstore.StorageManager;
/**

View file

@ -6,7 +6,6 @@ import android.content.Intent;
import android.net.Uri;
import timber.log.Timber;
import com.fsck.k9.K9;
import com.fsck.k9.mailstore.StorageManager;
/**

View file

@ -10,7 +10,6 @@ import timber.log.Timber;
import com.fsck.k9.Account;
import com.fsck.k9.Account.MessageFormat;
import com.fsck.k9.Account.QuoteStyle;
import com.fsck.k9.K9;
import com.fsck.k9.activity.MessageCompose;
import com.fsck.k9.activity.MessageCompose.Action;
import com.fsck.k9.message.extractors.BodyTextExtractor;

View file

@ -3,8 +3,6 @@ package com.fsck.k9.ui.crypto;
import java.util.HashMap;
import android.support.annotation.VisibleForTesting;
import com.fsck.k9.mail.Part;
import com.fsck.k9.mailstore.CryptoResultAnnotation;

View file

@ -7,7 +7,6 @@ import android.support.annotation.Nullable;
import android.support.annotation.WorkerThread;
import timber.log.Timber;
import com.fsck.k9.K9;
import com.fsck.k9.mail.Message;
import com.fsck.k9.mailstore.LocalMessage;
import com.fsck.k9.mailstore.MessageViewInfoExtractor;

View file

@ -6,7 +6,6 @@ import android.content.Context;
import timber.log.Timber;
import com.fsck.k9.Account;
import com.fsck.k9.K9;
import com.fsck.k9.activity.MessageReference;
import com.fsck.k9.controller.MessagingController;
import com.fsck.k9.mail.MessagingException;

View file

@ -1,7 +1,6 @@
package com.fsck.k9.view;
import com.fsck.k9.K9;
import com.fsck.k9.R;
import android.app.Activity;

View file

@ -24,7 +24,6 @@ import timber.log.Timber;
import android.webkit.WebView;
import com.fsck.k9.Clock;
import com.fsck.k9.K9;
import com.fsck.k9.Throttle;
import com.fsck.k9.helper.Utility;

View file

@ -5,7 +5,6 @@ import android.content.Context;
import android.content.res.Resources.Theme;
import android.support.annotation.AttrRes;
import android.support.annotation.ColorInt;
import android.support.annotation.ColorRes;
import android.support.annotation.UiThread;
import android.util.TypedValue;

View file

@ -3,7 +3,6 @@ package com.fsck.k9.account;
import com.fsck.k9.Account.DeletePolicy;
import com.fsck.k9.mail.ConnectionSecurity;
import com.fsck.k9.mail.ServerSettings;
import com.fsck.k9.mail.ServerSettings.Type;
import org.junit.Test;

View file

@ -3,7 +3,6 @@ package com.fsck.k9.autocrypt;
import java.util.HashMap;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.*;

View file

@ -14,14 +14,12 @@ import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.RuntimeEnvironment;
import org.robolectric.annotation.Config;
import java.io.ByteArrayInputStream;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
@RunWith(K9RobolectricTestRunner.class)

View file

@ -3,7 +3,6 @@ package com.fsck.k9.mailstore;
import com.fsck.k9.mail.Part;
import com.fsck.k9.mail.internet.MimeBodyPart;
import com.fsck.k9.mail.internet.MimeMessage;
import com.fsck.k9.mail.internet.MimeMultipart;
import org.junit.Test;