From 2375e3f2108276d86f10f4c4b3584b1e895c6764 Mon Sep 17 00:00:00 2001 From: joshua stein Date: Sat, 30 Jun 2012 17:52:12 -0500 Subject: [PATCH] remove unused stuff --- app/controllers/stories_controller.rb | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/app/controllers/stories_controller.rb b/app/controllers/stories_controller.rb index 3f962b6..0f33a20 100644 --- a/app/controllers/stories_controller.rb +++ b/app/controllers/stories_controller.rb @@ -116,33 +116,6 @@ class StoriesController < ApplicationController end end -# public function update() { -# if (!$this->user) { -# $this->add_flash_error("You must be logged in to edit an item."); -# return $this->redirect_to("/login"); -# } -# -# if ($this->user->is_admin) -# $this->item = Item::find_by_id($this->params["id"]); -# else -# $this->item = Item::find_by_user_id_and_id($this->user->id, -# $this->params["id"]); -# -# if (!$this->item) { -# $this->add_flash_error("Could not find item or you are not " -# . "authorized to edit it."); -# return $this->redirect_to("/"); -# } -# -# $this->item->is_expired = false; -# if ($this->item->update_attributes($this->params["item"])) { -# $this->add_flash_notice("Successfully saved item changes."); -# return $this->redirect_to(array("controller" => "items", -# "action" => "show", "id" => $this->item->id)); -# } else -# return $this->render(array("action" => "edit")); -# } -# def unvote if !(story = Story.find_by_short_id(params[:story_id])) return render :text => "can't find story", :status => 400