Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
ademuanthony committed Dec 23, 2019
1 parent 4be5f5a commit 33a6809
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
16 changes: 0 additions & 16 deletions db/cache/charts.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ const (
sizeKey = "size"
feesKey = "fees"
anonymitySetKey = "anonymitySet"
anonymitySetKeyStk = "anonymitySetStk"
anonymitySetKeyReg = "anonymitySetReg"
durationKey = "duration"
workKey = "work"
rateKey = "rate"
Expand Down Expand Up @@ -1030,20 +1028,6 @@ func accumulate(data ChartUints) ChartUints {
return d
}

// Each point is translated to the sum of all x-1 points before and itself.
func accumulateX(data ChartUints, x int) ChartUints {
d := make(ChartUints, 0, len(data))
var accumulator uint64
for i, v := range data {
accumulator += v
if i >= x {
accumulator -= data[i - x]
}
d = append(d, accumulator)
}
return d
}

// Translate the times slice to a slice of differences. The original dataset
// minus the first element is returned for convenience.
func blockTimes(blocks ChartUints) (ChartUints, ChartUints) {
Expand Down
2 changes: 1 addition & 1 deletion public/js/controllers/charts_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ function powDiffFunc (data) {
return zipWindowHvY(data.diff, data.window)
}

function circulationFunc (chartData, showMovingSum) {
function circulationFunc (chartData) {
var yMax = 0
var h = -1
var addDough = (newHeight) => {
Expand Down

0 comments on commit 33a6809

Please sign in to comment.