Skip to content

Commit

Permalink
remove unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Frazer Clews committed Feb 7, 2020
1 parent c2fce1c commit d974b9c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions modules/camera/camera_ios.mm
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,8 @@ - (void)captureOutput:(AVCaptureOutput *)captureOutput didOutputSampleBuffer:(CM
// do Y
int new_width = CVPixelBufferGetWidthOfPlane(pixelBuffer, 0);
int new_height = CVPixelBufferGetHeightOfPlane(pixelBuffer, 0);
int _bytes_per_row = CVPixelBufferGetBytesPerRowOfPlane(pixelBuffer, 0);

if ((width[0] != new_width) || (height[0] != new_height)) {
// printf("Camera Y plane %i, %i - %i\n", new_width, new_height, bytes_per_row);

width[0] = new_width;
height[0] = new_height;
img_data[0].resize(new_width * new_height);
Expand All @@ -186,11 +183,8 @@ - (void)captureOutput:(AVCaptureOutput *)captureOutput didOutputSampleBuffer:(CM
// do CbCr
int new_width = CVPixelBufferGetWidthOfPlane(pixelBuffer, 1);
int new_height = CVPixelBufferGetHeightOfPlane(pixelBuffer, 1);
int bytes_per_row = CVPixelBufferGetBytesPerRowOfPlane(pixelBuffer, 1);

if ((width[1] != new_width) || (height[1] != new_height)) {
// printf("Camera CbCr plane %i, %i - %i\n", new_width, new_height, bytes_per_row);

width[1] = new_width;
height[1] = new_height;
img_data[1].resize(2 * new_width * new_height);
Expand Down
2 changes: 1 addition & 1 deletion platform/iphone/in_app_store.mm
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ - (void)paymentQueue:(SKPaymentQueue *)queue updatedTransactions:(NSArray *)tran
ERR_FAIL_COND_V(!params.has("product_id"), ERR_INVALID_PARAMETER);

NSString *pid = [[[NSString alloc] initWithUTF8String:String(params["product_id"]).utf8().get_data()] autorelease];
SKPayment *payment = [SKPayment +paymentWithProduct:pid];
SKPayment *payment = [SKPayment paymentWithProductIdentifier:pid];
SKPaymentQueue *defq = [SKPaymentQueue defaultQueue];
[defq addPayment:payment];
printf("purchase sent!\n");
Expand Down

0 comments on commit d974b9c

Please sign in to comment.