Ver Fonte

pkg/aaparser: deprecate GetVersion, as it's no longer used

Our templates no longer contain version-specific rules, so this function
is no longer used. This patch deprecates it.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit e3e715666f95c056390a88e0f3d1033a1aac2762)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn há 2 anos atrás
pai
commit
bfffb0974e
1 ficheiros alterados com 2 adições e 0 exclusões
  1. 2 0
      pkg/aaparser/aaparser.go

+ 2 - 0
pkg/aaparser/aaparser.go

@@ -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 {