lucasrla / remarks

Extract annotations (highlights and scribbles) from PDF, EPUB, and notebooks marked with reMarkable tablets. Export to Markdown, PDF, PNG, SVG
GNU General Public License v3.0
347 stars 20 forks source link

Refactor: Remove redundant argument from `process_ocr` function #62

Closed Azeirah closed 1 year ago

Azeirah commented 1 year ago

ann_page gets passed to process_ocr. It is not used in the body. Then, ann_page is redefined to be work_doc[0] and lastly gets returned. In the caller-site, the original ann_page reference is overwritten by this line:

work_doc, ann_page = process_ocr(work_doc, ann_page)

There are no other callers.

lucasrla commented 1 year ago

Oh, I see! I must have left it there during some previous refactor... Thanks!