[#321] pkg/container: Remove no longer use NewVerifiedFromV2 func

Also remove `pkg.IsSupportedVersion` used by `NewVerifiedFromV2` only.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2021-07-01 16:11:56 +03:00 committed by Leonard Lyubich
parent d809155efa
commit 4331646615
4 changed files with 0 additions and 121 deletions

View file

@ -74,17 +74,6 @@ func (v *Version) String() string {
return fmt.Sprintf("v%d.%d", v.Major(), v.Minor())
}
// IsSupportedVersion returns error if v is not supported by current SDK.
func IsSupportedVersion(v *Version) error {
mjr, mnr := v.Major(), v.Minor()
if mjr != 2 || mnr > sdkMnr {
return fmt.Errorf("unsupported version %d.%d", mjr, mnr)
}
return nil
}
// Marshal marshals Version into a protobuf binary form.
//
// Buffer is allocated when the argument is empty.