From e7abc837c72f966bd51a07bab90d8520eda1d917 Mon Sep 17 00:00:00 2001 From: Sadeep Madurange Date: Sat, 11 Apr 2026 13:04:09 +0800 Subject: wip: clear out status commmnd. --- vcx | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/vcx b/vcx index c062fc8..8c68681 100644 --- a/vcx +++ b/vcx @@ -427,31 +427,3 @@ sub stream_index { }; } -sub compare_streams { - my (@paths, $func) = @_; - - my $ixs = stream_index(); - my $wss = stream_tree($paths); - - $old = $ixs->(); - $new = $wss->(); - - # TODO: fix compare logic - while (defined $old || defined $new) { - if (defined $new && - (!defined $old || $new->{path} lt $old->{path})) { - $func->($new, 'N'); - $new = $wss->(); - } elsif (defined $old && - (!defined $new || $old->{path} lt $new->{path})) { - $func->($old, 'D'); - $old = $ixs->(); - } else { - if ($new->{mtime} != $old->{mtime} || $new->{size} != $old->{size}) { - $func->($new, 'M'); - } - $old = $ixs->(); - $new = $wss->(); - } - } -} -- cgit v1.2.3