Skip to content

Commit

Permalink
Remove cruft
Browse files Browse the repository at this point in the history
  • Loading branch information
Bob Corsaro committed Feb 7, 2016
1 parent 8a3f9a0 commit ad1b24c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
3 changes: 0 additions & 3 deletions tubing/pipes.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ def _shift_buffer(self, amt):
r, self.buffer = self.buffer[:amt], self.buffer[amt or len(self.buffer):]
return r

def _chunk(self):
return self.source.read(self.chunk_size)

def _close(self):
pass

Expand Down
14 changes: 0 additions & 14 deletions tubing/sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,3 @@ def read(self, amt=None):

def __or__(self, pipe):
return pipe(self)


class BytesIO(object):
def __init__(self, buf=None):
self.buf = buf or io.BytesIO()

def read(self, amt=None):
if not amt:
amt = -1
r, self.objs = self.objs[:amt], self.objs[amt:]
return self.objs[:amt]

def __or__(self, pipe):
pipe(self)

0 comments on commit ad1b24c

Please sign in to comment.