Skip to content

Commit

Permalink
Remove unused method
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Apolinario <[email protected]>
  • Loading branch information
eapolinario committed Feb 1, 2022
1 parent 216f4ee commit 2e1636d
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions flytekit/models/array_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,18 +85,3 @@ def to_dict(self):
)

return _json_format.MessageToDict(array_job)

@classmethod
def from_dict(cls, idl_dict):
"""
:param dict[T, Text] idl_dict:
:rtype: ArrayJob
"""
pb2_object = _json_format.Parse(_json.dumps(idl_dict), _array_job.ArrayJob())

return cls(
parallelism=pb2_object.parallelism,
size=pb2_object.size,
min_successes=pb2_object.min_successes,
min_success_ratio=pb2_object.min_success_ratio,
)

0 comments on commit 2e1636d

Please sign in to comment.