Follow-up to Bug 869005 - Remove old code

Commit 5595840: Values of globals retrieved only with get and getEntity are
cached forever

I forgot to remove some code I used for testing :(