Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkersten2007-01-19 13:43:41 -0500
committermkersten2007-01-19 13:43:41 -0500
commit0b5898baf18b1c0fc7af5b5c7b77da49712e1247 (patch)
tree11a3dcfb4d27dad72864c956be2f88b9bb0305a9 /org.eclipse.mylyn.tasks.core
parent7615bbf51849927382d535be72b9d79fe914defe (diff)
downloadorg.eclipse.mylyn.tasks-0b5898baf18b1c0fc7af5b5c7b77da49712e1247.tar.gz
org.eclipse.mylyn.tasks-0b5898baf18b1c0fc7af5b5c7b77da49712e1247.tar.xz
org.eclipse.mylyn.tasks-0b5898baf18b1c0fc7af5b5c7b77da49712e1247.zip
NEW - bug 171077: remove pre 1.0 migration code
https://bugs.eclipse.org/bugs/show_bug.cgi?id=171077
Diffstat (limited to 'org.eclipse.mylyn.tasks.core')
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TaskDataManager.java39
1 files changed, 0 insertions, 39 deletions
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TaskDataManager.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TaskDataManager.java
index b15d9d306..2a5ad1175 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TaskDataManager.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TaskDataManager.java
@@ -16,7 +16,6 @@ import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
-import java.io.OptionalDataException;
import java.util.Collections;
import java.util.List;
import java.util.Map;
@@ -218,12 +217,6 @@ public class TaskDataManager {
for (RepositoryTaskData taskData : getOldDataMap().values()) {
updateAttributeFactory(taskData);
}
- } catch (OptionalDataException e) {
- in.close();
- readOldOfflineFile();
- } catch (ClassCastException e) {
- in.close();
- readOldOfflineFile();
} finally {
if (in != null) {
try {
@@ -236,38 +229,6 @@ public class TaskDataManager {
}
}
- /**
- * Migrate from old offline task data format (pre 1.0)
- */
- private void readOldOfflineFile() throws IOException {
- ObjectInputStream in = null;
- try {
- in = new ObjectInputStream(new FileInputStream(file));
- // read in each of the offline reports in the file
-
- dataStore = new OfflineDataStore();
-
- // get the number of offline reports in the file
- int size = in.readInt();
- dataStore.setLastNewTaskId(in.readInt());
- for (int nX = 0; nX < size; nX++) {
- RepositoryTaskData taskData = null;
-
- taskData = (RepositoryTaskData) in.readObject();
-
- if (taskData != null) {
- updateAttributeFactory(taskData);
- put(taskData);
- }
- }
- } catch (Exception ex) {
- dataStore = new OfflineDataStore();
- MylarStatusHandler.log(ex, "Could not migrate old offline data file, created new.");
- } finally {
- in.close();
- }
- }
-
/** save task data to offline file */
public void save() {
synchronized (file) {

Back to the top