A California federal judge on Wednesday tossed a proposed shareholder class action claiming Hewlett Packard Co. stock prices dipped after CEO Mark Hurd was ousted over his relationship with a female contractor, ruling that it failed to adequately allege materiality and falsity.