Skip to content

Commit 2b9a002

Browse files
committed
remove dead code
1 parent 7076960 commit 2b9a002

File tree

3 files changed

+0
-17
lines changed

3 files changed

+0
-17
lines changed

pkg/demoinfocs/sendtables/entity_interface.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ package sendtables
22

33
import (
44
"github.com/golang/geo/r3"
5-
6-
bit "github.com/markus-wa/demoinfocs-golang/v5/internal/bitread"
75
)
86

97
// Entity is an auto-generated interface for entity, intended to be used when mockability is needed.
@@ -33,11 +31,6 @@ type Entity interface {
3331
//
3432
// Panics with nil pointer dereference error if the property was not found.
3533
PropertyValueMust(name string) PropertyValue
36-
// ApplyUpdate reads an update to an Enitiy's properties and
37-
// triggers registered PropertyUpdateHandlers if values changed.
38-
//
39-
// Intended for internal use only.
40-
ApplyUpdate(reader *bit.BitReader)
4134
// Position returns the entity's position in world coordinates.
4235
Position() r3.Vector
4336
// OnPositionUpdate registers a handler for the entity's position update.

pkg/demoinfocs/sendtables/fake/entity.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"github.com/golang/geo/r3"
55
"github.com/stretchr/testify/mock"
66

7-
bitread "github.com/markus-wa/demoinfocs-golang/v5/internal/bitread"
87
st "github.com/markus-wa/demoinfocs-golang/v5/pkg/demoinfocs/sendtables"
98
)
109

@@ -79,11 +78,6 @@ func (e *Entity) PropertyValueMust(name string) st.PropertyValue {
7978
return args.Get(0).(st.PropertyValue)
8079
}
8180

82-
// ApplyUpdate is a mock-implementation of Entity.ApplyUpdate().
83-
func (e *Entity) ApplyUpdate(reader *bitread.BitReader) {
84-
e.Called(reader)
85-
}
86-
8781
// Position is a mock-implementation of Entity.Position().
8882
func (e *Entity) Position() r3.Vector {
8983
return e.Called().Get(0).(r3.Vector)

pkg/demoinfocs/sendtables/sendtablescs2/entity.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,6 @@ func (e *Entity) PropertyValueMust(name string) st.PropertyValue {
161161
return val
162162
}
163163

164-
func (e *Entity) ApplyUpdate(reader *bit.BitReader) {
165-
panic("not implemented")
166-
}
167-
168164
const (
169165
serverClassPlayer = "CCSPlayerPawn"
170166

0 commit comments

Comments
 (0)