From ada9dbf9199618eb69a1e97dd75f7c2b92666ff6 Mon Sep 17 00:00:00 2001 From: Valentin Shergin Date: Fri, 1 Mar 2019 22:07:27 -0800 Subject: [PATCH] Fabric: Removed `ImageNoLongerNeededException`, an old leftover Summary: Trivial. Reviewed By: JoshuaGross, mdvacca Differential Revision: D14286275 fbshipit-source-id: c29961eb11877da8ae8f14cb2a71cb5eee386fe0 --- ReactCommon/fabric/imagemanager/ImageRequest.h | 5 ----- .../fabric/imagemanager/platform/ios/ImageRequest.cpp | 6 ------ 2 files changed, 11 deletions(-) diff --git a/ReactCommon/fabric/imagemanager/ImageRequest.h b/ReactCommon/fabric/imagemanager/ImageRequest.h index 1f2ae5ed8a2..d955ce70cf7 100644 --- a/ReactCommon/fabric/imagemanager/ImageRequest.h +++ b/ReactCommon/fabric/imagemanager/ImageRequest.h @@ -24,11 +24,6 @@ namespace react { */ class ImageRequest final { public: - /* - * The exception which is thrown when `ImageRequest` is being deallocated - * if the future is not ready yet. - */ - class ImageNoLongerNeededException; /* * The default constructor diff --git a/ReactCommon/fabric/imagemanager/platform/ios/ImageRequest.cpp b/ReactCommon/fabric/imagemanager/platform/ios/ImageRequest.cpp index 81f00b726de..40020f7b6e2 100644 --- a/ReactCommon/fabric/imagemanager/platform/ios/ImageRequest.cpp +++ b/ReactCommon/fabric/imagemanager/platform/ios/ImageRequest.cpp @@ -10,12 +10,6 @@ namespace facebook { namespace react { -class ImageRequest::ImageNoLongerNeededException : public std::logic_error { - public: - ImageNoLongerNeededException() - : std::logic_error("Image no longer needed.") {} -}; - ImageRequest::ImageRequest(const ImageSource &imageSource) : imageSource_(imageSource) { coordinator_ = std::make_shared();