[Zucchini]: Remove IndirectReference.
IndirectReference brings complexity conceptually.
The purpose of IndirectReference was to speed-up look-ups.
Turns out that there is no significant impact on patching time
when using direct references.
Furthermore, this reduces coupling between TargetPool and ReferenceSet.
Change-Id: Ic50dbf59e483a7fa1480c8eb37f4b1d01a53401a
Reviewed-on: https://chromium-review.googlesource.com/1136578
Commit-Queue: Etienne Pierre-Doray <etiennep@chromium.org>
Reviewed-by: Samuel Huang <huangs@chromium.org>
Cr-Commit-Position: refs/heads/master@{#582653}
NOKEYCHECK=True
GitOrigin-RevId: 0434f5b4a564c6295e62a3996826f8627b8aa617
diff --git a/image_index.cc b/image_index.cc
index 6c7a28b..1efe5d8 100644
--- a/image_index.cc
+++ b/image_index.cc
@@ -47,7 +47,7 @@
return true;
// |location| points into a Reference.
- IndirectReference reference = refs(type).at(location);
+ Reference reference = refs(type).at(location);
// Only the first byte of a reference is a token.
return location == reference.location;
}