Remove some dead code

This commit is contained in:
David Vierra 2015-01-11 01:28:54 -10:00
parent 50425f384f
commit 9b458c3369
5 changed files with 0 additions and 43 deletions

View File

@ -116,10 +116,6 @@ class BrushMode(object):
"""
raise NotImplementedError
def applyToChunkSlices(self, op, chunk, slices, brushBox, brushBoxThisChunk):
raise NotImplementedError
def createOptionsPanel(self, tool):
pass

View File

@ -128,37 +128,3 @@ class ChunkMeshBase(MeshBase):
"""
self.chunkUpdate = chunkUpdate
self.vertexArrays = []
class BlockMeshBase(MeshBase):
def __init__(self, sectionUpdate):
"""
:type sectionUpdate: SectionUpdate
"""
self.sectionUpdate = sectionUpdate
self.vertexArrays = []
def getRenderTypeMask(self):
return self.sectionUpdate.blockRenderTypes == self.renderType
def facingBlockLights(self, direction):
return self.sectionUpdate.areaBlockLights[directionOffsets[direction]]
def facingSkyLights(self, direction):
return self.sectionUpdate.areaSkyLights[directionOffsets[direction]]
def makeVertices(self):
yield
arrays = []
renderTypeMask = self.getRenderTypeMask()
yield
for (direction, exposedFaceMask) in enumerate(self.sectionUpdate.exposedBlockMasks):
vertexBuffer = self.makeFaceVertices(direction, renderTypeMask, exposedFaceMask)
yield
if len(vertexBuffer):
arrays.append(vertexBuffer)
self.vertexArrays = arrays
makeFaceVertices = NotImplemented

View File

@ -386,10 +386,8 @@ class SectionUpdate(object):
@profiler.iterator("SectionUpdate")
def __iter__(self):
renderTypeCounts = numpy.bincount(self.blockRenderTypes.ravel())
cx, cz = self.chunkUpdate.chunk.chunkPosition
cache = self.chunkUpdate.chunkInfo.worldScene.geometryCache
sectionBounds = SectionBox(cx, self.y, cz)
bounds = self.chunkUpdate.chunkInfo.worldScene.bounds

View File

@ -54,7 +54,6 @@ class Profiler(object):
finally:
self.exit()
#@functools.wraps
def function(self, name):
def _decorate(func):
log.debug("Decorating %s with %s", func, name)

View File

@ -11,9 +11,7 @@ from mceditlib.block_copy import copyBlocksIter
from mceditlib.operations.block_fill import FillBlocksOperation
from mceditlib.blocktypes import pc_blocktypes
from mceditlib.selection import BoundingBox
from mceditlib import nbt
from mceditlib.findadapter import findAdapter
from mceditlib.levelbase import matchEntityTags
from mceditlib.multi_block import getBlocks, setBlocks
from mceditlib.schematic import SchematicFileAdapter
from mceditlib.util import displayName, chunk_pos, exhaust, matchEntityTags