From 67cd2b6452260e0171cef386aacfd60de832d8ed Mon Sep 17 00:00:00 2001 From: Matt Keeter Date: Sat, 1 Jun 2024 15:33:28 -0400 Subject: [PATCH] Remove unused errors (#128) --- CHANGELOG.md | 1 + fidget/src/error.rs | 8 -------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fab0e923..8c99d322 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ - Renamed `Context::const_value` to `Context::get_const` and tweaked its return type to match `Context::get_var`. - Added `impl From for Tree` to make writing tree expressions easier +- Removed `Error::ReservedName` and `Error::DuplicateName`, which were unused # 0.3.0 - Major refactoring of core evaluation traits diff --git a/fidget/src/error.rs b/fidget/src/error.rs index c27116b5..b37dc4e0 100644 --- a/fidget/src/error.rs +++ b/fidget/src/error.rs @@ -61,14 +61,6 @@ pub enum Error { #[error("variable index ({0}) exceeds max var index for this tape ({1})")] BadVarIndex(usize, usize), - /// This name is reserved for 3D coordinates - #[error("this name is reserved for 3D coordinates")] - ReservedName, - - /// This name has already been used - #[error("this name has already been used")] - DuplicateName, - /// io error; see inner code for details #[error("io error: {0}")] IoError(#[from] std::io::Error),