From 2c4829cb147957635af493257089179f48e71537 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 9 Feb 2021 20:49:01 +0100 Subject: [PATCH] LibWeb: Remove duplicated locals in EventHandler::handle_mousedown() --- Userland/Libraries/LibWeb/Page/EventHandler.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/Userland/Libraries/LibWeb/Page/EventHandler.cpp b/Userland/Libraries/LibWeb/Page/EventHandler.cpp index 7a69085aa4..21f5d12df3 100644 --- a/Userland/Libraries/LibWeb/Page/EventHandler.cpp +++ b/Userland/Libraries/LibWeb/Page/EventHandler.cpp @@ -174,8 +174,6 @@ bool EventHandler::handle_mousedown(const Gfx::IntPoint& position, unsigned butt auto url = document->complete_url(href); dbgln("Web::EventHandler: Clicking on a link to {}", url); if (button == GUI::MouseButton::Left) { - auto href = link->href(); - auto url = document->complete_url(href); if (href.starts_with("javascript:")) { document->run_javascript(href.substring_view(11, href.length() - 11)); } else if (href.starts_with('#')) {