Skip to content

Commit dd60ce3

Browse files
jimblandyErichDonGubler
authored andcommitted
[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.
1 parent e3b005e commit dd60ce3

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

naga/src/common/wgsl/types.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -170,12 +170,6 @@ pub trait TypeContext {
170170
buf
171171
}
172172

173-
fn type_inner_to_string(&self, inner: &TypeInner) -> String {
174-
let mut buf = String::new();
175-
self.write_type_inner(inner, &mut buf).unwrap();
176-
buf
177-
}
178-
179173
fn type_resolution_to_string(&self, resolution: &TypeResolution) -> String {
180174
let mut buf = String::new();
181175
self.write_type_resolution(resolution, &mut buf).unwrap();

0 commit comments

Comments
 (0)