 According to the commentary by Terrance Dicks (qv) and  Peter Davison (I) (qv), there was a scene scripted where the  Doctor and Sarah Jane were to be menaced by Autons in an abandoned  town while driving around on Gallifrey. This scene was cut because  of budget issues.