From dd2cbca3f4330cc9f807f9c9d2af86e50f447094 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 6 Dec 2018 01:37:39 -0500 Subject: [PATCH] hle/service: Remove unnecessary using declarations Only one usage of the specified objects made use of the lack of namespacing. Given the low usage, we can just remove these. --- src/core/hle/service/service.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/core/hle/service/service.cpp b/src/core/hle/service/service.cpp index a4b7e6514..d88ce203f 100644 --- a/src/core/hle/service/service.cpp +++ b/src/core/hle/service/service.cpp @@ -54,11 +54,6 @@ #include "core/hle/service/ssl_c.h" #include "core/hle/service/y2r_u.h" -using Kernel::ClientPort; -using Kernel::ServerPort; -using Kernel::ServerSession; -using Kernel::SharedPtr; - namespace Service { const std::array service_module_map{ @@ -174,7 +169,8 @@ void ServiceFrameworkBase::ReportUnimplementedFunction(u32* cmd_buf, const Funct cmd_buf[1] = 0; } -void ServiceFrameworkBase::HandleSyncRequest(SharedPtr server_session) { +void ServiceFrameworkBase::HandleSyncRequest( + Kernel::SharedPtr server_session) { Kernel::KernelSystem& kernel = Core::System::GetInstance().Kernel(); auto thread = kernel.GetThreadManager().GetCurrentThread(); // TODO(wwylele): avoid GetPointer @@ -222,7 +218,7 @@ static bool AttemptLLE(const ServiceModuleInfo& service_module) { service_module.name); return false; } - SharedPtr process; + Kernel::SharedPtr process; loader->Load(process); LOG_DEBUG(Service, "Service module \"{}\" has been successfully loaded.", service_module.name); return true;