Skip to content

Commit 9dcf089

Browse files
authored
Remove unused function to reduce confusion (#33)
1 parent aeb1bd8 commit 9dcf089

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/context/Context.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -207,21 +207,6 @@ export class Context {
207207
return false;
208208
}
209209

210-
public atNestedEntityKeyLevel(parentKey: string) {
211-
const parentKeyIdx = this.propertyPath.indexOf(parentKey);
212-
if (parentKeyIdx === -1 || !this.hasLogicalId) {
213-
return false;
214-
}
215-
216-
const childKeyIdx = parentKeyIdx + 1;
217-
218-
return (
219-
this.hasLogicalId &&
220-
((this.propertyPath.length === childKeyIdx && parentKey !== this.text) ||
221-
(this.propertyPath.length === childKeyIdx + 1 && this.propertyPath[childKeyIdx] === this.text))
222-
);
223-
}
224-
225210
public getMappingKeys(): string[] {
226211
if (!NodeType.isMappingNode(this.node, this.documentType)) {
227212
return [];

0 commit comments

Comments
 (0)