Move profile fingerprints to separate package

This commit is contained in:
Daniel 2020-03-20 23:04:51 +01:00
parent d4d7938f0e
commit 5a2e0b84ff
7 changed files with 3 additions and 2 deletions

View file

@ -1,7 +1,5 @@
package profile package profile
import "time"
var ( var (
fingerprintWeights = map[string]int{ fingerprintWeights = map[string]int{
"full_path": 2, "full_path": 2,
@ -35,6 +33,8 @@ func GetFingerprintWeight(fpType string) (weight int) {
return 0 return 0
} }
// TODO: move to profile
/*
// AddFingerprint adds the given fingerprint to the profile. // AddFingerprint adds the given fingerprint to the profile.
func (profile *Profile) AddFingerprint(fp *Fingerprint) { func (profile *Profile) AddFingerprint(fp *Fingerprint) {
if fp.OS == "" { if fp.OS == "" {
@ -46,3 +46,4 @@ func (profile *Profile) AddFingerprint(fp *Fingerprint) {
profile.Fingerprints = append(profile.Fingerprints, fp) profile.Fingerprints = append(profile.Fingerprints, fp)
} }
*/