From e89ee079a605c97d8010db804c2f47c131774fc7 Mon Sep 17 00:00:00 2001 From: Sawyer X Date: Wed, 8 Mar 2017 20:58:25 +0100 Subject: [PATCH] Remove dead code from upload example: This is a port of a commit by racke (GH #1329). --- lib/Dancer2/Manual.pod | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/Dancer2/Manual.pod b/lib/Dancer2/Manual.pod index 7612062aa..ec9a443a9 100644 --- a/lib/Dancer2/Manual.pod +++ b/lib/Dancer2/Manual.pod @@ -1292,8 +1292,7 @@ The objects are accessible within the route handlers using the C keyword: post '/upload' => sub { - my $upload_dir = "MyApp/UPLOADS"; - my $upload = upload('file_input_name'); # upload object + my $upload = upload('file_input_name'); # upload object $upload->copy_to('Uploads/'); };