chore: remove dead deprecated wrapper functions
Remove cleanupSnapshots() and validateSnapshotConsistency() from deletion_tracking.go - both were marked deprecated and never called. The other two deprecated functions (getSnapshotStats, initializeSnapshotsIfNeeded) are still used by tests and production code respectively. Filed bd-xsl9 to track removal of legacy autoflush dual-path code. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -136,20 +136,6 @@ func merge3WayAndPruneDeletions(ctx context.Context, store storage.Storage, json
|
|||||||
return true, nil
|
return true, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// cleanupSnapshots removes the snapshot files and their metadata
|
|
||||||
// Deprecated: Use SnapshotManager.Cleanup() instead
|
|
||||||
func cleanupSnapshots(jsonlPath string) error {
|
|
||||||
sm := NewSnapshotManager(jsonlPath)
|
|
||||||
return sm.Cleanup()
|
|
||||||
}
|
|
||||||
|
|
||||||
// validateSnapshotConsistency checks if snapshot files are consistent
|
|
||||||
// Deprecated: Use SnapshotManager.Validate() instead
|
|
||||||
func validateSnapshotConsistency(jsonlPath string) error {
|
|
||||||
sm := NewSnapshotManager(jsonlPath)
|
|
||||||
return sm.Validate()
|
|
||||||
}
|
|
||||||
|
|
||||||
// getSnapshotStats returns statistics about the snapshot files
|
// getSnapshotStats returns statistics about the snapshot files
|
||||||
// Deprecated: Use SnapshotManager.GetStats() instead
|
// Deprecated: Use SnapshotManager.GetStats() instead
|
||||||
func getSnapshotStats(jsonlPath string) (baseCount, leftCount int, baseExists, leftExists bool) {
|
func getSnapshotStats(jsonlPath string) (baseCount, leftCount int, baseExists, leftExists bool) {
|
||||||
|
|||||||
Reference in New Issue
Block a user