3
3
using Files . Helpers ;
4
4
using Files . UserControls . MultitaskingControl ;
5
5
using Files . Views ;
6
- using Microsoft . AppCenter ;
7
- using Microsoft . AppCenter . Analytics ;
8
- using Microsoft . AppCenter . Crashes ;
9
6
using Microsoft . Toolkit . Mvvm . ComponentModel ;
10
7
using Microsoft . Toolkit . Mvvm . Input ;
11
8
using Microsoft . Toolkit . Uwp ;
12
- using Newtonsoft . Json . Linq ;
13
9
using System ;
14
10
using System . Collections . Generic ;
15
11
using System . Collections . ObjectModel ;
@@ -54,8 +50,6 @@ public MainPageViewModel()
54
50
OpenNewWindowAcceleratorCommand = new RelayCommand < KeyboardAcceleratorInvokedEventArgs > ( OpenNewWindowAccelerator ) ;
55
51
CloseSelectedTabKeyboardAcceleratorCommand = new RelayCommand < KeyboardAcceleratorInvokedEventArgs > ( CloseSelectedTabKeyboardAccelerator ) ;
56
52
AddNewInstanceAcceleratorCommand = new RelayCommand < KeyboardAcceleratorInvokedEventArgs > ( AddNewInstanceAccelerator ) ;
57
-
58
- StartAppCenter ( ) ;
59
53
}
60
54
61
55
private void NavigateToNumberedTabKeyboardAccelerator ( KeyboardAcceleratorInvokedEventArgs e )
@@ -468,22 +462,5 @@ public static async void Control_ContentChanged(object sender, TabItemArguments
468
462
}
469
463
await UpdateTabInfo ( matchingTabItem , e . NavigationArg ) ;
470
464
}
471
-
472
- private async void StartAppCenter ( )
473
- {
474
- JObject obj ;
475
- try
476
- {
477
- StorageFile file = await StorageFile . GetFileFromApplicationUriAsync ( new Uri ( @"ms-appx:///Resources/AppCenterKey.txt" ) ) ;
478
- var lines = await FileIO . ReadTextAsync ( file ) ;
479
- obj = JObject . Parse ( lines ) ;
480
- }
481
- catch
482
- {
483
- return ;
484
- }
485
-
486
- AppCenter . Start ( ( string ) obj . SelectToken ( "key" ) , typeof ( Analytics ) , typeof ( Crashes ) ) ;
487
- }
488
465
}
489
466
}
0 commit comments