1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-06-09 09:20:44 +00:00

removed all 'deadcode' lint errors (#840)

This commit is contained in:
gravestench 2020-10-26 01:01:57 +00:00 committed by GitHub
parent 49c1985dcc
commit 37235282e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 7 deletions

View File

@ -820,7 +820,8 @@ func (i *Item) Identify() *Item {
return i
}
// from a string table
// string table keys
// nolint:deadcode,unused,varcheck // WIP
const (
reqNotMet = "ItemStats1a" // "Requirements not met",
unidentified = "ItemStats1b" // "Unidentified",

View File

@ -7,11 +7,6 @@ import (
"github.com/OpenDiablo2/OpenDiablo2/d2common/d2fileformats/d2txt"
)
const (
nameSize = 32
tokenSize = 20
)
// LoadObjectTypes loads ObjectTypeRecords from objtype.txt
func objectTypesLoader(r *RecordManager, d *d2txt.DataDictionary) error {
records := make(ObjectTypes, 0)

View File

@ -25,7 +25,7 @@ import (
const (
port = "6669"
chunkSize int = 4096
chunkSize int = 4096 // nolint:deadcode,unused,varcheck // WIP
subtilesPerTile = 5
middleOfTileOffset = 3
)