forked from TrueCloudLab/frostfs-api-go
[#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:
parent
d809155efa
commit
4331646615
4 changed files with 0 additions and 121 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue