Remove stale comments.

This commit is contained in:
Sergio Benitez 2016-11-13 18:54:49 -08:00
parent b38942ad00
commit 0ce41c0f2c
1 changed files with 0 additions and 2 deletions

View File

@ -42,7 +42,6 @@ fn new(todo_form: Form<Task>) -> Flash<Redirect> {
} }
} }
// Should likely do something to simulate PUT.
#[put("/<id>")] #[put("/<id>")]
fn toggle(id: i32) -> Result<Redirect, Template> { fn toggle(id: i32) -> Result<Redirect, Template> {
if Task::toggle_with_id(id) { if Task::toggle_with_id(id) {
@ -52,7 +51,6 @@ fn toggle(id: i32) -> Result<Redirect, Template> {
} }
} }
// Should likely do something to simulate DELETE.
#[delete("/<id>")] #[delete("/<id>")]
fn delete(id: i32) -> Result<Flash<Redirect>, Template> { fn delete(id: i32) -> Result<Flash<Redirect>, Template> {
if Task::delete_with_id(id) { if Task::delete_with_id(id) {