Removed redundant variables code

getvar and setvar ignored and duplicated the code from the more specific
routines for getting and setting variables (getstack, getlocal, etc.)