Skip to content

Commit

Permalink
remove useless junk
Browse files Browse the repository at this point in the history
  • Loading branch information
skarndev committed Apr 27, 2020
1 parent 518009b commit b08cd03
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions m2_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ def __init__(self, version, filepath=None):
self.skels = deque()
self.texture_path_map = {}

self.file_raw_data = None

self.pfid = None
self.sfid = None
self.afid = None
Expand All @@ -59,9 +57,6 @@ def read(self):
self.skins = []

with open(self.filepath, 'rb') as f:
self.file_raw_data = f.read()
f.seek(0)

magic = f.read(4).decode('utf-8')

if magic == 'MD20':
Expand Down Expand Up @@ -113,9 +108,6 @@ def read_skel(self, path: str) -> int:
skel = SkelFile(path)

with open(path, 'rb') as f:
self.skel_raw = f.read()
f.seek(0)

skel.read(f)

self.skels.appendleft(skel)
Expand Down

0 comments on commit b08cd03

Please sign in to comment.