From 932a2a45761f9ce6ced3e31e9097dc1601c70d14 Mon Sep 17 00:00:00 2001 From: Danny Coates Date: Wed, 31 Oct 2018 11:40:54 -0700 Subject: [PATCH] removed unused code --- app/dragManager.js | 12 +++--------- app/main.js | 8 -------- server/routes/index.js | 2 -- 3 files changed, 3 insertions(+), 19 deletions(-) diff --git a/app/dragManager.js b/app/dragManager.js index 9c42426a..f5133a0a 100644 --- a/app/dragManager.js +++ b/app/dragManager.js @@ -3,20 +3,14 @@ export default function(state, emitter) { document.body.addEventListener('dragover', event => { if (state.route === '/') { event.preventDefault(); - // const files = document.querySelector('.uploadedFilesWrapper'); - // files.classList.add('uploadArea--noEvents'); } }); document.body.addEventListener('drop', event => { if (state.route === '/' && !state.uploading) { event.preventDefault(); - // document - // .querySelector('.uploadArea') - // .classList.remove('uploadArea--dragging'); - - const files = Array.from(event.dataTransfer.files); - - emitter.emit('addFiles', { files }); + emitter.emit('addFiles', { + files: Array.from(event.dataTransfer.files) + }); } }); }); diff --git a/app/main.js b/app/main.js index 0d8df162..d16c4f07 100644 --- a/app/main.js +++ b/app/main.js @@ -35,14 +35,6 @@ import User from './user'; window.appEmit = emitter.emit.bind(emitter); let unsupportedReason = null; - emitter.on('render', () => { - if (state.animation) { - window.requestAnimationFrame(() => { - state.animation(); - state.animation = null; - }); - } - }); if ( // Firefox < 50 /firefox/i.test(navigator.userAgent) && diff --git a/server/routes/index.js b/server/routes/index.js index 1a73a286..1934212e 100644 --- a/server/routes/index.js +++ b/server/routes/index.js @@ -67,8 +67,6 @@ module.exports = function(app) { }); app.use(express.json()); app.get('/', language, pages.index); - app.get('/signin', language, pages.blank); - app.get('/uploads', language, pages.blank); app.get('/oauth', language, pages.blank); app.get('/legal', language, pages.legal); app.get('/jsconfig.js', require('./jsconfig'));