Skip to content

Commit

Permalink
Drop unused code
Browse files Browse the repository at this point in the history
Signed-off-by: Jianhui Zhao <[email protected]>
  • Loading branch information
Jianhui Zhao committed Jan 25, 2019
1 parent 73f627f commit b24ac28
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 23 deletions.
22 changes: 0 additions & 22 deletions html/src/views/Rtty.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,28 +33,6 @@ export default {
}
},
methods: {
formatTime(ts) {
let td = 0;
let th = 0;
let tm = 0;
if (ts > 59) {
tm = Math.floor(ts / 60);
ts = (ts % 60);
}
if (tm > 59) {
th = Math.floor(tm / 60);
tm = (tm % 60);
}
if (th > 23) {
td = Math.floor(th / 24);
th = (th % 24);
}
return (td > 0) ? '%02d:%02d:%02d:%02d'.format(td, th, tm, ts) : '%02d:%02d:%02d'.format(th, tm, ts);
},
logout() {
if (this.ws) {
this.ws.close();
Expand Down
2 changes: 1 addition & 1 deletion statik/statik.go

Large diffs are not rendered by default.

0 comments on commit b24ac28

Please sign in to comment.