Skip to content

Commit 6d9423d

Browse files
committed
Remove dead code
1 parent 1914ba8 commit 6d9423d

File tree

3 files changed

+1
-11
lines changed

3 files changed

+1
-11
lines changed

datatables.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,7 @@ func (p *Parser) bindTeamScores() {
9999
s.score = score
100100

101101
// Register direct updates for the future
102-
event.Entity.FindProperty("m_iTeamNum").RegisterPropertyUpdateHandler(func(val st.PropValue) {
103-
s.id = val.IntVal
104-
})
102+
// Except for teamId, it doesn't change; players swap teams instead
105103
event.Entity.FindProperty("m_szClanTeamname").RegisterPropertyUpdateHandler(func(val st.PropValue) {
106104
s.clanName = val.StringVal
107105
})

sendtables/parser.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,9 +219,6 @@ func (p *Parser) getTableByName(name string) *sendTable {
219219
return &p.sendTables[i]
220220
}
221221
}
222-
if len(p.sendTables) > 0 {
223-
return &p.sendTables[0]
224-
}
225222
return nil
226223
}
227224

sendtables/serverclass.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,6 @@ type ServerClass struct {
1111
entityCreatedHandlers []EntityCreatedHandler
1212
}
1313

14-
// String returns a human readable identification of the ServerClass.
15-
func (sc *ServerClass) String() string {
16-
return sc.Name + " | " + sc.DTName
17-
}
18-
1914
// FireEntityCreatedEvent triggers all registered EntityCreatedHandlers
2015
// on the ServerClass with a new EntityCreatedEvent.
2116
func (sc *ServerClass) FireEntityCreatedEvent(entity *Entity) {

0 commit comments

Comments
 (0)