/**
 * Remove Asset from registry.
 *
 * @param   string  $type  Asset type, script or style
 * @param   string  $name  Asset name
 *
 * @return  self
 *
 * @since   4.0.0
 */
public function remove(string $type, string $name) : WebAssetRegistryInterface
{
    if (!empty($this->assets[$type][$name])) {
        $asset = $this->assets[$type][$name];
        unset($this->assets[$type][$name]);
        $this->dispatchAssetChanged($type, $asset, 'remove');
    }
    return $this;
}