From f0b88b949162b76ef94492edab6b38be59ca1446 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 23 Jun 2017 09:17:23 +0800 Subject: [PATCH] remove superfluous code --- src/main.js | 2 -- src/vuex/store.js | 7 ------- 2 files changed, 9 deletions(-) diff --git a/src/main.js b/src/main.js index dd4abf6..19aa5be 100644 --- a/src/main.js +++ b/src/main.js @@ -1,5 +1,3 @@ -// The Vue build version to load with the `import` command -// (runtime-only or standalone) has been set in webpack.base.conf with an alias. import Vue from 'vue' import App from './App.vue' import store from './vuex/store' diff --git a/src/vuex/store.js b/src/vuex/store.js index 4f6e3d9..2513a75 100644 --- a/src/vuex/store.js +++ b/src/vuex/store.js @@ -9,13 +9,6 @@ import { hasWebAudioAPI } from '../unit/music' const { fromJS, List } = require('immutable') Vue.use(Vuex) -let ttt = lastRecord && !isNaN(parseInt(lastRecord.speedRun, 10)) - ? parseInt(lastRecord.speedRun, 10) - : 1 -if (ttt < 1 || ttt > 6) { - ttt = 1 -} - let clearLinesInitState = lastRecord && !isNaN(parseInt(lastRecord.clearLines, 10)) ? parseInt(lastRecord.clearLines, 10)