Skip to content

Commit c42834d

Browse files
fix(sync): remove stale provider helpers
This lower DB-backed migration branch no longer calls the earlier cached-provider skip and source-error adapter helpers, but the full lint hook checks the branch in isolation. Leaving them here prevents any later provider cleanup commit from passing hooks. Remove the unused helpers before the branch grows more provider stored-hint coverage; later upstack commits can reintroduce equivalent code only where it is actually wired. Validation: go test -tags "fts5" ./internal/sync -run 'TestObserveProviderSourceMatchesDBBackedLegacyParsers' -count=1; go vet ./...
1 parent b22f403 commit c42834d

1 file changed

Lines changed: 0 additions & 34 deletions

File tree

internal/sync/engine.go

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -4807,19 +4807,6 @@ func processFileUsesProvider(agent parser.AgentType) bool {
48074807
}
48084808
}
48094809

4810-
func (e *Engine) shouldSkipCachedProviderFile(
4811-
file parser.DiscoveredFile,
4812-
fingerprint parser.SourceFingerprint,
4813-
) bool {
4814-
if e.forceParse || file.ForceParse || fingerprint.MTimeNS == 0 {
4815-
return false
4816-
}
4817-
e.skipMu.RLock()
4818-
cachedMtime, cached := e.skipCache[file.Path]
4819-
e.skipMu.RUnlock()
4820-
return cached && cachedMtime == fingerprint.MTimeNS
4821-
}
4822-
48234810
func (e *Engine) shouldSkipProviderSource(
48244811
file parser.DiscoveredFile,
48254812
source parser.SourceRef,
@@ -4880,27 +4867,6 @@ func providerSkipLookupPath(
48804867
return file.Path
48814868
}
48824869

4883-
func sourceErrorsToSessionParseErrors(
4884-
sourceErrs []parser.SourceError,
4885-
) []sessionParseError {
4886-
if len(sourceErrs) == 0 {
4887-
return nil
4888-
}
4889-
errs := make([]sessionParseError, 0, len(sourceErrs))
4890-
for _, sourceErr := range sourceErrs {
4891-
virtualPath := sourceErr.DisplayPath
4892-
if virtualPath == "" {
4893-
virtualPath = sourceErr.SourceKey
4894-
}
4895-
errs = append(errs, sessionParseError{
4896-
sessionID: sourceErr.SessionID,
4897-
virtualPath: virtualPath,
4898-
err: sourceErr.Err,
4899-
})
4900-
}
4901-
return errs
4902-
}
4903-
49044870
func (e *Engine) shouldCacheSkip(
49054871
file parser.DiscoveredFile,
49064872
) bool {

0 commit comments

Comments
 (0)