If you did not live or work in VA, then you do not have to pay taxes there. You should enter both W-2s however.
However, if you had VA payroll taxes withheld, you would probably want to file a non-resident VA state return to get those monies refunded.
You can find information on how to file that non-resident return in the FAQ below:
https://ttlc.intuit.com/replies/3302052