CB has always collected an IP Address and stored it to the users database row in _comprofiler under the registeripaddr column. CB AntiSpam will display it as a field or display the most recent IP in the Logs that is available for the user. The field is only visible to CB Moderators so it's not publicly visible unless you disable moderator display only for the field (not the case by default).
For CB AntiSpam you can shut off IP logging within CB AntiSpam > Config > Global and set "Log" to "Disable". This turns off IP Address logging. You'll likely also want to set "Attempts" to "Disable" as well since it tracks login/registration failed attempts by IP Address. Blocking and Whitelisting can be Email, Email Domain, etc.. based so you can still use it.
As for the registeripaddr column in _comprofiler that's collected at user registration time there's no option to shut this off. You'll need to modify core code to disable it. Below will prevent the column from being set. You'll need to update every user row and set that column to null for existing users.
IN: components/com_comprofiler/comprofiler.php
ON: Line 1037
FROM:
$userComplete->registeripaddr = cbGetIPlist();
TO:
//$userComplete->registeripaddr = cbGetIPlist();
We've added a feature ticket to provide a configuration option to shut this off though in a future release.
forge.joomlapolis.com/issues/4761