Skip to content

Commit

Permalink
MDL-71533 lib: Remove libraries that already exist in core.
Browse files Browse the repository at this point in the history
  • Loading branch information
danmarsden committed May 7, 2021
1 parent 1c9837a commit f7529ab
Show file tree
Hide file tree
Showing 392 changed files with 12 additions and 37,045 deletions.
16 changes: 11 additions & 5 deletions lib/phpspreadsheet/readme_moodle.txt
Expand Up @@ -8,7 +8,17 @@ NOTICE:

STEPS:
* Create a temporary folder outside your moodle installation
* Remove the libraries that Moodle already includes from composer.json
- ezyang/htmlpurifier
- maennchen/zipstream-php
* Execute `composer require phpoffice/phpspreadsheet`
* Check to make sure the following directories haven't been created
- /vendor/myclabs/*
- /vendor/maennchen/*
- /vendor/symfony/polyfill-mbstring
- /vendor/ezyang/htmlpurifier
* If it has pulled these through, remove them from the required packages and run composer again.
* Check any new libraries that have been added and make sure they do not exist in Moodle already.
* Remove the old 'vendor' directory in lib/phpspreadsheet/
* Copy contents of 'vendor' directory
* Create a commit with only the library changes
Expand Down Expand Up @@ -62,8 +72,4 @@ located in vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/File.php

* Remove the next files in vendor/markbaker/ related to external testing that we don't need matrix/:
- infection.json.dist (PHP mutation testing framework configuration file)
- phpstan.neon (PHP static analyzer configuration file)

* Remove the following directories if they exist, These imported libraries already exist in Moodle core:
- /vendor/myclabs/*
- /vendor/maennchen/*
- phpstan.neon (PHP static analyzer configuration file)
2 changes: 0 additions & 2 deletions lib/phpspreadsheet/vendor/composer/autoload_files.php
Expand Up @@ -6,7 +6,6 @@
$baseDir = dirname($vendorDir);

return array(
'0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => $vendorDir . '/symfony/polyfill-mbstring/bootstrap.php',
'9d8e013a5160a09477beb8e44f8ae97b' => $vendorDir . '/markbaker/matrix/classes/src/functions/adjoint.php',
'6e78d1bdea6248d6aa117229efae50f2' => $vendorDir . '/markbaker/matrix/classes/src/functions/antidiagonal.php',
'4623d87924d94f5412fe5afbf1cef31d' => $vendorDir . '/markbaker/matrix/classes/src/functions/cofactors.php',
Expand Down Expand Up @@ -65,5 +64,4 @@
'883af48563631547925fa4c3b48ead07' => $vendorDir . '/markbaker/complex/classes/src/operations/multiply.php',
'f190e3308e6ca23234a2875edc985c03' => $vendorDir . '/markbaker/complex/classes/src/operations/divideby.php',
'ac9e33ce6841aa5bf5d16d465a2f03a7' => $vendorDir . '/markbaker/complex/classes/src/operations/divideinto.php',
'2cffec82183ee1cea088009cef9a6fc3' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier.composer.php',
);
4 changes: 1 addition & 3 deletions lib/phpspreadsheet/vendor/composer/autoload_namespaces.php
Expand Up @@ -5,6 +5,4 @@
$vendorDir = dirname(dirname(__FILE__));
$baseDir = dirname($vendorDir);

return array(
'HTMLPurifier' => array($vendorDir . '/ezyang/htmlpurifier/library'),
);
return array();
2 changes: 0 additions & 2 deletions lib/phpspreadsheet/vendor/composer/autoload_static.php
Expand Up @@ -7,7 +7,6 @@
class ComposerStaticInit596026141085fc6d905fff9fde42dc1b
{
public static $files = array (
'0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php',
'9d8e013a5160a09477beb8e44f8ae97b' => __DIR__ . '/..' . '/markbaker/matrix/classes/src/functions/adjoint.php',
'6e78d1bdea6248d6aa117229efae50f2' => __DIR__ . '/..' . '/markbaker/matrix/classes/src/functions/antidiagonal.php',
'4623d87924d94f5412fe5afbf1cef31d' => __DIR__ . '/..' . '/markbaker/matrix/classes/src/functions/cofactors.php',
Expand Down Expand Up @@ -66,7 +65,6 @@ class ComposerStaticInit596026141085fc6d905fff9fde42dc1b
'883af48563631547925fa4c3b48ead07' => __DIR__ . '/..' . '/markbaker/complex/classes/src/operations/multiply.php',
'f190e3308e6ca23234a2875edc985c03' => __DIR__ . '/..' . '/markbaker/complex/classes/src/operations/divideby.php',
'ac9e33ce6841aa5bf5d16d465a2f03a7' => __DIR__ . '/..' . '/markbaker/complex/classes/src/operations/divideinto.php',
'2cffec82183ee1cea088009cef9a6fc3' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier.composer.php',
);

public static $prefixLengthsPsr4 = array (
Expand Down
9 changes: 0 additions & 9 deletions lib/phpspreadsheet/vendor/ezyang/htmlpurifier/CREDITS

This file was deleted.

504 changes: 0 additions & 504 deletions lib/phpspreadsheet/vendor/ezyang/htmlpurifier/LICENSE

This file was deleted.

29 changes: 0 additions & 29 deletions lib/phpspreadsheet/vendor/ezyang/htmlpurifier/README.md

This file was deleted.

1 change: 0 additions & 1 deletion lib/phpspreadsheet/vendor/ezyang/htmlpurifier/VERSION

This file was deleted.

28 changes: 0 additions & 28 deletions lib/phpspreadsheet/vendor/ezyang/htmlpurifier/composer.json

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit f7529ab

Please sign in to comment.