This is an automated email from the ASF dual-hosted git repository. github-merge-queue[bot] pushed a commit to branch gh-readonly-queue/main/pr-9183-2e13ab99ec56c205379fa46c771a1ccfc2196aa1 in repository https://gitbox.apache.org/repos/asf/texera.git
commit 66e46b39331fcee8e0eeee323147a875aa4be04c Author: Xinyuan Lin <[email protected]> AuthorDate: Tue Oct 27 21:44:01 2026 +0000 refactor(infra): drop dead is_subsection_header helper (#9183) ### What changes were proposed in this PR? Removes the uncalled helper function `is_subsection_header` (`bin/licensing/concat_license_binary.py:110-115`). Subsection matching was inlined directly into `parse()` (lines 177-182), leaving the separate definition with 0 callers across the repository. **+0/-8 lines.** Pure deletion with no behaviour change. ### Any related issues, documentation, discussions? Closes #9182. ### How was this PR tested? - `python -m py_compile bin/licensing/concat_license_binary.py` passed with 0 errors. - `python -m pytest bin/licensing` passed (53 passed in 0.52s). - Verified 0 callers repo-wide: `git grep -nw "is_subsection_header"` (1 hit, now 0) ### Was this PR authored or co-authored using generative AI tooling? Generated-by: Antigravity (Claude Opus 5.5) --- bin/licensing/concat_license_binary.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/bin/licensing/concat_license_binary.py b/bin/licensing/concat_license_binary.py index 9d391916d8..1efcc3d8a5 100755 --- a/bin/licensing/concat_license_binary.py +++ b/bin/licensing/concat_license_binary.py @@ -107,14 +107,6 @@ class Group: return any(s.entries for s in self.subsections.values()) -def is_subsection_header(line: str) -> bool: - s = line.rstrip() - if not s.endswith(":"): - return False - return any(s == h or s.startswith(p) for p, h in - ((p, p) for p in SUBSECTION_ORDER)) - - def entry_id(entry: list[str]) -> str: """Identifier used for deduplication: the trimmed text after the leading ' - '. For multi-line entries (Source files derived), the
