Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
koliyo committed Oct 27, 2023
1 parent 362ce01 commit d91e4f5
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions Sources/hylo-lsp/DocumentProvider.swift
Original file line number Diff line number Diff line change
Expand Up @@ -117,16 +117,6 @@ public actor DocumentProvider {
workspaceFolders.append(contentsOf: added)
}

// private static func loadStdlibProgram() throws -> TypedProgram {
// let ast = try AST(libraryRoot: defaultStdlibFilepath)

// var diagnostics = DiagnosticSet()
// return try TypedProgram(
// annotating: ScopedProgram(ast), inParallel: true,
// reportingDiagnosticsTo: &diagnostics,
// tracingInferenceIf: nil)
// }

private static func loadDefaultStdlibFilepath(logger: Logger) -> URL {
if let path = ProcessInfo.processInfo.environment["HYLO_STDLIB_PATH"] {
logger.info("Hylo stdlib filepath from HYLO_STDLIB_PATH: \(path)")
Expand Down Expand Up @@ -301,11 +291,6 @@ public actor DocumentProvider {
return nil
}

// public func preloadDocument(_ textDocument: TextDocumentProtocol) -> DocumentBuildRequest {
// let uri = DocumentProvider.resolveDocumentUri(textDocument.uri)
// return preloadDocument(uri)
// }

public func updateDocument(_ params: TextDocumentDidChangeParams) {
let uri = params.textDocument.uri
guard let context = documents[uri] else {
Expand Down

0 comments on commit d91e4f5

Please sign in to comment.