internal/ops: remove Data, Version, Refs methods from Ops

They're only used internally.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2021-10-12 14:24:57 +02:00
parent 05f0f5c20f
commit 87d050bcc7
3 changed files with 4 additions and 35 deletions
-12
View File
@@ -141,18 +141,6 @@ func (o *Ops) Reset() {
o.version++
}
func (o *Ops) Data() []byte {
return o.data
}
func (o *Ops) Refs() []interface{} {
return o.refs
}
func (o *Ops) Version() int {
return o.version
}
func (o *Ops) Write(n int) []byte {
o.data = append(o.data, make([]byte, n)...)
return o.data[len(o.data)-n:]