Merge pull request #45496 from thaJeztah/pkg_aaparser_deprecate_version

pkg/aaparser: deprecate GetVersion, as it's no longer used
This commit is contained in:
Sebastiaan van Stijn 2023-05-09 19:18:39 +02:00 committed by GitHub
commit 563fc92dd4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,6 +13,8 @@ const (
)
// GetVersion returns the major and minor version of apparmor_parser.
//
// Deprecated: no longer used, and will be removed in the next release.
func GetVersion() (int, error) {
output, err := cmd("", "--version")
if err != nil {