Skip to content

Commit deade4a

Browse files
committed
chore: remove dead Diagnostic::with_kind method
1 parent f4bdee2 commit deade4a

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

crates/rolldown_error/src/build_diagnostic/diagnostic.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -186,12 +186,6 @@ impl Diagnostic {
186186
self.convert_to_string(true)
187187
}
188188

189-
#[must_use]
190-
pub fn with_kind(mut self, kind: String) -> Self {
191-
self.kind = kind;
192-
self
193-
}
194-
195189
/// Get the primary location information from the first label if available
196190
/// Returns (file_path, line, column, utf16_position)
197191
pub fn get_primary_location(&self) -> Option<(String, usize, usize, usize)> {

0 commit comments

Comments
 (0)