generate_notice.py: don't check for strings we don't use any more.
Test: `repo upload .`
Change-Id: Idba382c22fb562ca9ba5b9bbdfd3800279b04c25
diff --git a/libc/tools/generate_notice.py b/libc/tools/generate_notice.py
index 505708a..69d2d00 100755
--- a/libc/tools/generate_notice.py
+++ b/libc/tools/generate_notice.py
@@ -45,14 +45,6 @@
return True
-def is_auto_generated(content):
- if "Generated by gensyscalls.py" in content or "generated by genserv.py" in content:
- return True
- if "This header was automatically generated from a Linux kernel header" in content:
- return True
- return False
-
-
def is_copyright_end(line: str, first_line_was_hash: bool) -> bool:
endings = [
" $FreeBSD: ",
@@ -153,10 +145,6 @@
warn_verbose("ignoring short file %s" % path)
return
- if is_auto_generated(content):
- warn_verbose("ignoring auto-generated file %s" % path)
- return
-
if not "Copyright" in content:
if "public domain" in content.lower():
warn_verbose("ignoring public domain file %s" % path)