Remove dead code

This commit is contained in:
Jakob Borg
2014-05-02 21:59:18 +02:00
parent 6807d9bd4c
commit 647165ab89
4 changed files with 0 additions and 167 deletions

View File

@@ -14,7 +14,6 @@ import (
"time"
"code.google.com/p/go.crypto/bcrypt"
"github.com/calmh/syncthing/scanner"
"github.com/codegangsta/martini"
)
@@ -166,23 +165,6 @@ func restPostReset(req *http.Request) {
go restart()
}
type guiFile scanner.File
func (f guiFile) MarshalJSON() ([]byte, error) {
type t struct {
Name string
Size int64
Modified int64
Flags uint32
}
return json.Marshal(t{
Name: f.Name,
Size: scanner.File(f).Size,
Modified: f.Modified,
Flags: f.Flags,
})
}
var cpuUsagePercent [10]float64 // The last ten seconds
var cpuUsageLock sync.RWMutex