From 3117568208156c36e2a4b22e21bb5428ccd5a367 Mon Sep 17 00:00:00 2001 From: aclement Date: Sat, 23 Aug 2008 04:18:19 +0000 Subject: [PATCH] eclipse: unused code --- asm/src/org/aspectj/asm/AsmManager.java | 8 +++----- 1 file 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();) { -- 2.39.5