Skip to content

Commit 6c72ff3

Browse files
authored
Merge pull request #84 from atcoder/patch/expander
remove local include function
2 parents 25e0f6c + 1f77d98 commit 6c72ff3

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

expander.py

-9
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313

1414

1515
class Expander:
16-
local_include = re.compile(
17-
r'#include\s*"([a-z_]*(|.hpp))"\s*')
1816
atcoder_include = re.compile(
1917
r'#include\s*["<](atcoder/[a-z_]*(|.hpp))[">]\s*')
2018

@@ -61,15 +59,8 @@ def expand_acl(self, acl_file_path: Path) -> List[str]:
6159
name = m.group(1)
6260
result.extend(self.expand_acl(self.find_acl(name)))
6361
continue
64-
65-
m = self.local_include.match(line)
66-
if m:
67-
name = m.group(1)
68-
result.extend(self.expand_acl(acl_file_path.parent / name))
69-
continue
7062

7163
result.append(line)
72-
7364
return result
7465

7566
def expand(self, source: str) -> str:

0 commit comments

Comments
 (0)