Skip to content

Commit

Permalink
remove local include function
Browse files Browse the repository at this point in the history
  • Loading branch information
yosupo06 committed Dec 14, 2020
1 parent 25e0f6c commit 1f77d98
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions expander.py
Original file line number Diff line number Diff line change
Expand Up @@ -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*')

Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 1f77d98

Please sign in to comment.