summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorEtienne Bergeron2013-11-25 20:49:28 (EST)
committer Alexandre Montplaisir2013-11-26 11:56:20 (EST)
commit2f047bfcbc8d2233f610bd0bef67d739dd809619 (patch)
treef63be60e4dfa7a323728763f6166e8c1af891dc6
parentbd8571ca871dec4a7f48e0ad14adabab974b95cc (diff)
downloadorg.eclipse.linuxtools-2f047bfcbc8d2233f610bd0bef67d739dd809619.zip
org.eclipse.linuxtools-2f047bfcbc8d2233f610bd0bef67d739dd809619.tar.gz
org.eclipse.linuxtools-2f047bfcbc8d2233f610bd0bef67d739dd809619.tar.bz2
tmf: Remove unused TmfSortedArray.refs/changes/75/18875/2
This data-structure seems unused. It's implemented with an insertion sort, and won't scale. Change-Id: I49ae518a384817c4fd537c989240454e00f6f38b Signed-off-by: Etienne Bergeron <etienne.bergeron@gmail.com> Reviewed-on: https://git.eclipse.org/r/18875 Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com> Tested-by: Hudson CI Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com> Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im> IP-Clean: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
-rw-r--r--lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/util/TmfSortedArrayList.java45
1 files changed, 0 insertions, 45 deletions
diff --git a/lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/util/TmfSortedArrayList.java b/lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/util/TmfSortedArrayList.java
deleted file mode 100644
index a93d4a2..0000000
--- a/lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/util/TmfSortedArrayList.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2011, 2012 Ericsson
- *
- * 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:
- * Francois Chouinard - Initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.linuxtools.tmf.core.util;
-
-import java.util.ArrayList;
-
-/**
- * Implementation of a sorted array list.
- *
- * @param <T> The array element type
- *
- * @version 1.0
- * @author Francois Chouinard
- */
-
-public class TmfSortedArrayList<T> extends ArrayList<T> {
- private static final long serialVersionUID = 1L;
-
- /**
- * Inserts a new value in the list according to its sorted position.
- *
- * @param value A value to insert
- */
- @SuppressWarnings("unchecked")
- public void insertSorted(T value) {
- add(value);
- Comparable<T> cmp = (Comparable<T>) value;
- for (int pos = size() - 1; pos > 0 && cmp.compareTo(get(pos - 1)) < 0; pos--) {
- T tmp = get(pos);
- set(pos, get(pos - 1));
- set(pos - 1, tmp);
- }
- }
-
-}