Remove old source.

This commit is contained in:
Kenshin 2018-06-04 13:17:28 +08:00
parent b7a617590a
commit 49c240fbce
4 changed files with 0 additions and 9 deletions

View File

@ -140,12 +140,10 @@ function focusMode() {
return;
}
if ( pr.state == "temp" && pr.dom ) {
//storage.Statistics( mode.focus );
focus.Render( $(pr.dom), storage.current.bgcolor );
} else {
focus.GetFocus( pr.Include(), storage.current.site.include ).done( result => {
storage.pr.state == "none" && pr.TempMode( mode.focus, result[0] );
//storage.Statistics( mode.focus );
focus.Render( result, storage.current.bgcolor );
}).fail( () => {
new Notify().Render( 2, "当前并未获取任何正文,请重新选取。" );
@ -170,16 +168,13 @@ function readMode() {
} else {
getCurrent( mode.read );
if ( storage.current.site.name != "" ) {
//storage.Statistics( mode.read );
read.Render();
} else if ( pr.state == "temp" && pr.dom ) {
//storage.Statistics( mode.read );
read.Render();
} else {
new Notify().Render( "当前并未适配阅读模式,请移动鼠标手动生成 <a href='https://github.com/Kenshin/simpread/wiki/%E4%B8%B4%E6%97%B6%E9%98%85%E8%AF%BB%E6%A8%A1%E5%BC%8F' target='_blank' >临时阅读模式</a>。" );
read.Highlight().done( dom => {
pr.TempMode( mode.read, dom );
//storage.Statistics( mode.read );
read.Render();
});
}

View File

@ -60,7 +60,6 @@ var storage = require( "storage" ).storage,
// add control bar
fcontrol.Render( ctrlbarjq, bgclsjq, dom => {
storage.pr.dom = dom;
//storage.Statistics( "focus" );
Focus.prototype.Render( $(dom), storage.current.bgcolor );
});

View File

@ -48,7 +48,6 @@ class Read extends React.Component {
this.componentWillUnmount();
this.props.read.highlight == true && Highlight().done( dom => {
storage.pr.TempMode( "read", dom );
//storage.Statistics( "read" );
Render();
});
} else {
@ -132,7 +131,6 @@ class Read extends React.Component {
this.exit();
Highlight().done( dom => {
storage.pr.TempMode( "read", dom );
//storage.Statistics( "read" );
Render();
});
break;

View File

@ -516,7 +516,6 @@ class Storage {
if ( type == "create" ) {
simpread.option.create = now();
} else {
//simpread.option[ type ] = simpread.option[ type ] + 1;
is_service ? simpread.statistics.service[ type ]++ : simpread.statistics[ type ]++;
}
console.log( "current statistics is ", simpread.statistics )