A class action against Toyota alleging it installed diesel defeat devices in several models of its vehicles has lost a bid to access source code for the cars’ emissions control systems, with a judge finding it was not relevant to any current fact in issue.