From dd60ce30e44f953b9f1476132ceeca477c1cfe36 Mon Sep 17 00:00:00 2001
From: Jim Blandy <jimb@red-bean.com>
Date: Wed, 9 Apr 2025 10:24:42 -0700
Subject: [PATCH] [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.
---
 naga/src/common/wgsl/types.rs | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/naga/src/common/wgsl/types.rs b/naga/src/common/wgsl/types.rs
index c0a2675d7..cbc456970 100644
--- a/naga/src/common/wgsl/types.rs
+++ b/naga/src/common/wgsl/types.rs
@@ -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();