diff options
author | Lei Zhang <thestig@chromium.org> | 2018-08-09 08:05:00 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-08-09 08:05:00 +0000 |
commit | 74557b1b4746bc80283f0acf248242fdcab71deb (patch) | |
tree | f3eb45cc5c574d450537c4632a17dd3bc77c8bde /core/fpdfapi/parser/cpdf_cross_ref_table.h | |
parent | f765805983d157e9a21d7202ba49148f24d226f3 (diff) | |
download | pdfium-74557b1b4746bc80283f0acf248242fdcab71deb.tar.xz |
Revert "Rework of CPDF_Parser::GetLastObjNum."
This reverts commit b07deb3fc1f54bd700a66df573bfcbc4bcc1d787.
Reason for revert: Causing https://crbug.com/870467
Original change's description:
> Rework of CPDF_Parser::GetLastObjNum.
>
> Change-Id: I0481774858a9d9823580e1207807e35be8a9eea9
> Reviewed-on: https://pdfium-review.googlesource.com/36270
> Reviewed-by: Lei Zhang <thestig@chromium.org>
> Commit-Queue: Art Snake <art-snake@yandex-team.ru>
TBR=thestig@chromium.org,art-snake@yandex-team.ru
# Not skipping CQ checks because original CL landed > 1 day ago.
Change-Id: I58e23c752a582c21be8ba45e3538e63c0fa64504
Reviewed-on: https://pdfium-review.googlesource.com/39810
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fpdfapi/parser/cpdf_cross_ref_table.h')
-rw-r--r-- | core/fpdfapi/parser/cpdf_cross_ref_table.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/core/fpdfapi/parser/cpdf_cross_ref_table.h b/core/fpdfapi/parser/cpdf_cross_ref_table.h index d8bda7125f..9631216b0c 100644 --- a/core/fpdfapi/parser/cpdf_cross_ref_table.h +++ b/core/fpdfapi/parser/cpdf_cross_ref_table.h @@ -60,12 +60,7 @@ class CPDF_CrossRefTable { void Update(std::unique_ptr<CPDF_CrossRefTable> new_cross_ref); - void ShrinkObjectMap(uint32_t max_size); - - // The total number of entries in the file’s cross-reference table, as - // defined by the combination of the original section and all update - // section. - uint32_t GetSize() const; + void ShrinkObjectMap(uint32_t objnum); private: void UpdateInfo(std::map<uint32_t, ObjectInfo>&& new_objects_info); |