summaryrefslogtreecommitdiff
path: root/buildscripts/linter/simplecpplint.py
diff options
context:
space:
mode:
Diffstat (limited to 'buildscripts/linter/simplecpplint.py')
-rw-r--r--buildscripts/linter/simplecpplint.py15
1 files changed, 0 insertions, 15 deletions
diff --git a/buildscripts/linter/simplecpplint.py b/buildscripts/linter/simplecpplint.py
index 2315f2192e7..6990920076b 100644
--- a/buildscripts/linter/simplecpplint.py
+++ b/buildscripts/linter/simplecpplint.py
@@ -129,8 +129,6 @@ class Linter:
self.feature_flag_ignore_fcv_check_comments = []
self._error_count = 0
- self.found_config_header = False
-
def lint(self):
"""Run linter, returning error count."""
# steps:
@@ -153,7 +151,6 @@ class Linter:
continue
self._check_for_mongo_polyfill(linenum)
- self._check_for_mongo_config_header(linenum)
self._check_for_collection_sharding_runtime(linenum)
self._check_for_rand(linenum)
self._check_for_c_stdlib_headers(linenum)
@@ -290,18 +287,6 @@ class Linter:
return linenum
return linenum
- def _check_for_mongo_config_header(self, linenum):
- """Check for a config file."""
- if self.found_config_header:
- return
-
- line = self.clean_lines[linenum]
- self.found_config_header = line.startswith('#include "mongo/config.h"')
-
- if not self.found_config_header and "MONGO_CONFIG_" in line:
- self._error(linenum, 'build/config_h_include',
- 'MONGO_CONFIG define used without prior inclusion of config.h.')
-
def _check_for_generic_fcv(self, linenum):
line = self.clean_lines[linenum]
if _RE_GENERIC_FCV_REF.search(line):