Removed unused function & added more typing

This commit is contained in:
Jaime van Kessel 2019-01-25 13:52:41 +01:00
parent 0fded58988
commit 76cfb19dfb
2 changed files with 13 additions and 16 deletions

View file

@ -21,13 +21,6 @@ class LayerDataBuilder(MeshBuilder):
if layer not in self._layers:
self._layers[layer] = Layer(layer)
def addPolygon(self, layer: int, polygon_type, data, line_width, line_thickness, line_feedrate):
if layer not in self._layers:
self.addLayer(layer)
p = LayerPolygon(self, polygon_type, data, line_width, line_thickness, line_feedrate)
self._layers[layer].polygons.append(p)
def getLayer(self, layer: int) -> Optional[Layer]:
return self._layers.get(layer)