[PDF] Remove dead test code
Remove PopulateTextObjects(), which is no longer used after https://crrev.com/c/3552033. Change-Id: Ib818acfdb618c417c675553c4c6bab7ada41ee29 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6556787 Commit-Queue: Andy Phan <andyphan@chromium.org> Reviewed-by: Lei Zhang <thestig@chromium.org> Cr-Commit-Position: refs/heads/main@{#1461613}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
0199e4afae
commit
a24b4789fe
@ -81,16 +81,6 @@ void CompareTextRuns(const AccessibilityTextRunInfo& expected_text_run,
|
||||
EXPECT_EQ(expected_style.is_bold, actual_style.is_bold);
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
void PopulateTextObjects(const std::vector<gfx::Range>& ranges,
|
||||
std::vector<T>* text_objects) {
|
||||
text_objects->resize(ranges.size());
|
||||
for (size_t i = 0; i < ranges.size(); ++i) {
|
||||
(*text_objects)[i].start_char_index = ranges[i].start();
|
||||
(*text_objects)[i].char_count = ranges[i].end() - ranges[i].start();
|
||||
}
|
||||
}
|
||||
|
||||
// Returns the page size for a `PDFiumPage`. The caller must make sure that
|
||||
// `pdfium_page` is available.
|
||||
gfx::SizeF GetPageSizeHelper(PDFiumPage& pdfium_page) {
|
||||
|
Reference in New Issue
Block a user