wisest owl (wisest_owl) wrote in changelog,
wisest owl
wisest_owl
changelog

[livejournal] r17753: LJSUP-7052. Remove unused code.

Committer: gprochaev
LJSUP-7052. Remove unused code.

U   trunk/htdocs/admin/browse/load_all_structure.bml
Modified: trunk/htdocs/admin/browse/load_all_structure.bml
===================================================================
--- trunk/htdocs/admin/browse/load_all_structure.bml	2010-11-23 09:23:47 UTC (rev 17752)
+++ trunk/htdocs/admin/browse/load_all_structure.bml	2010-11-23 09:27:33 UTC (rev 17753)
@@ -58,9 +58,7 @@
             my $cat = LJ::Browse->load_by_url ("/browse" . $cat_url, $v);
 
             unless ($cat) {
-                #unless (grep { $_->{pretty_name} eq $cat_name } @{$v->get_categories}) {
-                    $cat = LJ::Browse->create ( pretty_name => $cat_name, url_path => $cat_url, vertical => $v );
-                #}
+                $cat = LJ::Browse->create ( pretty_name => $cat_name, url_path => $cat_url, vertical => $v );
             }
 
             my ($subcat_name, $subcat_url, $subcat) = ();
@@ -72,10 +70,8 @@
             if ($subcat_name && $subcat_url) {
                 my $subcat = LJ::Browse->load_by_url ("/browse" . $cat->url_path . $subcat_url, $v);
                 unless ($subcat) {
-                #    unless (grep { $_->{pretty_name} eq $subcat_name } @{$v->get_categories($cat)}) {
-                        $subcat = LJ::Browse->create ( pretty_name => $subcat_name, url_path => $subcat_url, parentcatid => $cat->catid, vertical => $cat->vertical );
-                    }
-                #}
+                    $subcat = LJ::Browse->create ( pretty_name => $subcat_name, url_path => $subcat_url, parentcatid => $cat->catid, vertical => $cat->vertical );
+                }
             }
 
             ## #7 - Full path for sanity check 

Tags: bml, livejournal, wisest-owl
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments