summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorCamilo Bernal2012-12-05 09:50:27 (EST)
committer Sami Wagiaalla2012-12-05 13:22:27 (EST)
commit425a5378c2c00e2ee58b86d97b28d81738f61530 (patch)
tree74dbdf68463e9c6508e5fab8e5313fcae75c31d3
parentb578e035b47bdba3d52a15dffebe95968fd8826e (diff)
downloadorg.eclipse.linuxtools-425a5378c2c00e2ee58b86d97b28d81738f61530.zip
org.eclipse.linuxtools-425a5378c2c00e2ee58b86d97b28d81738f61530.tar.gz
org.eclipse.linuxtools-425a5378c2c00e2ee58b86d97b28d81738f61530.tar.bz2
Fix some warnings and remove unused method.refs/changes/37/9037/4
Remove uneeded import and method due to recent changes in TapsetParser. Change-Id: I5d010aaed44aa90a2e2aec592b1d3efad7f24ff8 Reviewed-on: https://git.eclipse.org/r/9037 Reviewed-by: Sami Wagiaalla <swagiaal@redhat.com> IP-Clean: Sami Wagiaalla <swagiaal@redhat.com> Tested-by: Sami Wagiaalla <swagiaal@redhat.com>
-rw-r--r--systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/systemtap/ui/ide/structures/TapsetParser.java63
1 files changed, 0 insertions, 63 deletions
diff --git a/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/systemtap/ui/ide/structures/TapsetParser.java b/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/systemtap/ui/ide/structures/TapsetParser.java
index 5a984fd..5b155f5 100644
--- a/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/systemtap/ui/ide/structures/TapsetParser.java
+++ b/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/systemtap/ui/ide/structures/TapsetParser.java
@@ -418,69 +418,6 @@ public class TapsetParser implements Runnable {
}
/**
- * Reorders the probes tree so that probes are grouped by type
- * instead of by file they were defined in.
- *
- * ProbeTree organized by class grouping. ie:
- * syscall
- * syscall.open
- * filename
- * flags
- * mode
- * name
- * syscall.open.return
- * name
- * retstr
- * syscall.read
- * ...
- * tcp
- * tcp.disconnect
- * tcp.disconnect.return
- */
- private void formatProbes() {
- TreeNode probes2 = new TreeNode("", false);
- TreeNode probe, fileNode, probeGroup, probeFolder;
- String directory;
- String[] folders;
- boolean added;
-
- for(int j,i=0; i<probes.getChildCount(); i++) { //Probe main group
- fileNode = probes.getChildAt(i);
- for(j=0; j<fileNode.getChildCount(); j++) { //Actual probes
- probe = fileNode.getChildAt(j);
- directory = probe.toString();
-
- if(directory.endsWith(".return") || directory.endsWith(".entry"))
- directory = directory.substring(0, directory.lastIndexOf('.'));
-
- folders = directory.split("\\.");
- probeGroup = probes2;
-
- for(int k=0; k<folders.length-1; k++) { //Complete path directory
-
- added = false;
- for(int l=0; l<probeGroup.getChildCount(); l++) { //Destination folder
- probeFolder = probeGroup.getChildAt(l);
- if(probeFolder.toString().equals(folders[k])) {
- probeGroup = probeFolder;
- added = true;
- break;
- }
- }
- if(!added) { //Create brand new folder since it doesn't exist yet
- probeFolder = new TreeNode(folders[k], false);
- probeGroup.add(probeFolder);
- probeGroup = probeFolder;
- }
- }
- probeGroup.add(probe); //Add the probe to its appropriate directory
- }
- }
- probes = probes2;
- probes.sortTree();
- }
-
- /**
* This method will clean up everything from the run.
*/
public void dispose() {