File tree 1 file changed +0
-20
lines changed
1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -80,9 +80,6 @@ fn main() -> Result<()> {
80
80
return Ok ( ( ) ) ;
81
81
}
82
82
83
- // TODO: To be removed in a future version, when upgrading from 0.6.x or earlier is unlikely
84
- migrate_config ( ) ?;
85
-
86
83
setup_terminal ( ) ?;
87
84
defer ! {
88
85
shutdown_terminal( ) . expect( "shutdown failed" ) ;
@@ -231,23 +228,6 @@ fn start_terminal<W: Write>(
231
228
Ok ( terminal)
232
229
}
233
230
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
-
251
231
fn get_app_cache_path ( ) -> Result < PathBuf > {
252
232
let mut path = dirs:: cache_dir ( )
253
233
. ok_or_else ( || anyhow ! ( "failed to find os cache dir." ) ) ?;
You can’t perform that action at this time.
0 commit comments