Remove deprecated MarkUsed functions

This commit is contained in:
Daniel
2022-02-15 13:59:56 +01:00
parent 0bd3467286
commit 2cbaf126e9
3 changed files with 1 additions and 33 deletions

View File

@@ -105,11 +105,8 @@ func (p *Process) UpdateProfileMetadata() {
// Update metadata of profile.
metadataUpdated := localProfile.UpdateMetadata(p.Path)
// Mark profile as used.
profileChanged := localProfile.MarkUsed()
// Save the profile if we changed something.
if metadataUpdated || profileChanged {
if metadataUpdated {
err := localProfile.Save()
if err != nil {
log.Warningf("process: failed to save profile %s: %s", localProfile.ScopedID(), err)