[naga] Remove TypeContext::type_inner_to_string.

In `naga::common::wgsl`, delete the method
`TypeContext::type_inner_to_string`, since it's a footgun: anyone
trying to convert a `TypeInner::Struct` to a string will hit
"unreachable" code.
This commit is contained in:
Jim Blandy 2025-04-09 10:24:42 -07:00 committed by Erich Gubler
parent e3b005ea82
commit dd60ce30e4

View File

@ -170,12 +170,6 @@ pub trait TypeContext {
buf
}
fn type_inner_to_string(&self, inner: &TypeInner) -> String {
let mut buf = String::new();
self.write_type_inner(inner, &mut buf).unwrap();
buf
}
fn type_resolution_to_string(&self, resolution: &TypeResolution) -> String {
let mut buf = String::new();
self.write_type_resolution(resolution, &mut buf).unwrap();