diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2022-09-13 12:33:38 +0100 |
---|---|---|
committer | Brian Gianforcaro <b.gianfo@gmail.com> | 2022-09-18 18:57:28 -0700 |
commit | 474a38bd3c33b7ab8321f612287a95371584fd04 (patch) | |
tree | 276019e858b29d51c455886f47b6da2b721c5b48 /Userland/Applets/Network | |
parent | eacf017112d7556b3ea1d5a4e17fee0d2c0f1be8 (diff) | |
download | serenity-474a38bd3c33b7ab8321f612287a95371584fd04.zip |
Applets/Network: Stop marking methods virtual unnecessarily
None of these are overridden, and NetworkWidget is a final class.
Diffstat (limited to 'Userland/Applets/Network')
-rw-r--r-- | Userland/Applets/Network/main.cpp | 14 |
1 files 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 <atkinssj@serenityos.org> * * SPDX-License-Identifier: BSD-2-Clause */ @@ -16,9 +17,6 @@ #include <LibGUI/Window.h> #include <LibGfx/Bitmap.h> #include <LibMain/Main.h> -#include <serenity.h> -#include <spawn.h> -#include <stdio.h> 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; |