In reply to Sergey Biryukov.

In this case, perhaps... generally it does not, and I can confirm that with old wordpress installs that have plenty of files left around that are no longer in use. It's a full time job to manage core, plugins, and themes to make sure that security issues don't exist, and to make sure you don't have the NEXT security issue already loaded sitting unused in an old theme or plugin.