From c594d5fec99ead4387a875b191370c9b57daa653 Mon Sep 17 00:00:00 2001 From: Cory Alder Date: Wed, 26 Feb 2014 15:15:37 -0800 Subject: [PATCH] Removed warning of unused variable (offset) `RNGridMenu`'s method `-(void)layoutAsGrid` had an unused variable (`NSInteger offset = 0`) that was not used in the method. This causes a warning under many configurations. --- RNGridMenu.m | 1 - 1 file changed, 1 deletion(-) diff --git a/RNGridMenu.m b/RNGridMenu.m index 8a0a1f5..74cb892 100644 --- a/RNGridMenu.m +++ b/RNGridMenu.m @@ -545,7 +545,6 @@ - (void)layoutAsGrid { NSInteger rowLength = ceilf(itemCount / (CGFloat)rowCount); NSInteger rowStartIndex = i * rowLength; - NSInteger offset = 0; if ((i + 1) * rowLength > itemCount) { rowLength = itemCount - i * rowLength; }