mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 20:07:34 +00:00
LibCore: Rename File
to DeprecatedFile
As usual, this removes many unused includes and moves used includes further down the chain.
This commit is contained in:
parent
14951b92ca
commit
d43a7eae54
193 changed files with 536 additions and 556 deletions
|
@ -9,7 +9,7 @@
|
|||
#include "GraphWidget.h"
|
||||
#include <AK/JsonObject.h>
|
||||
#include <AK/NumberFormat.h>
|
||||
#include <LibCore/File.h>
|
||||
#include <LibCore/DeprecatedFile.h>
|
||||
#include <LibCore/Object.h>
|
||||
#include <LibGUI/BoxLayout.h>
|
||||
#include <LibGUI/Label.h>
|
||||
|
@ -104,7 +104,7 @@ static inline u64 page_count_to_bytes(size_t count)
|
|||
|
||||
void MemoryStatsWidget::refresh()
|
||||
{
|
||||
auto proc_memstat = Core::File::construct("/sys/kernel/memstat");
|
||||
auto proc_memstat = Core::DeprecatedFile::construct("/sys/kernel/memstat");
|
||||
if (!proc_memstat->open(Core::OpenMode::ReadOnly))
|
||||
VERIFY_NOT_REACHED();
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#include <AK/JsonValue.h>
|
||||
#include <AK/NonnullRefPtr.h>
|
||||
#include <AK/NumberFormat.h>
|
||||
#include <LibCore/File.h>
|
||||
#include <LibCore/DeprecatedFile.h>
|
||||
#include <LibCore/ProcessStatisticsReader.h>
|
||||
#include <LibCore/Stream.h>
|
||||
#include <LibGUI/FileIconProvider.h>
|
||||
|
@ -32,7 +32,7 @@ ProcessModel::ProcessModel()
|
|||
VERIFY(!s_the);
|
||||
s_the = this;
|
||||
|
||||
auto file = Core::File::construct("/sys/kernel/cpuinfo");
|
||||
auto file = Core::DeprecatedFile::construct("/sys/kernel/cpuinfo");
|
||||
if (file->open(Core::OpenMode::ReadOnly)) {
|
||||
auto buffer = file->read_all();
|
||||
auto json = JsonValue::from_string({ buffer });
|
||||
|
|
|
@ -245,7 +245,7 @@ private:
|
|||
HashMap<int, NonnullRefPtr<Thread>> m_threads;
|
||||
NonnullOwnPtrVector<Process> m_processes;
|
||||
NonnullOwnPtrVector<CpuInfo> m_cpus;
|
||||
RefPtr<Core::File> m_proc_all;
|
||||
RefPtr<Core::DeprecatedFile> m_proc_all;
|
||||
GUI::Icon m_kernel_process_icon;
|
||||
u64 m_total_time_scheduled { 0 };
|
||||
u64 m_total_time_scheduled_kernel { 0 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue