diff --git a/Userland/DevTools/Inspector/main.cpp b/Userland/DevTools/Inspector/main.cpp index c1274143d3..d0a0d643e9 100644 --- a/Userland/DevTools/Inspector/main.cpp +++ b/Userland/DevTools/Inspector/main.cpp @@ -9,7 +9,6 @@ #include "RemoteObjectPropertyModel.h" #include "RemoteProcess.h" #include -#include #include #include #include @@ -23,6 +22,7 @@ #include #include #include +#include using namespace Inspector; @@ -97,19 +97,6 @@ int main(int argc, char** argv) return 1; } - auto all_processes = Core::ProcessStatisticsReader::get_all(); - for (auto& it : all_processes.value()) { - if (it.value.pid != pid) - continue; - if (it.value.pledge.is_empty()) - break; - if (!it.value.pledge.contains("accept")) { - GUI::MessageBox::show(window, String::formatted("{} ({}) has not pledged accept!", it.value.name, pid), "Error", GUI::MessageBox::Type::Error); - return 1; - } - break; - } - window->set_title("Inspector"); window->resize(685, 500); window->set_icon(app_icon.bitmap_for_size(16));