Remove unused _type field
This commit is contained in:
parent
0aa5e603dc
commit
ef40332a78
|
@ -1437,14 +1437,11 @@ abstract class IndexedAudioSource extends AudioSource {
|
||||||
abstract class UriAudioSource extends IndexedAudioSource {
|
abstract class UriAudioSource extends IndexedAudioSource {
|
||||||
final Uri uri;
|
final Uri uri;
|
||||||
final Map headers;
|
final Map headers;
|
||||||
final String _type;
|
|
||||||
Uri _overrideUri;
|
Uri _overrideUri;
|
||||||
File _cacheFile;
|
File _cacheFile;
|
||||||
|
|
||||||
UriAudioSource(this.uri,
|
UriAudioSource(this.uri, {this.headers, dynamic tag, Duration duration})
|
||||||
{this.headers, dynamic tag, @required String type, Duration duration})
|
: super(tag, duration: duration);
|
||||||
: _type = type,
|
|
||||||
super(tag, duration: duration);
|
|
||||||
|
|
||||||
/// If [uri] points to an asset, this gives us [_overrideUri] which is the URI
|
/// If [uri] points to an asset, this gives us [_overrideUri] which is the URI
|
||||||
/// of the copied asset on the filesystem, otherwise it gives us the original
|
/// of the copied asset on the filesystem, otherwise it gives us the original
|
||||||
|
@ -1503,11 +1500,7 @@ abstract class UriAudioSource extends IndexedAudioSource {
|
||||||
/// the HTTP(S) request.
|
/// the HTTP(S) request.
|
||||||
class ProgressiveAudioSource extends UriAudioSource {
|
class ProgressiveAudioSource extends UriAudioSource {
|
||||||
ProgressiveAudioSource(Uri uri, {Map headers, dynamic tag, Duration duration})
|
ProgressiveAudioSource(Uri uri, {Map headers, dynamic tag, Duration duration})
|
||||||
: super(uri,
|
: super(uri, headers: headers, tag: tag, duration: duration);
|
||||||
headers: headers,
|
|
||||||
tag: tag,
|
|
||||||
type: 'progressive',
|
|
||||||
duration: duration);
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
AudioSourceMessage _toMessage() => ProgressiveAudioSourceMessage(
|
AudioSourceMessage _toMessage() => ProgressiveAudioSourceMessage(
|
||||||
|
@ -1527,8 +1520,7 @@ class ProgressiveAudioSource extends UriAudioSource {
|
||||||
/// the HTTP(S) request. Currently headers are not applied recursively.
|
/// the HTTP(S) request. Currently headers are not applied recursively.
|
||||||
class DashAudioSource extends UriAudioSource {
|
class DashAudioSource extends UriAudioSource {
|
||||||
DashAudioSource(Uri uri, {Map headers, dynamic tag, Duration duration})
|
DashAudioSource(Uri uri, {Map headers, dynamic tag, Duration duration})
|
||||||
: super(uri,
|
: super(uri, headers: headers, tag: tag, duration: duration);
|
||||||
headers: headers, tag: tag, type: 'dash', duration: duration);
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
AudioSourceMessage _toMessage() => DashAudioSourceMessage(
|
AudioSourceMessage _toMessage() => DashAudioSourceMessage(
|
||||||
|
@ -1547,7 +1539,7 @@ class DashAudioSource extends UriAudioSource {
|
||||||
/// the HTTP(S) request. Currently headers are not applied recursively.
|
/// the HTTP(S) request. Currently headers are not applied recursively.
|
||||||
class HlsAudioSource extends UriAudioSource {
|
class HlsAudioSource extends UriAudioSource {
|
||||||
HlsAudioSource(Uri uri, {Map headers, dynamic tag, Duration duration})
|
HlsAudioSource(Uri uri, {Map headers, dynamic tag, Duration duration})
|
||||||
: super(uri, headers: headers, tag: tag, type: 'hls', duration: duration);
|
: super(uri, headers: headers, tag: tag, duration: duration);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
AudioSourceMessage _toMessage() => HlsAudioSourceMessage(
|
AudioSourceMessage _toMessage() => HlsAudioSourceMessage(
|
||||||
|
|
Loading…
Reference in New Issue