Kill some now-dead and duplicate code

This commit is contained in:
Jesse Vincent 2011-03-25 15:56:25 +11:00
parent fd468e95fb
commit b8949abaca
5 changed files with 30 additions and 87 deletions

View file

@ -1112,4 +1112,34 @@ public class Accounts extends K9ListActivity implements OnItemClickListener, OnC
}
public void onExport(final Account account) {
ExportHelper.exportSettings(this, account, new ExportListener() {
@Override
public void canceled() {
setProgress(false);
}
@Override
public void failure(String message, Exception e) {
setProgress(false);
}
@Override
public void started() {
setProgress(true);
}
@Override
public void success(String fileName) {
setProgress(false);
}
@Override
public void success() {
setProgress(false);
}
});
}
}

View file

@ -151,9 +151,6 @@ public class FolderList extends K9ListActivity {
}
}
public void setProgress(boolean progress) {
mHandler.progress(progress);
}
/**
* This class is responsible for reloading the list of local messages for a
@ -543,14 +540,6 @@ public class FolderList extends K9ListActivity {
return true;
case R.id.export:
onExport(mAccount);
return true;
case R.id.export_all:
onExport(null);
return true;
case R.id.display_1st_class: {
setDisplayMode(FolderMode.FIRST_CLASS);
return true;

View file

@ -163,37 +163,5 @@ public class K9Activity extends Activity {
return false;
}
}
public void setProgress(boolean progress) {
}
public void onExport(final Account account) {
ExportHelper.exportSettings(this, account, new ExportListener() {
@Override
public void canceled() {
setProgress(false);
}
@Override
public void failure(String message, Exception e) {
setProgress(false);
}
@Override
public void started() {
setProgress(true);
}
@Override
public void success(String fileName) {
setProgress(false);
}
@Override
public void success() {
setProgress(false);
}
});
}
}

View file

@ -90,37 +90,5 @@ public class K9ListActivity extends ListActivity {
return super.onKeyUp(keyCode, event);
}
public void setProgress(boolean progress) {
}
public void onExport(final Account account) {
ExportHelper.exportSettings(this, account, new ExportListener() {
@Override
public void canceled() {
setProgress(false);
}
@Override
public void failure(String message, Exception e) {
setProgress(false);
}
@Override
public void started() {
setProgress(true);
}
@Override
public void success(String fileName) {
setProgress(false);
}
@Override
public void success() {
setProgress(false);
}
});
}
}

View file

@ -519,10 +519,6 @@ public class MessageList
}
}
public void setProgress(boolean progress) {
mHandler.progress(progress);
}
public static void actionHandleFolder(Context context, Account account, String folder) {
Intent intent = actionHandleFolderIntent(context, account, folder);
context.startActivity(intent);
@ -1401,14 +1397,6 @@ public class MessageList
onEditPrefs();
return true;
}
case R.id.export: {
onExport(mAccount);
return true;
}
case R.id.export_all: {
onExport(null);
return true;
}
}
if (mQueryString != null) {