Skip to content
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

Trim deprecated functions from SQLAPI.py (was--unused variables) #99

Open
organisciak opened this issue Apr 11, 2016 · 4 comments
Open

Comments

@organisciak
Copy link
Member

Each of the following lines is a bug in the current version of SQLAPI.py, but I defer to @bmschmidt as to what the proper resolution is for each.

SQLAPI.py:926:22: F821 undefined name 'smooth_function'
SQLAPI.py:1014:36: F821 undefined name 'pickle'
SQLAPI.py:1185:9: F821 undefined name 'userqueries'
SQLAPI.py:1198:11: F821 undefined name 'headers'

smooth_function seems to be part of a deprecated method that can likely be deleted. The pickle line seems to be expecting import pickle, not sure if it should be imported or the line removed. The userqueries reference is wrapped in try/except, but it obviously will always do the latter, and the headers line is for what seems to be debug functionality that is no longer supported.

@bmschmidt
Copy link
Member

There's a lot of deadwood in SQLAPI.py; I never cleared out the things that became unnecessary with the switch to pandas for merging for fear it make break something running down at Rice.

In each of these cases, it is safe to delete the entire code block that contains the offending line.

There's a lot else that should go besides: a number of code blocks are tagged as deprecated, and I think I altered the line chart GUI to not use those methods.

Plus there's a lot of code for caching that can be deleted as well.

@organisciak
Copy link
Member Author

Great. Unless you have a commit already loaded, I'll remove this code.

@bmschmidt bmschmidt changed the title Undefined variables Trim deprecated functions from SQLAPI.py (was--unused variables) Apr 11, 2016
@bmschmidt
Copy link
Member

No commit on my end; cut away.

I'm expanding the scope of this issue to include the various deprecated blocks.

@organisciak
Copy link
Member Author

I cleaned the issues mentioned in the initial issue's scope with d8307c1, and followed backward looking for references to the removed code. You'll have to do a more detailed audit of the functions in SQLAPI.py before closing this issue.

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

No branches or pull requests

2 participants