From c833946a1fb6bf7bab355433faeff98d4531e1b5 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Wed, 28 Jun 2017 15:16:44 -0400 Subject: [PATCH] Remove const NSObject global presubmit. I added this when we were moving from gcc to clang on OS X many years ago. Now that gcc has been deprecated on mac for many years, this is safe to remove (clang errors on this pattern). This check took 0.6s during `git cl presubmit` on a recent change of mine, so it should speed presubmit up a bit. Bug: none Change-Id: Ia29b046807582e056115519fb5b34ee8a1b9ff91 Reviewed-on: https://chromium-review.googlesource.com/553238 Reviewed-by: Dirk Pranke Commit-Queue: Nico Weber --- presubmit_canned_checks.py | 30 ------------------------------ tests/presubmit_unittest.py | 7 ++++--- 2 files changed, 4 insertions(+), 33 deletions(-) diff --git a/presubmit_canned_checks.py b/presubmit_canned_checks.py index 9535c6c10..99aab0470 100644 --- a/presubmit_canned_checks.py +++ b/presubmit_canned_checks.py @@ -976,33 +976,6 @@ def _GerritOwnerAndReviewers(input_api, email_regexp, approval_needed=False): return owner_email, reviewers -def _CheckConstNSObject(input_api, output_api, source_file_filter): - """Checks to make sure no objective-c files have |const NSSomeClass*|.""" - pattern = input_api.re.compile( - r'(?