Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Remove dead code in GenericCombinatorialSpecies._series_helper
Browse files Browse the repository at this point in the history
  • Loading branch information
mwhansen committed Jan 14, 2014
1 parent a696708 commit f4157f7
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions src/sage/combinat/species/species.py
Original file line number Diff line number Diff line change
Expand Up @@ -584,38 +584,6 @@ def _series_helper(self, series_ring_class, prefix, base_ring=None):
return series_ring._new(self.CycleIndexSeriesStream,
weight=self._weight, species=self)

#Try to return things like self._gs_iterator(base_ring).
#This is used when the subclass just provides an iterator
#for the coefficients of the generating series. Optionally,
#the subclass can specify the order of the series.
try:
iterator = getattr(self, prefix+"_iterator")(base_ring)
try:
return series_ring(iterator, order=self._order())
except AttributeError:
return series_ring(iterator)
except AttributeError:
pass

#Try to use things like self._gs_term(base_ring).
#This is used when the generating series is just a single
#term.
try:
return series_ring.term( getattr(self, prefix+"_term")(base_ring),
self._order())
except AttributeError:
pass

#Try to use things like self._gs_list(base_ring).
#This is used when the coefficients of the generating series
#can be given by a finite list with the last coefficient repeating.
#The generating series with all ones coefficients is generated this
#way.
try:
return series_ring(getattr(self, prefix+"_list")(base_ring))
except AttributeError:
pass

raise NotImplementedError


Expand Down

0 comments on commit f4157f7

Please sign in to comment.