Skip to content

Commit

Permalink
Remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
gkech committed Jan 27, 2025
1 parent dcd4c32 commit 89b91db
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions pkg/psmdb/backup/backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,6 @@ func NewBackupJob(name string) Job {
}
}

func NewRestoreJob(cr *api.PerconaServerMongoDBRestore) Job {
j := Job{
Name: cr.Name,
Type: TypeRestore,
}

if cr.Spec.PITR != nil {
j.Type = TypePITRestore
}

return j
}

func IsPBMNotConfiguredError(err error) bool {
return strings.Contains(err.Error(), "mongo: no documents in result")
}
Expand Down

0 comments on commit 89b91db

Please sign in to comment.