aboutsummaryrefslogtreecommitdiffstats
path: root/asm
diff options
context:
space:
mode:
authoraclement <aclement>2008-08-23 04:18:19 +0000
committeraclement <aclement>2008-08-23 04:18:19 +0000
commit3117568208156c36e2a4b22e21bb5428ccd5a367 (patch)
tree387b3fb9910d711407a3e836d3ce9953680c71ca /asm
parent026fb387b7d84d80f79e51a3d9623fa3c782b6d0 (diff)
downloadaspectj-3117568208156c36e2a4b22e21bb5428ccd5a367.tar.gz
aspectj-3117568208156c36e2a4b22e21bb5428ccd5a367.zip
eclipse: unused code
Diffstat (limited to 'asm')
-rw-r--r--asm/src/org/aspectj/asm/AsmManager.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/asm/src/org/aspectj/asm/AsmManager.java b/asm/src/org/aspectj/asm/AsmManager.java
index 270123754..122f8cc6c 100644
--- a/asm/src/org/aspectj/asm/AsmManager.java
+++ b/asm/src/org/aspectj/asm/AsmManager.java
@@ -560,7 +560,7 @@ public class AsmManager {
}
removeNode(progElem);
deletedNodes.add(getCanonicalFilePath(progElem.getSourceLocation().getSourceFile()));
- if (!model.removeFromFileMap(correctedPath.toString()))
+ if (!model.removeFromFileMap(correctedPath))
throw new RuntimeException("Whilst repairing model, couldn't remove entry for file: "+correctedPath.toString()+" from the filemap");
modelModified = true;
}
@@ -602,7 +602,7 @@ public class AsmManager {
}
removeNode(progElem);
deletedNodes.add(getCanonicalFilePath(progElem.getSourceLocation().getSourceFile()));
- if (!model.removeFromFileMap(correctedPath.toString()))
+ if (!model.removeFromFileMap(correctedPath))
throw new RuntimeException("Whilst repairing model, couldn't remove entry for file: "+correctedPath.toString()+" from the filemap");
modelModified = true;
}
@@ -750,9 +750,7 @@ public class AsmManager {
// Iterate over the source handles in the relationships map
sourcehandlesSet = mapper.getEntries();
for (Iterator keyiter = sourcehandlesSet.iterator(); keyiter.hasNext();) {
- String hid = (String) keyiter.next();
- IProgramElement sourceElement = hierarchy.getElement(hid);
-
+ String hid = (String) keyiter.next();
relationshipsToRemove.clear();
List relationships = mapper.get(hid);
for (Iterator reliter = relationships.iterator();reliter.hasNext();) {