Remove __DEV__ checks around warnings

If I'm not mistaken, `warning` is a no-op in production builds, so the explicit check for `if (__DEV__) {}` seems unnecessary.