Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Pingel2014-03-25 06:20:26 -0400
committerSam Davis2014-04-09 12:38:38 -0400
commitdf87f343eaa583d8171de5cd081a29b1b1d9890b (patch)
tree97887b8f5025d489d6b553aeee8c04c652122d13 /org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal
parent60837157de424386ee9c813a6f7650475c73d8f3 (diff)
downloadorg.eclipse.mylyn.tasks-df87f343eaa583d8171de5cd081a29b1b1d9890b.tar.gz
org.eclipse.mylyn.tasks-df87f343eaa583d8171de5cd081a29b1b1d9890b.tar.xz
org.eclipse.mylyn.tasks-df87f343eaa583d8171de5cd081a29b1b1d9890b.zip
376337: remove deprecated internal provisional classes from Tasks
Change-Id: I9c4cc4c29c745c6d4af94896853ab7a1fa5dce91 Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=376337
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/provisional/tasks/core/TasksUtil.java79
1 files changed, 0 insertions, 79 deletions
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/provisional/tasks/core/TasksUtil.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/provisional/tasks/core/TasksUtil.java
deleted file mode 100644
index d194abb99..000000000
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/provisional/tasks/core/TasksUtil.java
+++ /dev/null
@@ -1,79 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 Tasktop Technologies and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Tasktop Technologies - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.mylyn.internal.provisional.tasks.core;
-
-import org.eclipse.mylyn.commons.core.CoreUtil;
-
-/**
- * @author Steffen Pingel
- * @deprecated
- */
-@Deprecated
-public class TasksUtil {
-
- /**
- * @deprecated use {@link CoreUtil#decode(String)} instead
- */
- @Deprecated
- public static String decode(String text) {
- boolean escaped = false;
- StringBuffer sb = new StringBuffer(text.length());
- StringBuffer escapedText = new StringBuffer(4);
- char[] chars = text.toCharArray();
- for (char c : chars) {
- if (c >= '0' && c <= '9' || c >= 'a' && c <= 'z' || c >= 'A' && c <= 'Z' || c == '.') {
- if (escaped) {
- escapedText.append(c);
- } else {
- sb.append(c);
- }
- } else if (c == '%') {
- if (escaped) {
- throw new IllegalArgumentException("Unexpected '%' sign in '" + text + "'"); //$NON-NLS-1$ //$NON-NLS-2$
- }
- escaped = !escaped;
- } else if (c == '_') {
- if (!escaped) {
- throw new IllegalArgumentException("Unexpected '_' sign in '" + text + "'"); //$NON-NLS-1$ //$NON-NLS-2$
- }
- try {
- sb.append((char) Integer.parseInt(escapedText.toString(), 16));
- escapedText.setLength(0);
- } catch (NumberFormatException e) {
- throw new IllegalArgumentException("Invalid escape code in '" + text + "'"); //$NON-NLS-1$ //$NON-NLS-2$
- }
- escaped = !escaped;
- } else {
- throw new IllegalArgumentException("Unexpected character '" + c + "' in '" + text + "'"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- }
- }
- return sb.toString();
- }
-
- /**
- * @deprecated use {@link CoreUtil#encode(String)} instead
- */
- @Deprecated
- public static String encode(String text) {
- StringBuffer sb = new StringBuffer(text.length());
- char[] chars = text.toCharArray();
- for (char c : chars) {
- if (c >= '0' && c <= '9' || c >= 'a' && c <= 'z' || c >= 'A' && c <= 'Z' || c == '.') {
- sb.append(c);
- } else {
- sb.append("%" + Integer.toHexString(c).toUpperCase() + "_"); //$NON-NLS-1$ //$NON-NLS-2$
- }
- }
- return sb.toString();
- }
-
-}

Back to the top