From 8bfb54742769ac683f98a9350af522009529a9ef Mon Sep 17 00:00:00 2001 From: Saad Jutt Date: Thu, 20 May 2021 23:00:59 +0500 Subject: [PATCH] chore: removed redundant property from parsedMacros --- src/utils/parseMacros.spec.ts | 8 -------- src/utils/parseMacros.ts | 3 --- 2 files changed, 11 deletions(-) diff --git a/src/utils/parseMacros.spec.ts b/src/utils/parseMacros.spec.ts index ce33f37..a238ff0 100644 --- a/src/utils/parseMacros.spec.ts +++ b/src/utils/parseMacros.spec.ts @@ -20,7 +20,6 @@ describe('parseMacros', () => { endLineNumber: 3, parentMacro: '', hasMacroNameInMend: false, - hasParentheses: false, mismatchedMendMacroName: '' }) }) @@ -43,7 +42,6 @@ describe('parseMacros', () => { endLineNumber: 3, parentMacro: '', hasMacroNameInMend: false, - hasParentheses: false, mismatchedMendMacroName: '' }) }) @@ -66,7 +64,6 @@ describe('parseMacros', () => { endLineNumber: 3, parentMacro: '', hasMacroNameInMend: false, - hasParentheses: false, mismatchedMendMacroName: '' }) }) @@ -90,7 +87,6 @@ describe('parseMacros', () => { endLineNumber: 4, parentMacro: '', hasMacroNameInMend: false, - hasParentheses: false, mismatchedMendMacroName: '' }) }) @@ -116,7 +112,6 @@ describe('parseMacros', () => { endLineNumber: 3, parentMacro: '', hasMacroNameInMend: false, - hasParentheses: false, mismatchedMendMacroName: '' }) expect(macros).toContainEqual({ @@ -129,7 +124,6 @@ describe('parseMacros', () => { endLineNumber: 6, parentMacro: '', hasMacroNameInMend: true, - hasParentheses: true, mismatchedMendMacroName: '' }) }) @@ -155,7 +149,6 @@ describe('parseMacros', () => { endLineNumber: 6, parentMacro: '', hasMacroNameInMend: true, - hasParentheses: true, mismatchedMendMacroName: '' }) expect(macros).toContainEqual({ @@ -168,7 +161,6 @@ describe('parseMacros', () => { endLineNumber: 5, parentMacro: 'test', hasMacroNameInMend: false, - hasParentheses: false, mismatchedMendMacroName: '' }) }) diff --git a/src/utils/parseMacros.ts b/src/utils/parseMacros.ts index 656dc41..89728ba 100644 --- a/src/utils/parseMacros.ts +++ b/src/utils/parseMacros.ts @@ -12,7 +12,6 @@ interface Macro { termination: string parentMacro: string hasMacroNameInMend: boolean - hasParentheses: boolean mismatchedMendMacroName: string } @@ -52,7 +51,6 @@ export const parseMacros = (text: string, config?: LintConfig): Macro[] => { parentMacro: macroStack.length ? macroStack[macroStack.length - 1].name : '', - hasParentheses: trimmedStatement.endsWith('()'), hasMacroNameInMend: false, mismatchedMendMacroName: '', declarationLine: line, @@ -79,7 +77,6 @@ export const parseMacros = (text: string, config?: LintConfig): Macro[] => { startLineNumber: null, endLineNumber: index + 1, parentMacro: '', - hasParentheses: false, hasMacroNameInMend: false, mismatchedMendMacroName: '', declarationLine: '',