mark: A photo of Mark kneeling on top of the Taal Volcano in the Philippines. It was a long hike. (Default)
Mark Smith ([staff profile] mark) wrote in [site community profile] changelog2009-09-13 06:37 am

[dw-free] Backed out changeset c7dfa9c29068

[commit: http://hg.dwscoalition.org/dw-free/rev/e995e5a510cb]

Backed out changeset c7dfa9c29068

This causes infinite loops in some cases. Needs to be looked at.

Files modified:
  • cgi-bin/DW/User/Edges/WatchTrust.pm
--------------------------------------------------------------------------------
diff -r c7dfa9c29068 -r e995e5a510cb cgi-bin/DW/User/Edges/WatchTrust.pm
--- a/cgi-bin/DW/User/Edges/WatchTrust.pm	Sat Sep 05 12:12:35 2009 +0000
+++ b/cgi-bin/DW/User/Edges/WatchTrust.pm	Sun Sep 13 06:36:45 2009 +0000
@@ -400,19 +400,6 @@ sub get_birthdays {
     # hash slice for array sorted by date
     my @bdays = @timedata{ sort keys %timedata };
 
-    # birthdays that have already had notifications sent
-    # are sorted to the end, so check for those and rewrap
-    while ( my $last = pop( @bdays ) ) {
-        if ( ( $last->[0] == $mnow &&   # this month
-               $last->[1] >= $dnow ) || # today or later
-             ( $last->[0] == ( $mnow % 12 ) + 1 ) ) {  # next month
-            unshift( @bdays, $last );
-        } else {  # put it back and exit
-            push( @bdays, $last );
-            last;
-        }
-    }
-
     # set birthdays in memcache for later
     LJ::MemCache::set($memkey, \@bdays, 86400);
 
--------------------------------------------------------------------------------