@@ -39,25 +39,6 @@ fn default_index_url() -> String {
3939 "https://api.geode-sdk.org" . to_string ( )
4040}
4141
42- // old config.json structures for migration
43- // TODO: remove this in 3.0
44- #[ derive( Serialize , Deserialize , Clone ) ]
45- #[ serde( rename_all = "kebab-case" ) ]
46- pub struct OldConfigInstallation {
47- pub path : PathBuf ,
48- pub executable : String ,
49- }
50-
51- // TODO: remove this in 3.0
52- #[ derive( Serialize , Deserialize , Clone ) ]
53- #[ serde( rename_all = "kebab-case" ) ]
54- pub struct OldConfig {
55- pub default_installation : usize ,
56- pub working_installation : Option < usize > ,
57- pub installations : Option < Vec < OldConfigInstallation > > ,
58- pub default_developer : Option < String > ,
59- }
60-
6142pub fn profile_platform_default ( ) -> String {
6243 if cfg ! ( target_os = "windows" ) {
6344 "win" . to_owned ( )
@@ -159,7 +140,7 @@ impl Config {
159140 }
160141 }
161142
162- pub fn get_current_profile ( & ' _ self ) -> Ref < ' _ , Profile > {
143+ pub fn get_current_profile ( & self ) -> Ref < ' _ , Profile > {
163144 self . get_profile ( & self . current_profile )
164145 . nice_unwrap ( "No current profile found!" )
165146 . borrow ( )
0 commit comments