Skip to content

Commit

Permalink
Remove deprecated method
Browse files Browse the repository at this point in the history
  • Loading branch information
lampsitter committed Jul 17, 2024
1 parent c556f06 commit ba29e96
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
## Removed

- Experimental comrak backend ([#57](https://github.com/lampsitter/egui_commonmark/pull/57))
- Deprecated method `syntax_theme`

## 0.17.0 - 2024-07-03

Expand Down
8 changes: 0 additions & 8 deletions egui_commonmark/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,14 +149,6 @@ impl CommonMarkViewer {
self
}

#[cfg(feature = "better_syntax_highlighting")]
#[deprecated(note = "use `syntax_theme_light` or `syntax_theme_dark` instead")]
pub fn syntax_theme(mut self, theme: String) -> Self {
self.options.theme_light = theme.clone();
self.options.theme_dark = theme;
self
}

#[cfg(feature = "better_syntax_highlighting")]
/// Set the syntax theme to be used inside code blocks in light mode
pub fn syntax_theme_light<S: Into<String>>(mut self, theme: S) -> Self {
Expand Down

0 comments on commit ba29e96

Please sign in to comment.