I have PLSQL CODE that I inhertied and am trying to understand. In the Package Spec, there is a cursor defined and a gv$ var:
CURSOR GV$IND IS
SELECT index_name FROM USER_INDEXES
where index_type = 'NORMAL';
If my understanding is correct, the GV$IND collects the indexes and is global in scope
The gv$nt_type is global in scope and is of the same type as abp1.nt_type.
In looking through the package body, I can not find any reference to GV$IND.
I find one reference in a line that sets gv$_nt_type:= '11' but is not present in the rest of the package body.
I'm tempted to delete the cursor and the gv$nt_type from the code since it doesnt seem to be used anywhere. I've looked in all the objects for that schema and cant see any references to these at all.
Is there something going on behind the scenes potentially, or do I have to look anywhere else?