File tree Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -79,9 +79,6 @@ fn main() -> Result<()> {
79
79
return Ok ( ( ) ) ;
80
80
}
81
81
82
- // TODO: To be removed in a future version, when upgrading from 0.6.x or earlier is unlikely
83
- migrate_config ( ) ?;
84
-
85
82
setup_terminal ( ) ?;
86
83
defer ! {
87
84
shutdown_terminal( ) . expect( "shutdown failed" ) ;
@@ -229,23 +226,6 @@ fn start_terminal<W: Write>(
229
226
Ok ( terminal)
230
227
}
231
228
232
- fn migrate_config ( ) -> Result < ( ) > {
233
- let cache_path: PathBuf = get_app_cache_path ( ) ?;
234
-
235
- let entries = cache_path. read_dir ( ) ?. flatten ( ) . filter ( |entry| {
236
- !entry. file_name ( ) . to_string_lossy ( ) . ends_with ( ".log" )
237
- } ) ;
238
-
239
- let config_path: PathBuf = get_app_config_path ( ) ?;
240
- for entry in entries {
241
- let mut config_path: PathBuf = config_path. clone ( ) ;
242
- config_path. push ( entry. file_name ( ) ) ;
243
- fs:: rename ( entry. path ( ) , config_path) ?;
244
- }
245
-
246
- Ok ( ( ) )
247
- }
248
-
249
229
fn get_app_cache_path ( ) -> Result < PathBuf > {
250
230
let mut path = dirs:: cache_dir ( )
251
231
. ok_or_else ( || anyhow ! ( "failed to find os cache dir." ) ) ?;
You can’t perform that action at this time.
0 commit comments