// If any targets of the invocation have side effects,
// then they cannot be removed.
boolean removable = true;
for (Iterator i = new Targets(callGraph.edgesOutOf(unit)); i
.hasNext()
&& removable;) {
SootMethod targetMethod = (SootMethod) i.next();
// System.out.println("Checking Target = " + targetMethod);
if (analysis.hasSideEffects(targetMethod)) {
removable = false;
}