From 4e21e761ad2609c101ff94444e0a03d7668e1539 Mon Sep 17 00:00:00 2001 From: Sahat Yalkabov Date: Tue, 28 Jan 2014 17:50:23 -0500 Subject: [PATCH] Remove flash messages view helper --- app.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app.js b/app.js index f48d53c41d..1bedc9013c 100755 --- a/app.js +++ b/app.js @@ -64,10 +64,6 @@ app.use(function(req, res, next) { next(); }); app.use(flash()); -app.use(function(req, res, next) { - res.locals.flash = req.flash.bind(req); - next(); -}); app.use(less({ src: __dirname + '/public', compress: true })); app.use(app.router); app.use(express.static( path.join(__dirname, 'public'), { maxAge: 864000000 } ));