Skip to content

Commit c0c5d22

Browse files
committed
query: drop query.supports_dts_comp() getter method
Signed-off-by: Théo Lebrun <[email protected]>
1 parent e1fecd1 commit c0c5d22

File tree

4 files changed

+3
-7
lines changed

4 files changed

+3
-7
lines changed

elixir/filters/dtscompcode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def __init__(self, *args, **kwargs):
1313

1414
def check_if_applies(self, ctx) -> bool:
1515
return super().check_if_applies(ctx) and \
16-
ctx.query.supports_dts_comp() and \
16+
ctx.query.dts_comp_support and \
1717
extension_matches(ctx.filepath, {'c', 'cc', 'cpp', 'c++', 'cxx', 'h', 's'})
1818

1919
def transform_raw_code(self, ctx, code: str) -> str:

elixir/filters/dtscompdocs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def __init__(self, *args, **kwargs):
1313

1414
def check_if_applies(self, ctx) -> bool:
1515
return super().check_if_applies(ctx) and \
16-
ctx.query.supports_dts_comp() and \
16+
ctx.query.dts_comp_support and \
1717
ctx.filepath.startswith('/Documentation/devicetree/bindings')
1818

1919
def transform_raw_code(self, ctx, code: str) -> str:

elixir/filters/dtscompdts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def __init__(self, *args, **kwargs):
1111

1212
def check_if_applies(self, ctx) -> bool:
1313
return super().check_if_applies(ctx) and \
14-
ctx.query.supports_dts_comp() and \
14+
ctx.query.dts_comp_support and \
1515
extension_matches(ctx.filepath, {'dts', 'dtsi'})
1616

1717
def transform_raw_code(self, ctx, code: str) -> str:

elixir/query.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,6 @@ def getEnv(self):
7979
def close(self):
8080
self.db.close()
8181

82-
# Get state of dts_comp_support
83-
def supports_dts_comp(self):
84-
return self.dts_comp_support
85-
8682
# Check if a dts compatible string exists
8783
def dts_comp_exists(self, ident):
8884
if self.dts_comp_support:

0 commit comments

Comments
 (0)