From e55bf4013df1df1cb034f1c59c21d4e664b3aa98 Mon Sep 17 00:00:00 2001
From: Richard Harris <richard.a.harris@gmail.com>
Date: Sun, 27 Oct 2019 18:36:19 -0400
Subject: [PATCH] remove some unused code

---
 site/content/examples/15-composition/04-modal/Modal.svelte | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/site/content/examples/15-composition/04-modal/Modal.svelte b/site/content/examples/15-composition/04-modal/Modal.svelte
index 8d73045dd6..91a2fc26e5 100644
--- a/site/content/examples/15-composition/04-modal/Modal.svelte
+++ b/site/content/examples/15-composition/04-modal/Modal.svelte
@@ -15,11 +15,7 @@
 		if (e.key === 'Tab') {
 			// trap focus
 			const nodes = modal.querySelectorAll('*');
-			const active = document.activeElement;
-
 			const tabbable = Array.from(nodes).filter(n => n.tabIndex >= 0);
-			const first = tabbable[0];
-			const last = tabbable[tabbable.length - 1];
 
 			let index = tabbable.indexOf(document.activeElement);
 			if (index === -1 && e.shiftKey) index = 0;