Jelajahi Sumber

Remove debug

Felix Paul Kühne 10 tahun lalu
induk
melakukan
435494e694
2 mengubah file dengan 4 tambahan dan 1 penghapusan
  1. 0 1
      PAPasscode/PAPasscodeViewController.m
  2. 4 0
      Sources/Reachability.m

+ 0 - 1
PAPasscode/PAPasscodeViewController.m

@@ -115,7 +115,6 @@
     CGFloat panelWidth = DIGIT_WIDTH*4+DIGIT_SPACING*3;
     if (_simple) {
         UIView *digitPanel = [[UIView alloc] initWithFrame:CGRectMake(0, 0, panelWidth, DIGIT_HEIGHT)];
-        NSLog(@"cw width %f, panel width %f",contentView.bounds.size.width, panelWidth);
         digitPanel.frame = CGRectOffset(digitPanel.frame, (contentView.bounds.size.width - panelWidth) / 2., PROMPT_HEIGHT);
         digitPanel.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin|UIViewAutoresizingFlexibleRightMargin;
         [contentView addSubview:digitPanel];

+ 4 - 0
Sources/Reachability.m

@@ -60,7 +60,11 @@ NSString *kReachabilityChangedNotification = @"kNetworkReachabilityChangedNotifi
 
 #pragma mark - Supporting functions
 
+#ifndef NDEBUG
 #define kShouldPrintReachabilityFlags 1
+#else
+#define kShouldPrintReachabilityFlags 0
+#endif
 
 static void PrintReachabilityFlags(SCNetworkReachabilityFlags flags, const char* comment)
 {