mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Remove redundant property from ImageRequest
Summary: Changelog: [internal] `moved_`, introduced in D8526571 (https://github.com/facebook/react-native/commit/979ea2094e74ae8da0288fd5038f1f2838bd7763), no longer servers its purpose. Let's remove it. Reviewed By: JoshuaGross Differential Revision: D24475715 fbshipit-source-id: 162d1fc4ed3d4a67885d8f140904dd80763dcaa0
This commit is contained in:
1 parent
16044b3c2a
commit
bfbd841f38
2 files changed
-6
No files matched your search
@@ -96,11 +96,6 @@ class ImageRequest final {
|
||||
* Function we can call to cancel image request (see destructor).
|
||||
*/
|
||||
std::function<void(void)> cancelRequest_;
|
||||
|
||||
/*
|
||||
* Indicates that the object was moved and hence cannot be used anymore.
|
||||
*/
|
||||
bool moved_{false};
|
||||
};
|
||||
|
||||
} // namespace react
|
||||
|
||||
@@ -21,7 +21,6 @@ ImageRequest::ImageRequest(ImageRequest &&other) noexcept
|
||||
: imageSource_(std::move(other.imageSource_)),
|
||||
telemetry_(std::move(other.telemetry_)),
|
||||
coordinator_(std::move(other.coordinator_)) {
|
||||
other.moved_ = true;
|
||||
other.coordinator_ = nullptr;
|
||||
other.cancelRequest_ = nullptr;
|
||||
other.telemetry_ = nullptr;
|
||||
|
||||
Reference in new issue
Block a user