This looks like debug code.  Maybe you can surround it in ```if (goog.DEBUG) {...``` which will automatically remove it when it's compiled in non-debug mode (me thinks).