瀏覽代碼

Remove debug

Felix Paul Kühne 10 年之前
父節點
當前提交
435494e694
共有 2 個文件被更改,包括 4 次插入1 次删除
  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)
 {