Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Apr 2014 18:59:02 +0000 (UTC)
From:      Dag-Erling Smørgrav <des@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r264233 - user/des/fbce/lib/FBCE/Controller
Message-ID:  <201404071859.s37Ix2Su093698@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: des
Date: Mon Apr  7 18:59:02 2014
New Revision: 264233
URL: http://svnweb.freebsd.org/changeset/base/264233

Log:
  Remove unnecessary (and commented-out) code.

Modified:
  user/des/fbce/lib/FBCE/Controller/Run.pm
  user/des/fbce/lib/FBCE/Controller/Vote.pm

Modified: user/des/fbce/lib/FBCE/Controller/Run.pm
==============================================================================
--- user/des/fbce/lib/FBCE/Controller/Run.pm	Mon Apr  7 18:17:31 2014	(r264232)
+++ user/des/fbce/lib/FBCE/Controller/Run.pm	Mon Apr  7 18:59:02 2014	(r264233)
@@ -23,7 +23,6 @@ Catalyst Controller.
 sub index :Path :Args(0) {
     my ($self, $c) = @_;
 
-#    $c->authenticate();
     my $user = $c->user->get_object();
     $c->stash(user => $user);
 }
@@ -31,7 +30,6 @@ sub index :Path :Args(0) {
 sub register :Local :Args(0) {
     my ($self, $c) = @_;
 
-#    $c->authenticate();
     my $user = $c->user->get_object();
     if ($c->stash->{'nominating'} != 0 || !$user->active) {
 	$c->res->redirect($c->uri_for('/run'));
@@ -62,7 +60,6 @@ sub register :Local :Args(0) {
 sub edit :Local :Args(0) {
     my ($self, $c) = @_;
 
-#    $c->authenticate();
     my $user = $c->user->get_object();
     if ($c->stash->{'nominating'} != 0 || !$user->active) {
 	$c->res->redirect($c->uri_for('/run'));
@@ -92,7 +89,6 @@ sub edit :Local :Args(0) {
 sub withdraw :Local :Args(0) {
     my ($self, $c) = @_;
 
-#    $c->authenticate();
     my $user = $c->user->get_object();
     if ($c->stash->{'nominating'} != 0 || !$user->active) {
 	$c->res->redirect($c->uri_for('/run'));

Modified: user/des/fbce/lib/FBCE/Controller/Vote.pm
==============================================================================
--- user/des/fbce/lib/FBCE/Controller/Vote.pm	Mon Apr  7 18:17:31 2014	(r264232)
+++ user/des/fbce/lib/FBCE/Controller/Vote.pm	Mon Apr  7 18:59:02 2014	(r264233)
@@ -75,8 +75,7 @@ sub index :Path :Args(0) {
 
 # sub commit :Local :Args(0) {
 #     my ($self, $c) = @_;
-
-#     $c->authenticate();
+#
 #     my $user = $c->user->get_object();
 #     if ($c->stash->{'voting'} != 0 || !$user->active) {
 # 	$c->res->redirect($c->uri_for('/vote'));



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404071859.s37Ix2Su093698>