chore(cli/cache): Remove CacheType::Declaration (#14873)

This commit is contained in:
Nayeem Rahman 2022-06-15 15:25:25 +01:00 committed by GitHub
parent b2109a12aa
commit 0b90e966c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 9 deletions

View file

@ -443,11 +443,6 @@ pub fn check_and_maybe_emit(
MediaType::SourceMap => {
cache.set(CacheType::SourceMap, &specifier, emit.data)?;
}
// this only occurs with the runtime emit, but we are using the same
// code paths, so we handle it here.
MediaType::Dts | MediaType::Dcts | MediaType::Dmts => {
cache.set(CacheType::Declaration, &specifier, emit.data)?;
}
_ => unreachable!(
"unexpected media_type {} {}",
emit.media_type, specifier