diff --git a/Source/SwiftLintCore/Extensions/SwiftSyntax+SwiftLint.swift b/Source/SwiftLintCore/Extensions/SwiftSyntax+SwiftLint.swift index 7fa40385d..fd9b4ae34 100644 --- a/Source/SwiftLintCore/Extensions/SwiftSyntax+SwiftLint.swift +++ b/Source/SwiftLintCore/Extensions/SwiftSyntax+SwiftLint.swift @@ -147,10 +147,6 @@ public extension ModifierListSyntax? { } } - var isFinal: Bool { - contains(tokenKind: .keyword(.final)) - } - private func contains(tokenKind: TokenKind) -> Bool { guard let modifiers = self else { return false @@ -347,12 +343,6 @@ public extension IdentifierExprSyntax { } } -public extension MemberAccessExprSyntax { - var isSelfAccess: Bool { - base?.as(IdentifierExprSyntax.self)?.isSelf == true - } -} - public extension ClosureCaptureItemSyntax { var capturesSelf: Bool { expression.as(IdentifierExprSyntax.self)?.isSelf == true diff --git a/Source/SwiftLintCore/Helpers/Stack.swift b/Source/SwiftLintCore/Helpers/Stack.swift index 0f1d1a69b..2d6eab3e9 100644 --- a/Source/SwiftLintCore/Helpers/Stack.swift +++ b/Source/SwiftLintCore/Helpers/Stack.swift @@ -5,11 +5,6 @@ public struct Stack { /// Creates an empty `Stack`. public init() {} - /// True if the stack has no elements. False otherwise. - public var isEmpty: Bool { - elements.isEmpty - } - /// The number of elements in this stack. public var count: Int { elements.count