From 474a38bd3c33b7ab8321f612287a95371584fd04 Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Tue, 13 Sep 2022 12:33:38 +0100 Subject: [PATCH] Applets/Network: Stop marking methods virtual unnecessarily None of these are overridden, and NetworkWidget is a final class. --- Userland/Applets/Network/main.cpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/Userland/Applets/Network/main.cpp b/Userland/Applets/Network/main.cpp index 44ab888505..f26d2af880 100644 --- a/Userland/Applets/Network/main.cpp +++ b/Userland/Applets/Network/main.cpp @@ -1,5 +1,6 @@ /* * Copyright (c) 2020, the SerenityOS developers. + * Copyright (c) 2022, Sam Atkins * * SPDX-License-Identifier: BSD-2-Clause */ @@ -16,9 +17,6 @@ #include #include #include -#include -#include -#include class NetworkWidget final : public GUI::ImageWidget { C_OBJECT_ABSTRACT(NetworkWidget) @@ -53,7 +51,7 @@ private: GUI::Process::spawn_or_show_error(window(), "/bin/SystemMonitor"sv, Array { "-t", "network" }); } - virtual void update_widget() + void update_widget() { auto adapter_info = get_adapter_info(); @@ -74,7 +72,7 @@ private: update(); } - virtual void notify_on_connect() + void notify_on_connect() { if (!m_notifications) return; @@ -85,7 +83,7 @@ private: notification->show(); } - virtual void notify_on_disconnect() + void notify_on_disconnect() { if (!m_notifications) return; @@ -96,7 +94,7 @@ private: notification->show(); } - virtual void set_connected(bool connected) + void set_connected(bool connected) { if (m_connected != connected) { connected ? notify_on_connect() : notify_on_disconnect(); @@ -105,7 +103,7 @@ private: m_connected = connected; } - virtual String get_adapter_info() + String get_adapter_info() { StringBuilder adapter_info;