Skip to content

Commit

Permalink
[Feat] remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
mistricky committed Oct 27, 2024
1 parent fa3c4f0 commit 03b38e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 19 deletions.
6 changes: 2 additions & 4 deletions core/src/components/background.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
use tiny_skia::{
Color, GradientStop, LinearGradient, Paint, Pixmap, Point, Rect, SpreadMode, Transform,
};
use tiny_skia::{LinearGradient, Paint, Pixmap, Point, Rect, SpreadMode, Transform};

use crate::{
edges::{edge::Edge, padding::Padding},
Expand All @@ -9,7 +7,7 @@ use crate::{

use super::interface::{
component::{Component, ComponentContext, RenderParams},
render_error::{self, RenderError},
render_error::{self},
style::{ComponentAlign, ComponentStyle, RawComponentStyle},
};

Expand Down
15 changes: 0 additions & 15 deletions core/src/components/interface/render_error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,6 @@ pub enum RenderError {
#[error("Highlight code failed!")]
HighlightThemeLoadFailed,

#[error("No such highlight syntax for {0}")]
HighlightCodeFailed(String),

#[error("Unable to parse unknown background theme {0}")]
UnknownBackgroundTheme(String),

#[error("Invalid hex color {0}")]
InvalidHexColor(String),

#[error("No such file {0}")]
NoSuchFile(String),
}

// impl From<RenderError> for nvim_oxi::api::Error {
// fn from(err: RenderError) -> Self {
// nvim_oxi::api::Error::Other(err.to_string())
// }
// }

0 comments on commit 03b38e7

Please sign in to comment.