Renderers cleanup part 1
[citadel.git] / webcit / roomops.c
index ea58fc0e3aa2a2ae1c669746f42c60998421a0be..2dc7865b8763b5ae4201dd0ce9824554956a7f35 100644 (file)
@@ -113,13 +113,11 @@ void dotskip(void) {
 }
 
 void dotgoto(void) {
-       wcsession *WCC = WC;
        if (!havebstr("room")) {
                readloop(readnew, eUseDefault);
                return;
        }
-       if ((WCC->CurRoom.view != VIEW_MAILBOX)  &&
-           (WCC->CurRoom.view != WCC->CurRoom.view)) {
+       if (WC->CurRoom.view != VIEW_MAILBOX) {
                /* dotgoto acts like dotskip when we're in a mailbox view */
                slrp_highest();
        }