Skip to content

Commit

Permalink
remove client and variantParent in VariantStorage
Browse files Browse the repository at this point in the history
  • Loading branch information
mscuthbert committed May 6, 2022
1 parent 9a26616 commit dd8685a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 17 deletions.
20 changes: 4 additions & 16 deletions music21/stream/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -14061,24 +14061,12 @@ class VariantStorage(Stream):

This subclass name can be used to search in an
object's .sites and find any and all
locations that are VariantStorage objects.
locations that are VariantStorage objects. It also
ensures that they are pickled properly as Streams on a non-Stream
object.

A `client` keyword argument must be provided
by the Variant in creation.

Changed in v.8 -- client replaces variantParent
Changed in v.8 -- variantParent is removed. Never used.
'''

def __init__(self, *arguments, **keywords):
super().__init__(*arguments, **keywords)
# must provide a keyword argument with a reference to the variant
# parent
self.client = keywords.get('client', None)


# -----------------------------------------------------------------------------


# -----------------------------------------------------------------------------


Expand Down
1 change: 0 additions & 1 deletion music21/variant.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ def __init__(self, givenElements=None, *args, **keywords):
super().__init__()
self.exposeTime = False
self._stream = stream.VariantStorage(givenElements=givenElements,
client=self,
*args, **keywords)

self._replacementDuration = None
Expand Down

0 comments on commit dd8685a

Please sign in to comment.