[saem-devel] [PATCH 2 of 3 saem_ref] [views] drop dead code

Philippe Pepiot philippe.pepiot at logilab.fr
Wed Feb 22 11:50:50 CET 2017


# HG changeset patch
# User Philippe Pepiot <philippe.pepiot at logilab.fr>
# Date 1487760128 -3600
#      Wed Feb 22 11:42:08 2017 +0100
# Node ID 22a1f265a3715c2c29bf0cedb04046258eb80949
# Parent  baec4583644f3fde7a891d88d6a93a3a9777261d
# Available At https://hg.logilab.org/review/cubes/saem_ref
#              hg pull https://hg.logilab.org/review/cubes/saem_ref -r 22a1f265a371
# Tested at https://jenkins.logilab.org/job/cubicweb-saem_ref/92/
[views] drop dead code

Since label is never None, this code is useless

diff --git a/cubicweb_saem_ref/views/__init__.py b/cubicweb_saem_ref/views/__init__.py
--- a/cubicweb_saem_ref/views/__init__.py
+++ b/cubicweb_saem_ref/views/__init__.py
@@ -282,8 +282,6 @@ def main_navigation_menu():
         ('SEDAArchiveTransfer', 'SEDAArchiveTransfer_plural'),
         ('sedalib', _('SEDA components')),
     ]):
-        if label is None:
-            label = path + '_plural'
         yield type(path + 'NavMenuEntryComponent', (MainNavigationMenuComponent,), {
             '__regid__': 'saem_ref.navmenu_' + path.lower(),
             'path': path.lower(),



More information about the saem-devel mailing list