I've had about a dozen different jobs over my career and not once have I even thought about squirreling away an employers code base. I'd say this is a far from common practice.
I think it would be a big deal (worth worrying about) to have physical/digital proprietary information in your possession after you left the company.