durusmail: durus-users: Redundant code aliases in btree
Redundant code aliases in btree
2006-06-27
2006-06-27
2006-06-27
2006-06-27
2006-06-27
Redundant code aliases in btree
David Binger
2006-06-27
On Jun 27, 2006, at 11:49 AM, Jesus Cea wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Patrick K. O'Brien wrote:
>> Are they indeed equivalent?  One refers to 'n.minimum_degree', the
>> other
>> to 'self.minimum_degree'.  Is it possible for those to be different?
>
> Arg!, you are right, Patrick. Since current BTree implementation keeps
> all internal nodes of the same class,
> "self.minimum_degree==n.minimum_degree", but this is a casual
> implementation artifact.
>
> Better to refactor that code, cleanly.

It looks like the first one is not used at all.
Unless someone can find a reason for it to be there,
I'll delete it.

reply