Removed dead code in Joiner class.
This commit is contained in:
parent
d49d3b498f
commit
ace151f1ef
|
|
@ -119,13 +119,11 @@ class Joiner:
|
|||
else:
|
||||
self.stack.append(((P, N), (P, N)))
|
||||
|
||||
def flush(self, sep, N=None, dash='-'):
|
||||
def flush(self, sep, dash='-'):
|
||||
refstr = u''
|
||||
c = 0
|
||||
for Q in self.stack:
|
||||
if bool(N) and c != 0 and c % N == 0:
|
||||
refstr += u'\n'
|
||||
elif c != 0:
|
||||
if c != 0:
|
||||
refstr += sep
|
||||
S, E = Q
|
||||
if S == E:
|
||||
|
|
@ -133,9 +131,6 @@ class Joiner:
|
|||
c += 1
|
||||
else:
|
||||
# Do we have space?
|
||||
if bool(N) and (c + 1) % N == 0:
|
||||
refstr += u'\n'
|
||||
c += 1
|
||||
refstr += "%s%d%s%s%d" % (S[0], S[1], dash, E[0], E[1])
|
||||
c += 2
|
||||
return refstr
|
||||
|
|
|
|||
Loading…
Reference in New Issue