From 4bd9ac1f66de58ce6943ff8016fc613a53290c4c Mon Sep 17 00:00:00 2001 From: Mustafa Quraish Date: Thu, 26 Aug 2021 20:34:43 -0400 Subject: [PATCH] Pong: Remove unused Core::ConfigFile imports This application was including, opening and unveiling the path for a config file, however it never actually reads or saves anything from the configuration file. Since it's easy enough to add it back later if needed, probably makes sense to remove the unused code right now? --- Userland/Games/Pong/Game.h | 1 - Userland/Games/Pong/main.cpp | 10 +--------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/Userland/Games/Pong/Game.h b/Userland/Games/Pong/Game.h index 92a8e7cc1c..8a464a1f1c 100644 --- a/Userland/Games/Pong/Game.h +++ b/Userland/Games/Pong/Game.h @@ -7,7 +7,6 @@ #pragma once #include -#include #include #include #include diff --git a/Userland/Games/Pong/main.cpp b/Userland/Games/Pong/main.cpp index 79bff5501b..48f835ddfc 100644 --- a/Userland/Games/Pong/main.cpp +++ b/Userland/Games/Pong/main.cpp @@ -1,11 +1,10 @@ /* - * Copyright (c) 2020, the SerenityOS developers. + * Copyright (c) 2020-2021, the SerenityOS developers. * * SPDX-License-Identifier: BSD-2-Clause */ #include "Game.h" -#include #include #include #include @@ -28,18 +27,11 @@ int main(int argc, char** argv) return 1; } - auto config = Core::ConfigFile::open_for_app("Pong"); - if (unveil("/res", "r") < 0) { perror("unveil"); return 1; } - if (unveil(config->filename().characters(), "rwc") < 0) { - perror("unveil"); - return 1; - } - if (unveil(nullptr, nullptr) < 0) { perror("unveil"); return 1;