"Don't be evil" is still in the code of conduct, it's just the last line now. Journalism, as it usually does, perpetuated a misleading scary story in order to garner eyeballs/clicks.
Google has more than one code of conduct[0], but I only found one that is as you described[1].
[0] https://www.google.com/search?q=google%20code%20of%20conduct
[1] https://abc.xyz/investor/board-and-governance/google-code-of...