Skip to content

Commit

Permalink
removed (now empty) python block definition subpackage
Browse files Browse the repository at this point in the history
  • Loading branch information
agrif committed Jan 2, 2014
1 parent a924ecf commit 47a8381
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 147 deletions.
7 changes: 2 additions & 5 deletions overviewer/blockdefinitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,12 +400,9 @@ def add_from_path(bd, path, namemap={}):
bd.add(bdef, blockid)

def get_default():
bd = BlockDefinitions()

from overviewer import blocks
blocks.get_all(bd)

bd = BlockDefinitions()
blockspath = os.path.join(util.get_program_path(), "overviewer", "data", "blocks")

for root, subdirs, files in os.walk(blockspath):
del subdirs[:]

Expand Down
33 changes: 0 additions & 33 deletions overviewer/blocks/__init__.py

This file was deleted.

90 changes: 0 additions & 90 deletions overviewer/blocks/cubes.py

This file was deleted.

13 changes: 0 additions & 13 deletions overviewer/blocks/glass_panes.py

This file was deleted.

6 changes: 0 additions & 6 deletions overviewer/wxexplorer.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
'world',
'isometricrenderer',
'blockdefinitions',
'blocks',
'cache'
]

Expand All @@ -30,11 +29,6 @@ def reload_all(verbose=False):
reload(sys.modules[name])
verbose = False

for name in sys.modules['overviewer.blocks'].block_modules:
name = 'blocks.' + name
if not name in modules:
modules.append(name)

for name, mod in sys.modules.items():
if not isinstance(mod, types.ModuleType):
continue
Expand Down

0 comments on commit 47a8381

Please sign in to comment.