From 70d4a3b386ed0d8a8cae5780f685f2bcbd6f789f Mon Sep 17 00:00:00 2001 From: Kevin Neville Date: Thu, 1 Jun 2023 20:42:37 +0200 Subject: [PATCH] fix: #7586, Remove unused check_new method --- .changes/unreleased/Fixes-20230601-204157.yaml | 6 ++++++ core/dbt/graph/selector_methods.py | 3 --- 2 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 .changes/unreleased/Fixes-20230601-204157.yaml diff --git a/.changes/unreleased/Fixes-20230601-204157.yaml b/.changes/unreleased/Fixes-20230601-204157.yaml new file mode 100644 index 00000000000..fb6ca636e1e --- /dev/null +++ b/.changes/unreleased/Fixes-20230601-204157.yaml @@ -0,0 +1,6 @@ +kind: Fixes +body: Remove unused check_new method +time: 2023-06-01T20:41:57.556342+02:00 +custom: + Author: kevinneville + Issue: "7586" diff --git a/core/dbt/graph/selector_methods.py b/core/dbt/graph/selector_methods.py index e132175e972..727d7b76519 100644 --- a/core/dbt/graph/selector_methods.py +++ b/core/dbt/graph/selector_methods.py @@ -569,9 +569,6 @@ def check_modified_contract(old: Optional[SelectorTarget], new: SelectorTarget) return check_modified_contract - def check_new(self, old: Optional[SelectorTarget], new: SelectorTarget) -> bool: - return old is None - def search(self, included_nodes: Set[UniqueId], selector: str) -> Iterator[UniqueId]: if self.previous_state is None or self.previous_state.manifest is None: raise DbtRuntimeError("Got a state selector method, but no comparison manifest")