From b79a75bf17a0b14cd58ccc4684640fc069d9222c Mon Sep 17 00:00:00 2001 From: Tim Su Date: Sat, 18 Dec 2010 14:34:04 -0800 Subject: [PATCH] Removing some commented out lines --- .../sync/ProducteevSyncProvider.java | 1 - .../sync/ProducteevTaskContainer.java | 20 ++----------------- 2 files changed, 2 insertions(+), 19 deletions(-) diff --git a/astrid/plugin-src/com/todoroo/astrid/producteev/sync/ProducteevSyncProvider.java b/astrid/plugin-src/com/todoroo/astrid/producteev/sync/ProducteevSyncProvider.java index 8cbb0a954..1de233956 100644 --- a/astrid/plugin-src/com/todoroo/astrid/producteev/sync/ProducteevSyncProvider.java +++ b/astrid/plugin-src/com/todoroo/astrid/producteev/sync/ProducteevSyncProvider.java @@ -667,7 +667,6 @@ public class ProducteevSyncProvider extends SyncProvider metadata, Metadata pdvTask) { this.task = task; @@ -32,7 +31,6 @@ public class ProducteevTaskContainer extends SyncContainer { @SuppressWarnings("nls") public ProducteevTaskContainer(Task task, ArrayList metadata, JSONObject remoteTask) { this(task, metadata, new Metadata()); -// res = ContextManager.getContext().getResources(); pdvTask.setValue(Metadata.KEY, ProducteevTask.METADATA_KEY); pdvTask.setValue(ProducteevTask.ID, remoteTask.optLong("id_task")); pdvTask.setValue(ProducteevTask.DASHBOARD_ID, remoteTask.optLong("id_dashboard")); @@ -43,9 +41,6 @@ public class ProducteevTaskContainer extends SyncContainer { if (!"0".equals(repeatingValue) && repeatingValue.length() > 0 && repeatingInterval != null && repeatingInterval.length() > 0) { pdvTask.setValue(ProducteevTask.REPEATING_SETTING, repeatingValue+","+repeatingInterval); -// "PDV "+("1".equals(repeatingValue) ? -// res.getString(R.string.repeat_every).replaceAll(" %d", "") : -// res.getString(R.string.repeat_every, Integer.parseInt(repeatingValue)))+" "+getLocalizedRepeatInterval(repeatingInterval)); } } @@ -66,16 +61,5 @@ public class ProducteevTaskContainer extends SyncContainer { } } -// private String getLocalizedRepeatInterval(String pdvRepeatInterval) { -// String localizedRepeatInterval = ""; -// if (pdvRepeatInterval.startsWith("day")) -// localizedRepeatInterval = res.getStringArray(R.array.repeat_interval)[0]; -// else if (pdvRepeatInterval.equals("week") || pdvRepeatInterval.equals("weeks")) -// localizedRepeatInterval = res.getStringArray(R.array.repeat_interval)[1]; -// else if (pdvRepeatInterval.startsWith("month")) -// localizedRepeatInterval = res.getStringArray(R.array.repeat_interval)[2]; -// else -// localizedRepeatInterval = pdvRepeatInterval; // TODO: localize year and weekday in strings-producteev.xml -// return localizedRepeatInterval; -// } -} \ No newline at end of file + +}