From 0b3b101dbc4e360863b4f208a19e3ed65f9496dc Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Sat, 6 Jun 2026 17:26:51 +0200 Subject: [PATCH] Remove the unused `GrabToPan.prototype.toggle` method Given that the cursor tools are managed via the `PDFCursorTools` class, of which the `GrabToPan` instance is essentially a (semi) private implementation detail, the `GrabToPan.prototype.toggle` method is completely unused and can thus be removed. --- web/grab_to_pan.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/web/grab_to_pan.js b/web/grab_to_pan.js index 05316a024..9835d8540 100644 --- a/web/grab_to_pan.js +++ b/web/grab_to_pan.js @@ -73,14 +73,6 @@ class GrabToPan { } } - toggle() { - if (this.#activateAC) { - this.deactivate(); - } else { - this.activate(); - } - } - /** * Whether to not pan if the target element is clicked. * Override this method to change the default behaviour.