Skip to content

Commit 374b1d6

Browse files
committed
Remove warnings
1 parent bccc5c1 commit 374b1d6

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

Core/Sources/CodeiumService/CodeiumAuthService.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ public final class CodeiumAuthService {
1616

1717
public func signIn(token: String) async throws {
1818
let key = try await generate(token: token)
19-
let info = Bundle.main.infoDictionary
2019
try keychain.set(key, key: codeiumKeyKey)
2120
}
2221

Core/Sources/PromptToCodeService/CopilotPromptToCodeAPI.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ final class CopilotPromptToCodeAPI: PromptToCodeAPI {
2222
extraSystemPrompt: String?
2323
) async throws -> AsyncThrowingStream<(code: String, description: String), Error> {
2424
let copilotService = try GitHubCopilotSuggestionService(projectRootURL: projectRootURL)
25-
let relativePath = {
25+
let _ = {
2626
let filePath = fileURL.path
2727
let rootPath = projectRootURL.path
2828
if let range = filePath.range(of: rootPath),

Core/Sources/Service/SuggestionCommandHandler/WindowBaseCommandHandler.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ struct WindowBaseCommandHandler: SuggestionCommandHandler {
147147
defer { presenter.markAsProcessing(false) }
148148

149149
let fileURL = try await Environment.fetchCurrentFileURL()
150-
let (workspace, filespace) = try await Workspace.fetchOrCreateWorkspaceIfNeeded(fileURL: fileURL)
150+
let (workspace, _) = try await Workspace.fetchOrCreateWorkspaceIfNeeded(fileURL: fileURL)
151151

152152
let injector = SuggestionInjector()
153153
var lines = editor.lines

Core/Sources/SuggestionInjector/SuggestionInjector.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public struct SuggestionInjector {
141141
let end = completion.range.end
142142
let suggestionContent = completion.text
143143

144-
let existedLine = start.line < content.endIndex ? content[start.line] : nil
144+
let _ = start.line < content.endIndex ? content[start.line] : nil
145145

146146
let firstRemovedLine = content[safe: start.line]
147147
let lastRemovedLine = content[safe: end.line]

0 commit comments

Comments
 (0)