Skip to content

Commit 94972d3

Browse files
author
Stephan Dilly
committed
Merge branch 'master' into use-file-watcher-#1
2 parents 91a0cb9 + e7d17b2 commit 94972d3

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

src/main.rs

-20
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,6 @@ fn main() -> Result<()> {
8080
return Ok(());
8181
}
8282

83-
// TODO: To be removed in a future version, when upgrading from 0.6.x or earlier is unlikely
84-
migrate_config()?;
85-
8683
setup_terminal()?;
8784
defer! {
8885
shutdown_terminal().expect("shutdown failed");
@@ -231,23 +228,6 @@ fn start_terminal<W: Write>(
231228
Ok(terminal)
232229
}
233230

234-
fn migrate_config() -> Result<()> {
235-
let cache_path: PathBuf = get_app_cache_path()?;
236-
237-
let entries = cache_path.read_dir()?.flatten().filter(|entry| {
238-
!entry.file_name().to_string_lossy().ends_with(".log")
239-
});
240-
241-
let config_path: PathBuf = get_app_config_path()?;
242-
for entry in entries {
243-
let mut config_path: PathBuf = config_path.clone();
244-
config_path.push(entry.file_name());
245-
fs::rename(entry.path(), config_path)?;
246-
}
247-
248-
Ok(())
249-
}
250-
251231
fn get_app_cache_path() -> Result<PathBuf> {
252232
let mut path = dirs::cache_dir()
253233
.ok_or_else(|| anyhow!("failed to find os cache dir."))?;

0 commit comments

Comments
 (0)