Skip to content

Commit

Permalink
style(server): remove extraneous code
Browse files Browse the repository at this point in the history
  • Loading branch information
floryst committed Feb 7, 2023
1 parent d14d87d commit 69940b0
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion server/volview_server/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ def _unpack_data(self, data: bytes):

def _pack_data(self, data):
return msgpack.packb(data, default=self._encode_object)
pass

def _decode_ext(self, code: int, data: bytes):
"""Decodes a msgpack extension type."""
Expand Down
1 change: 0 additions & 1 deletion server/volview_server/converters.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ def itk_to_vtk_image(itk_image):
"data": {
"vtkClass": "vtkDataArray",
"size": len(values),
# "values": values.tobytes(),
"values": values,
"dataType": itk_image_pixel_type_to_js(itk_image),
"numberOfComponents": itk_image.GetNumberOfComponentsPerPixel(),
Expand Down
3 changes: 0 additions & 3 deletions server/volview_server/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
class CancelUploadError(Exception):
"""Cancels an upload."""

...


class UploadState:
io: BytesIO
Expand All @@ -14,7 +12,6 @@ class UploadState:
def __init__(self, total_size):
self.total_size = total_size
self.io = BytesIO()

self._written = 0

def write(self, data: bytes, offset: int):
Expand Down

0 comments on commit 69940b0

Please sign in to comment.