remove global variable.

Since `var` is missing, importing gridview sets a global variable.
The variable is not used anywhere else, so I'm removing it.