@@ -17,17 +17,6 @@ public abstract class RepositoryFormViewModel : ViewModelBase
1717
1818 protected RepositoryFormViewModel ( )
1919 {
20- CanKeepPrivateObservable = this . WhenAny (
21- x => x . SelectedAccount . IsEnterprise ,
22- x => x . SelectedAccount . IsOnFreePlan ,
23- x => x . SelectedAccount . HasMaximumPrivateRepositories ,
24- ( isEnterprise , isOnFreePlan , hasMaxPrivateRepos ) =>
25- isEnterprise . Value || ( ! isOnFreePlan . Value && ! hasMaxPrivateRepos . Value ) ) ;
26-
27- CanKeepPrivateObservable
28- . Where ( x => ! x )
29- . Subscribe ( x => KeepPrivate = false ) ;
30-
3120 safeRepositoryName = this . WhenAny ( x => x . RepositoryName , x => x . Value )
3221 . Select ( x => x != null ? GetSafeRepositoryName ( x ) : null )
3322 . ToProperty ( this , x => x . SafeRepositoryName ) ;
@@ -85,14 +74,6 @@ public IAccount SelectedAccount
8574 set { this . RaiseAndSetIfChanged ( ref selectedAccount , value ) ; }
8675 }
8776
88- public bool ShowUpgradePlanWarning { get ; private set ; }
89-
90- public bool ShowUpgradeToMicroPlanWarning { get ; private set ; }
91-
92- public ICommand UpgradeAccountPlan { get ; private set ; }
93-
94- protected IObservable < bool > CanKeepPrivateObservable { get ; private set ; }
95-
9677 // These are the characters which are permitted when creating a repository name on GitHub The Website
9778 static readonly Regex invalidRepositoryCharsRegex = new Regex ( @"[^0-9A-Za-z_\.\-]" , RegexOptions . ECMAScript ) ;
9879
0 commit comments