Skip to content

Commit

Permalink
Removed unused identity function
Browse files Browse the repository at this point in the history
  • Loading branch information
syrusakbary committed Mar 14, 2017
1 parent 87f4acc commit 5618c80
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions promise/dataloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@
from .context import Context


def identity(x):
return x


def get_chunks(iterable_obj, chunk_size=1):
chunk_size = max(1, chunk_size)
return (iterable_obj[i:i + chunk_size] for i in range(0, len(iterable_obj), chunk_size))
Expand Down

0 comments on commit 5618c80

Please sign in to comment.