all: Remove miscellaneous vestigial code (#7495)

This commit is contained in:
Jakob Borg
2021-03-17 22:23:12 +01:00
committed by GitHub
parent f4372710bf
commit 3ac858b150
10 changed files with 9 additions and 55 deletions
-4
View File
@@ -23,7 +23,6 @@ import (
"os"
"path/filepath"
"reflect"
"regexp"
"runtime"
"runtime/pprof"
"sort"
@@ -60,9 +59,6 @@ import (
"github.com/syncthing/syncthing/lib/ur"
)
// matches a bcrypt hash and not too much else
var bcryptExpr = regexp.MustCompile(`^\$2[aby]\$\d+\$.{50,}`)
const (
DefaultEventMask = events.AllEvents &^ events.LocalChangeDetected &^ events.RemoteChangeDetected
DiskEventMask = events.LocalChangeDetected | events.RemoteChangeDetected