summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorLiav A <liavalb@gmail.com>2022-07-16 08:40:57 +0300
committerLinus Groh <mail@linusgroh.de>2022-07-19 11:02:37 +0100
commita70e1a0340e683f4e835a47dff843392e5028a4b (patch)
treeabc04c15aba3b3de39f33d5017174d5516c70268 /Userland
parent412a5999d0683ecf1ca0bea9ee3c917fe56f3edb (diff)
downloadserenity-a70e1a0340e683f4e835a47dff843392e5028a4b.zip
Utilities: Remove the edid-dump utility
This short-lived utility was essential when we had to use the ioctl interface to fetch the EDID from a DisplayConnector, but now that we can simply read it from SysFS, this utility is no longer needed and can be removed.
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Utilities/CMakeLists.txt1
-rw-r--r--Userland/Utilities/edid-dump.cpp38
2 files changed, 0 insertions, 39 deletions
diff --git a/Userland/Utilities/CMakeLists.txt b/Userland/Utilities/CMakeLists.txt
index 03e375b1d7..eef5e9ae84 100644
--- a/Userland/Utilities/CMakeLists.txt
+++ b/Userland/Utilities/CMakeLists.txt
@@ -106,7 +106,6 @@ target_link_libraries(disk_benchmark LibMain)
target_link_libraries(dmesg LibMain)
target_link_libraries(du LibMain)
target_link_libraries(echo LibMain)
-target_link_libraries(edid-dump LibMain LibEDID)
target_link_libraries(env LibMain)
target_link_libraries(errno LibMain)
target_link_libraries(expr LibRegex LibMain)
diff --git a/Userland/Utilities/edid-dump.cpp b/Userland/Utilities/edid-dump.cpp
deleted file mode 100644
index 2ac465b249..0000000000
--- a/Userland/Utilities/edid-dump.cpp
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * Copyright (c) 2022, Liav A. <liavalb@hotmail.co.il>
- *
- * SPDX-License-Identifier: BSD-2-Clause
- */
-
-#include <AK/String.h>
-#include <AK/StringUtils.h>
-#include <LibCore/ArgsParser.h>
-#include <LibCore/System.h>
-#include <LibEDID/EDID.h>
-#include <LibMain/Main.h>
-#include <assert.h>
-#include <errno.h>
-#include <fcntl.h>
-#include <inttypes.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <sys/mman.h>
-#include <sys/stat.h>
-#include <unistd.h>
-
-ErrorOr<int> serenity_main(Main::Arguments arguments)
-{
- TRY(Core::System::pledge("stdio rpath wpath"));
-
- StringView display_connector_file_name;
- Core::ArgsParser args;
- args.add_positional_argument(display_connector_file_name, "Display Connector Device Path", "display connector file name", Core::ArgsParser::Required::Yes);
-
- args.parse(arguments);
-
- auto edid = TRY(EDID::Parser::from_framebuffer_device(display_connector_file_name, 0));
-
- out("{}", StringView { edid.bytes() });
- return 0;
-}