Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
fre-sch committed May 3, 2019
1 parent c8b1740 commit a36cacf
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/mhw_armor_edit/ftypes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,13 @@ def __init__(self, index, offset, fmt, multi=False):
self.index = index
self.offset = offset
self.fmt = fmt
self.size = struct.calcsize(self.fmt)
self._name = None
self.multi = multi

def __set_name__(self, owner, name):
self._name = name

@property
def size(self):
return struct.calcsize(self.fmt)

@property
def after(self):
return self.offset + self.size
Expand Down

0 comments on commit a36cacf

Please sign in to comment.