mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 17:49:40 +00:00
Kernel: Remove unused function ProcFS::add_sys_string
This commit is contained in:
parent
9b5c137f46
commit
869becc944
Notes:
sideshowbarker
2024-07-18 18:43:53 +09:00
Author: https://github.com/bgianfo
Commit: 869becc944
Pull-request: https://github.com/SerenityOS/serenity/pull/6845
2 changed files with 0 additions and 14 deletions
|
@ -961,19 +961,6 @@ void ProcFS::add_sys_bool(String&& name, Lockable<bool>& var, Function<void()>&&
|
||||||
sys_variables().append(move(variable));
|
sys_variables().append(move(variable));
|
||||||
}
|
}
|
||||||
|
|
||||||
void ProcFS::add_sys_string(String&& name, Lockable<String>& var, Function<void()>&& notify_callback)
|
|
||||||
{
|
|
||||||
InterruptDisabler disabler;
|
|
||||||
|
|
||||||
SysVariable variable;
|
|
||||||
variable.name = move(name);
|
|
||||||
variable.type = SysVariable::Type::String;
|
|
||||||
variable.notify_callback = move(notify_callback);
|
|
||||||
variable.address = &var;
|
|
||||||
|
|
||||||
sys_variables().append(move(variable));
|
|
||||||
}
|
|
||||||
|
|
||||||
bool ProcFS::initialize()
|
bool ProcFS::initialize()
|
||||||
{
|
{
|
||||||
static Lockable<bool>* kmalloc_stack_helper;
|
static Lockable<bool>* kmalloc_stack_helper;
|
||||||
|
|
|
@ -32,7 +32,6 @@ public:
|
||||||
virtual NonnullRefPtr<Inode> root_inode() const override;
|
virtual NonnullRefPtr<Inode> root_inode() const override;
|
||||||
|
|
||||||
static void add_sys_bool(String&&, Lockable<bool>&, Function<void()>&& notify_callback = nullptr);
|
static void add_sys_bool(String&&, Lockable<bool>&, Function<void()>&& notify_callback = nullptr);
|
||||||
static void add_sys_string(String&&, Lockable<String>&, Function<void()>&& notify_callback = nullptr);
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
ProcFS();
|
ProcFS();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue