From 1f77d981bd024de4f40f51d5a00ef55b9848f7cc Mon Sep 17 00:00:00 2001 From: Kohei Morita Date: Mon, 14 Dec 2020 16:29:46 +0900 Subject: [PATCH] remove local include function --- expander.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/expander.py b/expander.py index 2f98f88..ff773da 100755 --- a/expander.py +++ b/expander.py @@ -13,8 +13,6 @@ class Expander: - local_include = re.compile( - r'#include\s*"([a-z_]*(|.hpp))"\s*') atcoder_include = re.compile( r'#include\s*["<](atcoder/[a-z_]*(|.hpp))[">]\s*') @@ -61,15 +59,8 @@ def expand_acl(self, acl_file_path: Path) -> List[str]: name = m.group(1) result.extend(self.expand_acl(self.find_acl(name))) continue - - m = self.local_include.match(line) - if m: - name = m.group(1) - result.extend(self.expand_acl(acl_file_path.parent / name)) - continue result.append(line) - return result def expand(self, source: str) -> str: