summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorGravatar Lioncash2019-03-10 18:26:09 -0400
committerGravatar Lioncash2019-03-10 18:26:12 -0400
commitf7ec0bcfc2e638530af3254386917e2d39a25e9c (patch)
tree8d1236145faeec66e56554ef45b1fcf9ce654978 /src/core
parentcore/hle/result: Relocate IPC error code to ipc_helpers (diff)
downloadyuzu-f7ec0bcfc2e638530af3254386917e2d39a25e9c.tar.gz
yuzu-f7ec0bcfc2e638530af3254386917e2d39a25e9c.tar.xz
yuzu-f7ec0bcfc2e638530af3254386917e2d39a25e9c.zip
core/hle/result: Remove now-unused constructor for ResultCode
Now that the final stray ErrorDescription member was relocated, we can finally remove it and its relevant constructor in the ResultCode union.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hle/result.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/core/hle/result.h b/src/core/hle/result.h
index 9f6ac39e6..fca07532e 100644
--- a/src/core/hle/result.h
+++ b/src/core/hle/result.h
@@ -13,13 +13,6 @@
13// All the constants in this file come from http://switchbrew.org/index.php?title=Error_codes 13// All the constants in this file come from http://switchbrew.org/index.php?title=Error_codes
14 14
15/** 15/**
16 * Detailed description of the error. Code 0 always means success.
17 */
18enum class ErrorDescription : u32 {
19 Success = 0,
20};
21
22/**
23 * Identifies the module which caused the error. Error codes can be propagated through a call 16 * Identifies the module which caused the error. Error codes can be propagated through a call
24 * chain, meaning that this doesn't always correspond to the module where the API call made is 17 * chain, meaning that this doesn't always correspond to the module where the API call made is
25 * contained. 18 * contained.
@@ -132,9 +125,6 @@ union ResultCode {
132 125
133 constexpr explicit ResultCode(u32 raw) : raw(raw) {} 126 constexpr explicit ResultCode(u32 raw) : raw(raw) {}
134 127
135 constexpr ResultCode(ErrorModule module, ErrorDescription description)
136 : ResultCode(module, static_cast<u32>(description)) {}
137
138 constexpr ResultCode(ErrorModule module_, u32 description_) 128 constexpr ResultCode(ErrorModule module_, u32 description_)
139 : raw(module.FormatValue(module_) | description.FormatValue(description_)) {} 129 : raw(module.FormatValue(module_) | description.FormatValue(description_)) {}
140 130