Skip to content

direct: Fix some NameErrors #273

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 6, 2018
Merged

direct: Fix some NameErrors #273

merged 3 commits into from
Mar 6, 2018

Conversation

mfwass
Copy link
Contributor

@mfwass mfwass commented Mar 5, 2018

  • Removed undeclared variable rogerroger in MetaInterval.
  • It appears that the intended functionality of ObjectPool.containerLenStr was to print out the keys of _len2obj. I've implemented this by looping through lengths.

mfwass added 2 commits March 5, 2018 09:51
"counts" is undeclared in this method, it should loop through "lengths" and print its values.
@rdb
Copy link
Member

rdb commented Mar 5, 2018

Judging by the name containerLenStr and the fact that it's building a string s, it's actually supposed to return a string rather than print it.

That said, this method has been broken since its inception, so I think the right thing to do is to remove it. I'm assuming it's not being used by anything, right?

Copy link
Member

@rdb rdb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM as long as containerLenStr is removed entirely.

This has no references inside the engine, and considering that it's been broken since its inception, it's safe to assume that it does not serve any purpose.
@mfwass
Copy link
Contributor Author

mfwass commented Mar 5, 2018

@rdb Sounds good to me. I was unsure of its exact functionality, but that was my best guess as what it was intended to do.

We aren't making any use of it, just happened to stumble across it.

I'd also doubt anyone else is making any use of it, except maybe as a simulated crash test case. ;P

@CFSworks CFSworks changed the title Fix some NameErrors direct: Fix some NameErrors Mar 6, 2018
@CFSworks CFSworks merged commit 89799bc into panda3d:master Mar 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy