Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Zarna2017-06-08 08:36:19 -0400
committerSam Davis2017-06-19 18:49:42 -0400
commit57b34b9769863559b928b18e2aedf948084a25a2 (patch)
treeeae2d6bdc80e61dd6b767462e77c1c376bf9fa2b /org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal
parente60b550caa6108ddd9e6b275da140fc237c054b2 (diff)
downloadorg.eclipse.mylyn.tasks-57b34b9769863559b928b18e2aedf948084a25a2.tar.gz
org.eclipse.mylyn.tasks-57b34b9769863559b928b18e2aedf948084a25a2.tar.xz
org.eclipse.mylyn.tasks-57b34b9769863559b928b18e2aedf948084a25a2.zip
remove unnecessary code from mylyn.tasks.core project
Diffstat (limited to 'org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal')
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/sync/SynchronizeQueriesJob.java7
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/util/KeyringMigrator.java4
2 files changed, 2 insertions, 9 deletions
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/sync/SynchronizeQueriesJob.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/sync/SynchronizeQueriesJob.java
index ed0cc8cde..4030f1701 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/sync/SynchronizeQueriesJob.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/sync/SynchronizeQueriesJob.java
@@ -64,8 +64,6 @@ public class SynchronizeQueriesJob extends SynchronizationJob {
private final RepositoryQuery repositoryQuery;
- private int resultCount;
-
private final SynchronizationSession session;
public TaskCollector(RepositoryQuery repositoryQuery, SynchronizationSession session) {
@@ -92,17 +90,12 @@ public class SynchronizeQueriesJob extends SynchronizationJob {
} catch (CoreException e) {
StatusHandler.log(new Status(IStatus.ERROR, ITasksCoreConstants.ID_PLUGIN, "Failed to save task", e)); //$NON-NLS-1$
}
- resultCount++;
}
public Set<ITask> getRemovedChildren() {
return removedQueryResults;
}
- public int getResultCount() {
- return resultCount;
- }
-
@Override
public void failed(String taskId, IStatus status) {
ITask task = taskList.getTask(repositoryQuery.getRepositoryUrl(), taskId);
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/util/KeyringMigrator.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/util/KeyringMigrator.java
index 01ab29314..a1f0615d8 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/util/KeyringMigrator.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/util/KeyringMigrator.java
@@ -29,7 +29,7 @@ import org.eclipse.mylyn.internal.tasks.core.ITasksCoreConstants;
/**
* Reads properties from the deprecated Eclipse keyring and writes them to the {@link ICredentialsStore} provided by the
* {@link ILocationService}.
- *
+ *
* @author Sam Davis
*/
public abstract class KeyringMigrator<T> {
@@ -67,7 +67,7 @@ public abstract class KeyringMigrator<T> {
return getAuthorizationInfo(new URL(url), authRealm, authScheme);
}
- @SuppressWarnings({ "deprecation", "unchecked" })
+ @SuppressWarnings("deprecation")
protected Map<String, String> getAuthorizationInfo(URL url, String realm, String scheme)
throws MalformedURLException {
return Platform.getAuthorizationInfo(url, realm, scheme);

Back to the top