@@ -15,8 +15,6 @@ pub(crate) enum Notification<'a> {
15
15
CachedFileChecksumFailed ,
16
16
/// The URL of the download is passed as the last argument, to allow us to track concurrent downloads.
17
17
DownloadingComponent ( & ' a str , & ' a TargetTriple , Option < & ' a TargetTriple > , & ' a str ) ,
18
- RemovingComponent ( & ' a str , & ' a TargetTriple , Option < & ' a TargetTriple > ) ,
19
- RemovingOldComponent ( & ' a str , & ' a TargetTriple , Option < & ' a TargetTriple > ) ,
20
18
DownloadingManifest ( & ' a str ) ,
21
19
DownloadedManifest ( & ' a str , Option < & ' a str > ) ,
22
20
DownloadingLegacyManifest ,
@@ -70,8 +68,6 @@ impl Notification<'_> {
70
68
match self {
71
69
FileAlreadyDownloaded | DownloadingLegacyManifest => NotificationLevel :: Debug ,
72
70
DownloadingComponent ( _, _, _, _)
73
- | RemovingComponent ( _, _, _)
74
- | RemovingOldComponent ( _, _, _)
75
71
| DownloadingManifest ( _)
76
72
| SkippingNightlyMissingComponent ( _, _, _)
77
73
| RetryingDownload ( _)
@@ -121,25 +117,6 @@ impl Display for Notification<'_> {
121
117
write ! ( f, "downloading component '{}' for '{}'" , c, t. unwrap( ) )
122
118
}
123
119
}
124
- RemovingComponent ( c, h, t) => {
125
- if Some ( h) == t. as_ref ( ) || t. is_none ( ) {
126
- write ! ( f, "removing component '{c}'" )
127
- } else {
128
- write ! ( f, "removing component '{}' for '{}'" , c, t. unwrap( ) )
129
- }
130
- }
131
- RemovingOldComponent ( c, h, t) => {
132
- if Some ( h) == t. as_ref ( ) || t. is_none ( ) {
133
- write ! ( f, "removing previous version of component '{c}'" )
134
- } else {
135
- write ! (
136
- f,
137
- "removing previous version of component '{}' for '{}'" ,
138
- c,
139
- t. unwrap( )
140
- )
141
- }
142
- }
143
120
DownloadingManifest ( t) => write ! ( f, "syncing channel updates for '{t}'" ) ,
144
121
DownloadedManifest ( date, Some ( version) ) => {
145
122
write ! ( f, "latest update on {date}, rust version {version}" )
0 commit comments