Removed obsolete code in setTexture

This code has no side-effects besides assigning “textureChange”, which
is used nor reset anywhere else.