Delete some unneeded TODOs

This commit is contained in:
Ben Gruver 2013-04-29 23:49:55 -07:00
parent 894327c7ed
commit 03a4ffa1f4
2 changed files with 0 additions and 2 deletions

View File

@ -72,7 +72,6 @@ class BuilderStringPool implements StringSection<BuilderStringReference, Builder
@Nonnull @Override public Collection<? extends Entry<? extends BuilderStringReference, Integer>> getItems() {
return new BuilderMapEntryCollection<BuilderStringReference>(internedItems.values()) {
@Override protected int getValue(@Nonnull BuilderStringReference key) {
// TODO: see what the performance of using key.getIndex() for everything is like
return key.index;
}

View File

@ -151,7 +151,6 @@ public class InstructionWriteUtil<Insn extends Instruction, StringRef extends St
for (Instruction instruction: originalInstructions) {
if (instruction.getOpcode().equals(Opcode.CONST_STRING)) {
ReferenceInstruction refInstr = (ReferenceInstruction) instruction;
// TODO: add the necessary generic plumbing to the Instruction interface to make this work without a warning (ugh)
int referenceIndex = stringIndexProvider.getItemIndex((StringRef)refInstr.getReference());
if (referenceIndex > 0xFFFF) {
if (codeOffsetShifts == null) {