|
From: <caw...@us...> - 2007-07-26 17:05:20
|
Revision: 2890
http://rubyeclipse.svn.sourceforge.net/rubyeclipse/?rev=2890&view=rev
Author: cawilliams
Date: 2007-07-26 10:05:19 -0700 (Thu, 26 Jul 2007)
Log Message:
-----------
remove unused code
Modified Paths:
--------------
trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/hierarchy/HierarchyResolver.java
Modified: trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/hierarchy/HierarchyResolver.java
===================================================================
--- trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/hierarchy/HierarchyResolver.java 2007-07-26 17:04:46 UTC (rev 2889)
+++ trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/hierarchy/HierarchyResolver.java 2007-07-26 17:05:19 UTC (rev 2890)
@@ -5,7 +5,6 @@
import java.util.List;
import java.util.Map;
-import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.IProgressMonitor;
import org.rubypeople.rdt.core.IType;
import org.rubypeople.rdt.core.RubyModelException;
@@ -13,8 +12,6 @@
import org.rubypeople.rdt.internal.core.LogicalType;
import org.rubypeople.rdt.internal.core.Openable;
-import com.sun.org.apache.bcel.internal.generic.GETSTATIC;
-
public class HierarchyResolver {
private boolean superTypesOnly;
@@ -100,28 +97,11 @@
}
private IType getLogicalType(IType type, String name) {
-// if (type instanceof LogicalType) {
-// try {
-// return getLogicalType((LogicalType)type, name);
-// } catch (RubyModelException e) {
-// // ignore
-// }
-// }
RubyElementRequestor requestor = new RubyElementRequestor(type.getRubyScript());
IType[] types = requestor.findType(name);
if (types == null || types.length == 0) return null;
return new LogicalType(types);
}
-
- private IType getLogicalType(LogicalType type, String name) throws RubyModelException {
- IType[] types = type.getTypes();
- for (int i = 0; i < types.length; i++) {
- RubyElementRequestor requestor = new RubyElementRequestor(types[i].getRubyScript());
- IType[] result = requestor.findType(name);
- if (types != null && types.length > 0) return new LogicalType(result); // FIXME Concatenate results?
- }
- return null;
- }
private void reset() {
// this.focusType = null;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|