Skip to content

Commit

Permalink
chore: remove unused xtask themelint (helix-editor#10294)
Browse files Browse the repository at this point in the history
* chore: remove unused xtask themelint

* chore(clippy): remove unused themes
  • Loading branch information
AlexanderBrevig authored and Vulpesx committed Jun 7, 2024
1 parent 51b396e commit ff0b1ff
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 222 deletions.
7 changes: 0 additions & 7 deletions book/src/themes.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,6 @@ For inspiration, you can find the default `theme.toml`
user-submitted themes
[here](https://github.com/helix-editor/helix/blob/master/runtime/themes).

### Using the linter

Use the supplied linting tool to check for errors and missing scopes:

```sh
cargo xtask themelint onedark # replace onedark with <name>
```

## The details of theme creation

Expand Down
11 changes: 0 additions & 11 deletions xtask/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ mod docgen;
mod helpers;
mod path;
mod querycheck;
mod themelint;

use std::{env, error::Error};

Expand All @@ -12,7 +11,6 @@ pub mod tasks {
use crate::docgen::{lang_features, typable_commands, write};
use crate::docgen::{LANG_SUPPORT_MD_OUTPUT, TYPABLE_COMMANDS_MD_OUTPUT};
use crate::querycheck::query_check;
use crate::themelint::{lint, lint_all};
use crate::DynError;

pub fn docgen() -> Result<(), DynError> {
Expand All @@ -21,13 +19,6 @@ pub mod tasks {
Ok(())
}

pub fn themelint(file: Option<String>) -> Result<(), DynError> {
match file {
Some(file) => lint(file),
None => lint_all(),
}
}

pub fn querycheck() -> Result<(), DynError> {
query_check()
}
Expand All @@ -39,7 +30,6 @@ Usage: Run with `cargo xtask <task>`, eg. `cargo xtask docgen`.
Tasks:
docgen: Generate files to be included in the mdbook output.
themelint <theme>: Report errors for <theme>, or all themes if no theme is specified.
query-check: Check that tree-sitter queries are valid.
"
);
Expand All @@ -52,7 +42,6 @@ fn main() -> Result<(), DynError> {
None => tasks::print_help(),
Some(t) => match t.as_str() {
"docgen" => tasks::docgen()?,
"themelint" => tasks::themelint(env::args().nth(2))?,
"query-check" => tasks::querycheck()?,
invalid => return Err(format!("Invalid task name: {}", invalid).into()),
},
Expand Down
4 changes: 0 additions & 4 deletions xtask/src/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,3 @@ pub fn ts_queries() -> PathBuf {
pub fn lang_config() -> PathBuf {
project_root().join("languages.toml")
}

pub fn themes() -> PathBuf {
project_root().join("runtime/themes")
}
200 changes: 0 additions & 200 deletions xtask/src/themelint.rs

This file was deleted.

0 comments on commit ff0b1ff

Please sign in to comment.