summaryrefslogtreecommitdiff
path: root/src/core/hle/result.h
diff options
context:
space:
mode:
authorGravatar Yuri Kunde Schlesner2017-06-18 19:03:15 -0700
committerGravatar Yuri Kunde Schlesner2017-06-18 19:03:15 -0700
commit723dc644faa6e29250d1b7fa914dfb7c75d8aec5 (patch)
treec7ad927e2cbe1424046e279b3212ac895f4b1e87 /src/core/hle/result.h
parentResultVal: Add an rvalue overload of Unwrap() (diff)
downloadyuzu-723dc644faa6e29250d1b7fa914dfb7c75d8aec5.tar.gz
yuzu-723dc644faa6e29250d1b7fa914dfb7c75d8aec5.tar.xz
yuzu-723dc644faa6e29250d1b7fa914dfb7c75d8aec5.zip
ResultVal: Remove MoveFrom()
Replace it with std::move(result_val).Unwrap(), or Foo().Unwrap() in case you already have an rvalue.
Diffstat (limited to 'src/core/hle/result.h')
-rw-r--r--src/core/hle/result.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/core/hle/result.h b/src/core/hle/result.h
index 55bd8d22f..47b6e2b23 100644
--- a/src/core/hle/result.h
+++ b/src/core/hle/result.h
@@ -398,10 +398,6 @@ public:
398 return std::move(**this); 398 return std::move(**this);
399 } 399 }
400 400
401 T&& MoveFrom() {
402 return std::move(Unwrap());
403 }
404
405private: 401private:
406 // A union is used to allocate the storage for the value, while allowing us to construct and 402 // A union is used to allocate the storage for the value, while allowing us to construct and
407 // destruct it at will. 403 // destruct it at will.