mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-04-16 05:56:37 +00:00
[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:
parent
e3b005ea82
commit
dd60ce30e4
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user