From 046b9050ddb53df65b2f420f02ce632b7606e97a Mon Sep 17 00:00:00 2001
From: Jonas Jenwald <jonas.jenwald@gmail.com>
Date: Sun, 4 Jun 2023 13:51:24 +0200
Subject: [PATCH] Remove unused variables in
 `InkAnnotation.createNewAppearanceStream` (issue 16518, PR 16494 follow-up)

---
 src/core/annotation.js | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/src/core/annotation.js b/src/core/annotation.js
index e5fa35cda..054487d57 100644
--- a/src/core/annotation.js
+++ b/src/core/annotation.js
@@ -4096,14 +4096,7 @@ class InkAnnotation extends MarkupAnnotation {
   }
 
   static async createNewAppearanceStream(annotation, xref, params) {
-    const { color, rect, rotation, paths, thickness, opacity } = annotation;
-    const [x1, y1, x2, y2] = rect;
-    let w = x2 - x1;
-    let h = y2 - y1;
-
-    if (rotation % 180 !== 0) {
-      [w, h] = [h, w];
-    }
+    const { color, rect, paths, thickness, opacity } = annotation;
 
     const appearanceBuffer = [
       `${thickness} w 1 J 1 j`,