Added __unused to xValid, yValid and superview in 2 methods to prevent compile time warnings when building for release. This is due to NSAsserts being stripped out in release mode.