From e7ea9cacce26395d464147238c73333324e66341 Mon Sep 17 00:00:00 2001 From: "M. Sz" Date: Thu, 11 Mar 2021 08:23:24 +0100 Subject: [PATCH] d2enum: composite_type: removed Int method --- d2common/d2enum/composite_type_string.go | 4 ---- d2common/d2fileformats/d2cof/cof.go | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/d2common/d2enum/composite_type_string.go b/d2common/d2enum/composite_type_string.go index 5400d78a..e9b1a46e 100644 --- a/d2common/d2enum/composite_type_string.go +++ b/d2common/d2enum/composite_type_string.go @@ -37,7 +37,3 @@ func (i CompositeType) String() string { } return _CompositeType_name[_CompositeType_index[i]:_CompositeType_index[i+1]] } - -func (i CompositeType) Int() int { - return int(i) -} diff --git a/d2common/d2fileformats/d2cof/cof.go b/d2common/d2fileformats/d2cof/cof.go index f80809ae..80be1422 100644 --- a/d2common/d2fileformats/d2cof/cof.go +++ b/d2common/d2fileformats/d2cof/cof.go @@ -193,7 +193,7 @@ func (c *COF) Marshal() []byte { sw.PushBytes(c.unknownBodyBytes...) for i := range c.CofLayers { - sw.PushBytes(byte(c.CofLayers[i].Type.Int())) + sw.PushBytes(byte(c.CofLayers[i].Type)) sw.PushBytes(c.CofLayers[i].Shadow) if c.CofLayers[i].Selectable {