diff options
| author | 2020-07-17 13:18:31 +1000 | |
|---|---|---|
| committer | 2020-07-17 13:18:31 +1000 | |
| commit | adbf5ca50bdb49e185bab7ac4cedcab16dbd8f03 (patch) | |
| tree | 688cef6547204074ccbd664f4b4da292704a941f /src/core/hle/kernel/svc.cpp | |
| parent | Merge pull request #4358 from lioncash/unused5 (diff) | |
| parent | kernel: Remove unused variables (diff) | |
| download | yuzu-adbf5ca50bdb49e185bab7ac4cedcab16dbd8f03.tar.gz yuzu-adbf5ca50bdb49e185bab7ac4cedcab16dbd8f03.tar.xz yuzu-adbf5ca50bdb49e185bab7ac4cedcab16dbd8f03.zip | |
Merge pull request #4357 from lioncash/unused4
kernel: Remove unused variables
Diffstat (limited to 'src/core/hle/kernel/svc.cpp')
| -rw-r--r-- | src/core/hle/kernel/svc.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp index 5db19dcf3..01ae57053 100644 --- a/src/core/hle/kernel/svc.cpp +++ b/src/core/hle/kernel/svc.cpp | |||
| @@ -458,9 +458,7 @@ static ResultCode WaitSynchronization(Core::System& system, Handle* index, VAddr | |||
| 458 | return ERR_OUT_OF_RANGE; | 458 | return ERR_OUT_OF_RANGE; |
| 459 | } | 459 | } |
| 460 | 460 | ||
| 461 | auto* const thread = system.CurrentScheduler().GetCurrentThread(); | ||
| 462 | auto& kernel = system.Kernel(); | 461 | auto& kernel = system.Kernel(); |
| 463 | using ObjectPtr = Thread::ThreadSynchronizationObjects::value_type; | ||
| 464 | Thread::ThreadSynchronizationObjects objects(handle_count); | 462 | Thread::ThreadSynchronizationObjects objects(handle_count); |
| 465 | const auto& handle_table = kernel.CurrentProcess()->GetHandleTable(); | 463 | const auto& handle_table = kernel.CurrentProcess()->GetHandleTable(); |
| 466 | 464 | ||
| @@ -1750,9 +1748,9 @@ static void SignalProcessWideKey(Core::System& system, VAddr condition_variable_ | |||
| 1750 | // Only process up to 'target' threads, unless 'target' is less equal 0, in which case process | 1748 | // Only process up to 'target' threads, unless 'target' is less equal 0, in which case process |
| 1751 | // them all. | 1749 | // them all. |
| 1752 | std::size_t last = waiting_threads.size(); | 1750 | std::size_t last = waiting_threads.size(); |
| 1753 | if (target > 0) | 1751 | if (target > 0) { |
| 1754 | last = std::min(waiting_threads.size(), static_cast<std::size_t>(target)); | 1752 | last = std::min(waiting_threads.size(), static_cast<std::size_t>(target)); |
| 1755 | auto& time_manager = kernel.TimeManager(); | 1753 | } |
| 1756 | for (std::size_t index = 0; index < last; ++index) { | 1754 | for (std::size_t index = 0; index < last; ++index) { |
| 1757 | auto& thread = waiting_threads[index]; | 1755 | auto& thread = waiting_threads[index]; |
| 1758 | 1756 | ||
| @@ -1763,7 +1761,6 @@ static void SignalProcessWideKey(Core::System& system, VAddr condition_variable_ | |||
| 1763 | 1761 | ||
| 1764 | const std::size_t current_core = system.CurrentCoreIndex(); | 1762 | const std::size_t current_core = system.CurrentCoreIndex(); |
| 1765 | auto& monitor = system.Monitor(); | 1763 | auto& monitor = system.Monitor(); |
| 1766 | auto& memory = system.Memory(); | ||
| 1767 | 1764 | ||
| 1768 | // Atomically read the value of the mutex. | 1765 | // Atomically read the value of the mutex. |
| 1769 | u32 mutex_val = 0; | 1766 | u32 mutex_val = 0; |