Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
kwinso committed Sep 3, 2022
1 parent 867b32c commit 9aa2508
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# 1.3.1
- [X] Improved speed: writing to file only once when using multiple blocks mode
- [X] Optimized `set` subcommand speed: writing to file only once when using multiple blocks mode

# 1.3.0
- [X] Multiple themer blocks inside single file
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions src/updates.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ pub fn run(theme_name: String, config: &Config) {

for (_, conf) in &config.files {
let update = update_gen.generate(&conf);
log::debug!("{update:#?}");
write_results(update, &conf);
}
}
Expand Down Expand Up @@ -98,9 +97,6 @@ impl UpdatesGenerator {
Ok(contents)
}

// TODO 1: Create function that allows to pass TaggaedConfig and managas single string of contents instead of reading & writing every block
// TODO 2: Create a function for BlockConfig only
// TODO 3: Generate function should only accept BlockConfig, contents string and return updated string
fn update_block(
&mut self,
contents: &mut String,
Expand All @@ -112,7 +108,6 @@ impl UpdatesGenerator {
let mut update = self.block_generator.generate();
// Replacing dollar sign to avoid Regex issues
update = self.block_generator.wrap(&update).replace("$", "$$");
log::debug!("{update}");

Ok(self
.block_generator
Expand Down

0 comments on commit 9aa2508

Please sign in to comment.