From 09c9f7f2fe9685361e9af41b9817f8ff984804b5 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Tue, 23 Jun 2026 12:05:49 +0200 Subject: [PATCH] Remove the `AnnotationEditorUIManager` and `IdManager` test-only `reset` methods (PR 19809 follow-up) These test-only methods became unused in PR 19809. --- src/display/editor/tools.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/display/editor/tools.js b/src/display/editor/tools.js index d68b78c3f..491b65a83 100644 --- a/src/display/editor/tools.js +++ b/src/display/editor/tools.js @@ -134,9 +134,6 @@ class IdManager { constructor() { if (typeof PDFJSDev !== "undefined" && PDFJSDev.test("TESTING")) { - Object.defineProperty(this, "reset", { - value: () => (this.#id = 0), - }); Object.defineProperty(this, "getNextId", { value: () => this.#id, }); @@ -1067,13 +1064,6 @@ class AnnotationEditorUIManager { commentManager?.setSidebarUiManager(this); if (typeof PDFJSDev !== "undefined" && PDFJSDev.test("TESTING")) { - Object.defineProperty(this, "reset", { - value: () => { - this.selectAll(); - this.delete(); - this.#idManager.reset(); - }, - }); Object.defineProperty(this, "getNextEditorId", { value: () => this.#idManager.getNextId(), });