Store: DatabaseConnectionBundleInformation doesn't understand #removeComponent

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Store: DatabaseConnectionBundleInformation doesn't understand #removeComponent

Thomas Gagné-2
DatabaseConnectionBundleInformation doesn't understand #removeComponent,
but that doesn't stop it from sending the message to itself inside
#removeNonexistentComponentsRecursive.  I'm just starting to look into
it.  If anyone recognizes this let me know.

    removeNonexistentComponentsRecursive

        contentDescriptions copy do:
            [ :descr | | comp |
            descr == nil
                ifFalse:
                    [ ( comp := descr component ) == nil
                        ifTrue: [ *self removeComponent: descr* ]
                        ifFalse:
                            [ comp isBundle
                                ifTrue: [ comp
    removeNonexistentComponentsRecursive]
                            ]
                    ]
            ].


--
Visit <http://tggagne.blogspot.com/>,<http://gagne.homedns.org/> or
      <http://gagne.homedns.org/~tgagne/> for more great reading.