Remove unused variable

This commit is contained in:
Prianka Liz Kariat 2023-05-03 15:57:37 +05:30
parent c82a27599b
commit e5cfd23882

View File

@ -89,8 +89,6 @@ static NSString *const kTaskGraphName =
// Capturing `self` as weak in order to avoid `self` being kept in memory // Capturing `self` as weak in order to avoid `self` being kept in memory
// and cause a retain cycle, after self is set to `nil`. // and cause a retain cycle, after self is set to `nil`.
MPPImageClassifier *__weak weakSelf = self; MPPImageClassifier *__weak weakSelf = self;
dispatch_queue_t callbackQueue =
dispatch_queue_create("com.mediapipe.tasks.imageClassifierCallbackQueue", NULL);
packetsCallback = [=](absl::StatusOr<PacketMap> status_or_packets) { packetsCallback = [=](absl::StatusOr<PacketMap> status_or_packets) {
// Check to ensure that the delegate method is not called on a nil object // Check to ensure that the delegate method is not called on a nil object
// leading to a segmentation fault, we check `weakSelf` is `nil` before // leading to a segmentation fault, we check `weakSelf` is `nil` before