summaryrefslogtreecommitdiff
path: root/tools/codeformat.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/codeformat.py')
-rwxr-xr-xtools/codeformat.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/tools/codeformat.py b/tools/codeformat.py
index 5aef4ccfb..364037d2f 100755
--- a/tools/codeformat.py
+++ b/tools/codeformat.py
@@ -76,9 +76,6 @@ C_EXTS = (
PY_EXTS = (".py",)
-FIXUP_REPLACEMENTS = ((re.compile("sizeof\(([a-z_]+)\) \*\(([a-z_]+)\)"), r"sizeof(\1) * (\2)"),)
-
-
def list_files(paths, exclusions=None, prefix=""):
files = set()
for pattern in paths:
@@ -124,10 +121,6 @@ def fixup_c(filename):
if directive == "endif":
dedent_stack.pop()
- # Apply general regex-based fixups.
- for regex, replacement in FIXUP_REPLACEMENTS:
- l = regex.sub(replacement, l)
-
# Write out line.
f.write(l)