1
0
mirror of https://github.com/videojs/video.js.git synced 2025-02-08 12:05:47 +02:00

fix: remove deprecation of getComponent feature (#7410)

Since Video.js 6, we've removed the deprecated functionality, we no longer need to have a deprecation warning.
This commit is contained in:
Gary Katsevman 2021-09-02 14:35:34 -04:00 committed by GitHub
parent 3ea078d40b
commit 6d39ee24b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1706,11 +1706,6 @@ class Component {
*
* @return {Component}
* The `Component` that got registered under the given name.
*
* @deprecated In `videojs` 6 this will not return `Component`s that were not
* registered using {@link Component.registerComponent}. Currently we
* check the global `videojs` object for a `Component` name and
* return that if it exists.
*/
static getComponent(name) {
if (!name || !Component.components_) {