Remove unused "none" case from switchView.
authorMike Taylor <mike@indexdata.com>
Tue, 29 Apr 2014 12:46:04 +0000 (13:46 +0100)
committerMike Taylor <mike@indexdata.com>
Tue, 29 Apr 2014 12:46:04 +0000 (13:46 +0100)
src/mkws-team.js

index 759a1a7..2b962a2 100644 (file)
@@ -314,13 +314,6 @@ function team($, teamName) {
             if (blanket) blanket.css('display', 'block');
             if (motd) motd.css('display', 'none');
             break;
-       case 'none':
-           alert("mkws.switchView(" + m_teamName + ", 'none') shouldn't happen");
-            if (targets) targets.css('display', 'none');
-            if (results) results.css('display', 'none');
-            if (blanket) blanket.css('display', 'none');
-            if (motd) motd.css('display', 'none');
-            break;
         default:
             alert("Unknown view '" + view + "'");
        }