Remove commented-out code in theme importer

Marshall Bowers created

Change summary

crates/theme_importer/src/vscode/converter.rs | 58 ---------------------
1 file changed, 58 deletions(-)

Detailed changes

crates/theme_importer/src/vscode/converter.rs 🔗

@@ -310,63 +310,5 @@ impl VsCodeThemeConverter {
         Ok(UserSyntaxTheme {
             highlights: highlight_styles.into_iter().collect(),
         })
-
-        // let mut highlight_styles = IndexMap::new();
-
-        // for token_color in self.theme.token_colors {
-        //     highlight_styles.extend(token_color.highlight_styles()?);
-        // }
-
-        // let syntax_theme = UserSyntaxTheme {
-        //     highlights: highlight_styles.into_iter().collect(),
-        // };
-
-        // pub fn highlight_styles(&self) -> Result<IndexMap<String, UserHighlightStyle>> {
-        // let mut highlight_styles = IndexMap::new();
-
-        // for syntax_token in ZedSyntaxToken::iter() {
-        //     let scope = syntax_token.to_scope();
-
-        //     // let token_color =
-        // }
-
-        // let scope = match self.scope {
-        //     Some(VsCodeTokenScope::One(ref scope)) => vec![scope.clone()],
-        //     Some(VsCodeTokenScope::Many(ref scopes)) => scopes.clone(),
-        //     None => return Ok(IndexMap::new()),
-        // };
-
-        // for scope in &scope {
-        //     let Some(syntax_token) = Self::to_zed_token(&scope) else {
-        //         continue;
-        //     };
-
-        //     let highlight_style = UserHighlightStyle {
-        //         color: self
-        //             .settings
-        //             .foreground
-        //             .as_ref()
-        //             .traverse(|color| try_parse_color(&color))?,
-        //         font_style: self
-        //             .settings
-        //             .font_style
-        //             .as_ref()
-        //             .and_then(|style| try_parse_font_style(&style)),
-        //         font_weight: self
-        //             .settings
-        //             .font_style
-        //             .as_ref()
-        //             .and_then(|style| try_parse_font_weight(&style)),
-        //     };
-
-        //     if highlight_style.is_empty() {
-        //         continue;
-        //     }
-
-        //     highlight_styles.insert(syntax_token, highlight_style);
-        // }
-
-        // Ok(highlight_styles)
-        // }
     }
 }