|
From: <caw...@us...> - 2007-06-27 19:21:34
|
Revision: 2700
http://svn.sourceforge.net/rubyeclipse/?rev=2700&view=rev
Author: cawilliams
Date: 2007-06-27 12:21:32 -0700 (Wed, 27 Jun 2007)
Log Message:
-----------
remove unused method
Modified Paths:
--------------
trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/codeassist/CompletionEngine.java
Modified: trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/codeassist/CompletionEngine.java
===================================================================
--- trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/codeassist/CompletionEngine.java 2007-06-27 19:00:54 UTC (rev 2699)
+++ trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/codeassist/CompletionEngine.java 2007-06-27 19:21:32 UTC (rev 2700)
@@ -523,28 +523,6 @@
}
}
- private void addLocalVariablesAndArguments(Node enclosingMethodNode) {
- // Add local vars and arguments
- if (enclosingMethodNode != null && enclosingMethodNode instanceof MethodDefNode) {
- Set<String> matches = new HashSet<String>();
- StaticScope scope = ((MethodDefNode) enclosingMethodNode).getScope();
- if (scope != null && scope.getVariables().length > 0) {
- List locals = Arrays.asList(scope.getVariables());
- for (Iterator iter = locals.iterator(); iter.hasNext();) {
- String local = (String) iter.next();
- if (!fContext.prefixStartsWith(local))
- continue;
- matches.add(local);
- }
- }
- for (String local : matches) { // Avoid duplicates
- CompletionProposal proposal = new CompletionProposal(CompletionProposal.LOCAL_VARIABLE_REF, local, 100);
- proposal.setReplaceRange(fContext.getReplaceStart(), fContext.getReplaceStart() + local.length());
- fRequestor.accept(proposal);
- }
- }
- }
-
/**
* Gets the members available inside a type node (ModuleNode, ClassNode): -
* Instance variables - Class variables - Methods
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|