Skip to content

Commit

Permalink
Remove a bunch of debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmassicotte committed Jan 5, 2025
1 parent ea10aaa commit 6db8225
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 9 deletions.
2 changes: 0 additions & 2 deletions Sources/RangeState/HybridValueProvider+RangeProcessor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ extension HybridSyncAsyncValueProvider {
let (location, fill) = inputTransformer(input)

rangeProcessor.processLocation(isolation: isolation, location, mode: fill)
print("start", input)
await rangeProcessor.processingCompleted(isolation: isolation)
print("end", input)

return try await asyncValue(input)
}
Expand Down
5 changes: 0 additions & 5 deletions Sources/RangeState/SinglePhaseRangeValidator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -144,17 +144,12 @@ public final class SinglePhaseRangeValidator<Content: VersionedContent> {
}

private func validateRangeAsync(isolation: isolated any Actor) async {
let name = name ?? "<unnamed>"

print("A name:", name)
guard let operation = eventQueue.next() else {
preconditionFailure("There must always be a next operation to process")
}

print("B name:", name)
let validation = await self.configuration.provider.async(isolation: isolation, operation.contentRange)

print("C name:", name)
completePrimaryValidation(of: operation, with: validation, isolation: isolation)
}

Expand Down
2 changes: 0 additions & 2 deletions Sources/TreeSitterClient/TreeSitterClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,6 @@ extension TreeSitterClient {
rangeProcessor: rangeProcessor,
inputTransformer: { ($0.value.max, .optional) },
syncValue: { versioned in
print("validatorProvider sync")
guard versioned.version == self.versionedContent.currentVersion else {
return .stale
}
Expand All @@ -273,7 +272,6 @@ extension TreeSitterClient {

},
asyncValue: { versioned in
print("validatorProvider async")
guard versioned.version == self.versionedContent.currentVersion else {
return .stale
}
Expand Down

0 comments on commit 6db8225

Please sign in to comment.