Removed unused code.
This commit is contained in:
parent
461bfe0282
commit
81303ce021
3 changed files with 1 additions and 22 deletions
|
@ -550,7 +550,7 @@ public class DownloadIndexesThread {
|
||||||
List<IndexItem> stillUpdate = new ArrayList<IndexItem>();
|
List<IndexItem> stillUpdate = new ArrayList<IndexItem>();
|
||||||
for (IndexItem item : itemsToUpdate) {
|
for (IndexItem item : itemsToUpdate) {
|
||||||
String sfName = item.getTargetFileName();
|
String sfName = item.getTargetFileName();
|
||||||
java.text.DateFormat format = uiActivity.getMyApplication().getResourceManager().getDateFormat();
|
java.text.DateFormat format = app.getResourceManager().getDateFormat();
|
||||||
String date = item.getDate(format);
|
String date = item.getDate(format);
|
||||||
String indexactivateddate = indexActivatedFileNames.get(sfName);
|
String indexactivateddate = indexActivatedFileNames.get(sfName);
|
||||||
String indexfilesdate = indexFileNames.get(sfName);
|
String indexfilesdate = indexFileNames.get(sfName);
|
||||||
|
|
|
@ -85,19 +85,6 @@ public class DownloadOsmandIndexesHelper {
|
||||||
File destFile = new File(voicePath, voice + File.separatorChar + "_ttsconfig.p");
|
File destFile = new File(voicePath, voice + File.separatorChar + "_ttsconfig.p");
|
||||||
result.add(new AssetIndexItem(voice +ext, "voice", date, dateModified,
|
result.add(new AssetIndexItem(voice +ext, "voice", date, dateModified,
|
||||||
"0.1", 1024*100, key, destFile.getPath(), DownloadActivityType.VOICE_FILE));
|
"0.1", 1024*100, key, destFile.getPath(), DownloadActivityType.VOICE_FILE));
|
||||||
} else if (target.endsWith("/_config.p") && target.startsWith("voice/")) {
|
|
||||||
String voice = target.substring("voice/".length(), target.length() - "/_config.p".length());
|
|
||||||
IndexItem item = result.getIndexFilesByName(key);
|
|
||||||
if (item != null) {
|
|
||||||
File destFile = new File(voicePath, voice + File.separatorChar + "_config.p");
|
|
||||||
// always use bundled config
|
|
||||||
// if (item.getTimestamp() > dateModified) {
|
|
||||||
// continue;
|
|
||||||
// }
|
|
||||||
item.timestamp = dateModified;
|
|
||||||
item.attachedItem = new AssetIndexItem(voice +extvoice, "voice", date, dateModified, "0.1", 1024*100, key, destFile.getPath(),
|
|
||||||
DownloadActivityType.VOICE_FILE);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
result.sort();
|
result.sort();
|
||||||
|
|
|
@ -27,7 +27,6 @@ public class IndexItem implements Comparable<IndexItem> {
|
||||||
long timestamp;
|
long timestamp;
|
||||||
long contentSize;
|
long contentSize;
|
||||||
long containerSize;
|
long containerSize;
|
||||||
IndexItem attachedItem;
|
|
||||||
DownloadActivityType type;
|
DownloadActivityType type;
|
||||||
|
|
||||||
|
|
||||||
|
@ -99,13 +98,6 @@ public class IndexItem implements Comparable<IndexItem> {
|
||||||
if (backup.exists()) {
|
if (backup.exists()) {
|
||||||
entry.existingBackupFile = backup;
|
entry.existingBackupFile = backup;
|
||||||
}
|
}
|
||||||
if (attachedItem != null) {
|
|
||||||
ArrayList<DownloadEntry> sz = new ArrayList<DownloadEntry>();
|
|
||||||
attachedItem.createDownloadEntry(ctx, type, sz);
|
|
||||||
if(sz.size() > 0) {
|
|
||||||
entry.attachedEntry = sz.get(0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
downloadEntries.add(entry);
|
downloadEntries.add(entry);
|
||||||
}
|
}
|
||||||
return downloadEntries;
|
return downloadEntries;
|
||||||
|
|
Loading…
Reference in a new issue