remove code that does not appear to do anything useful (issue #6059)