mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
LibWebView: Remove ProcessManager debug spam
This commit is contained in:
parent
881e970846
commit
a0874dc870
Notes:
sideshowbarker
2024-07-17 05:05:51 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/LadybirdBrowser/ladybird/commit/a0874dc870
1 changed files with 0 additions and 4 deletions
|
@ -99,7 +99,6 @@ ProcessInfo* ProcessManager::find_process(pid_t pid)
|
|||
void ProcessManager::add_process(ProcessType type, pid_t pid)
|
||||
{
|
||||
Threading::MutexLocker locker { m_lock };
|
||||
dbgln("ProcessManager::add_process({}, {})", process_name_from_type(type), pid);
|
||||
if (auto* existing_process = find_process(pid)) {
|
||||
existing_process->type = type;
|
||||
return;
|
||||
|
@ -111,7 +110,6 @@ void ProcessManager::add_process(ProcessType type, pid_t pid)
|
|||
void ProcessManager::add_process(pid_t pid, Core::MachPort&& port)
|
||||
{
|
||||
Threading::MutexLocker locker { m_lock };
|
||||
dbgln("ProcessManager::add_process({}, {:p})", pid, port.port());
|
||||
if (auto* existing_process = find_process(pid)) {
|
||||
existing_process->child_task_port = move(port);
|
||||
return;
|
||||
|
@ -125,8 +123,6 @@ void ProcessManager::remove_process(pid_t pid)
|
|||
Threading::MutexLocker locker { m_lock };
|
||||
m_statistics.processes.remove_first_matching([&](auto const& info) {
|
||||
if (info->pid == pid) {
|
||||
auto type = verify_cast<ProcessInfo>(*info).type;
|
||||
dbgln("ProcessManager: Remove process {} ({})", process_name_from_type(type), pid);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue