MDL-76053 admin: Remove various warnings related to MNet
commit621d75dbce569a25fe8bc0151216f98069224281
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Thu, 27 Oct 2022 21:06:52 +0000 (27 23:06 +0200)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Tue, 8 Nov 2022 15:49:18 +0000 (8 16:49 +0100)
tree04f1cbb5ed93383c7cc5cd4b824b240f19a6c193
parent5877ae306efaa93a3a0cf8adcedee4da405677f5
MDL-76053 admin: Remove various warnings related to MNet

This partially reverts MDL-73270, where some useful environmental
checks and notifications in the admin UI were added to inform
about different parts of Moodle relying on the "unsupported"
php-xmlrpc extension.

Since then, some changes have happened in core, only available
for Moodle 4.1 and up (see the MDL-70889 mini-epic). Namely:

  - MNet (SSO, roaming, auth, enrol and Mahara portfolio) are not
    using the php-xmlrpc extension anymore, but a pure php library.
  - The xmlrpc webservices protocol, has been move from core to
    the plugins directory, although it continues using the php-xmlrpc
    extension.

Because of that here we are removing all the checks and notifications
related with MNet (not using the extension anymore), but keeping the
webservice plugin ones (still using the extension). Surely if some day the
protocol stops using the extension, we'll be able to remove the
corresponding checks too. But that's future.

Note the associated lang strings have been also removed (not deprecated)
because they were highly specific and hardly reusable:
  - xmlrpcmaharaenabled
  - xmlrpcmnetauthenticationenabled
  - xmlrpcmnetenabled

And very same applies, because MNet doesn't contain anything deprecated
or not supported anymore, hence, straight deletion, to the function:
  - mnet_get_deprecation_notice()

Also, related tests using any of the removed stuff above have been deleted.

In the other side, the "check_xmlrpc_usage" continues existing and
being used both by environment checks and admin notifications but,
as commented above, now it only looks for the xmlrpc webservice
protocol now.
14 files changed:
admin/mnet/access_control.php
admin/mnet/index.php
admin/mnet/peers.php
admin/mnet/tabs.php
admin/mnet/trustedhosts.html
admin/settings/mnet.php
auth/mnet/settings.php
lang/en/admin.php
lib/adminlib.php
lib/tests/upgradelib_test.php
lib/upgradelib.php
mnet/environment.php
mnet/lib.php
mnet/service/enrol/index.php