summaryrefslogtreecommitdiff
path: root/Userland/Games/Pong
diff options
context:
space:
mode:
authorMustafa Quraish <mustafaq9@gmail.com>2021-08-26 20:34:43 -0400
committerAndreas Kling <kling@serenityos.org>2021-08-27 12:45:50 +0200
commit4bd9ac1f66de58ce6943ff8016fc613a53290c4c (patch)
treeb60a947b4e34e9958910971deb6be55ebcd20120 /Userland/Games/Pong
parent998d3a98ecf2af77d42959b90c010496d4cd0627 (diff)
downloadserenity-4bd9ac1f66de58ce6943ff8016fc613a53290c4c.zip
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?
Diffstat (limited to 'Userland/Games/Pong')
-rw-r--r--Userland/Games/Pong/Game.h1
-rw-r--r--Userland/Games/Pong/main.cpp10
2 files changed, 1 insertions, 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 <AK/Optional.h>
-#include <LibCore/ConfigFile.h>
#include <LibGUI/Application.h>
#include <LibGUI/MessageBox.h>
#include <LibGUI/Painter.h>
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 <LibCore/ConfigFile.h>
#include <LibGUI/Application.h>
#include <LibGUI/Icon.h>
#include <LibGUI/Menu.h>
@@ -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;