@@ -31,7 +31,7 @@ public class UsageTracker : IUsageTracker
3131 readonly Lazy < IRepositoryHosts > repositoryHosts ;
3232 //readonly Lazy<IAppVersionProvider> appVersionProvider;
3333 readonly Lazy < IEnvironment > environment ;
34- readonly Lazy < IRepositoryHosts > trackedRepositories ;
34+ //// readonly Lazy<IRepositoryHosts> trackedRepositories;
3535 readonly IPackageSettings userSettings ;
3636
3737 // Whenever you add a counter make sure it gets added to _both_
@@ -228,15 +228,15 @@ IObservable<UsageModel> BuildUsageModel(bool weekly, bool monthly)
228228 model . Is64BitOperatingSystem = env . Is64BitOperatingSystem ;
229229 model . Lang = CultureInfo . InstalledUICulture . IetfLanguageTag ;
230230
231- try
232- {
233- model . RamMB = ( int ) ( env . GetTotalInstalledPhysicalMemory ( ) / 1024 / 1024 ) ;
234- }
235- catch ( Exception ex )
236- {
237- // This shouldn't really throw but let's be super defensive.
238- log . Warn ( "Could not get total installed physical memory" , ex ) ;
239- }
231+ //// try
232+ //// {
233+ //// model.RamMB = (int)(env.GetTotalInstalledPhysicalMemory() / 1024 / 1024);
234+ //// }
235+ //// catch (Exception ex)
236+ //// {
237+ //// // This shouldn't really throw but let's be super defensive.
238+ //// log.Warn("Could not get total installed physical memory", ex);
239+ //// }
240240
241241 try
242242 {
@@ -301,23 +301,22 @@ static bool IsOwner(IRepositoryModel repo, IRepositoryHosts hosts)
301301 ////if (!repo.IsHosted || !repo.OwnerId.HasValue)
302302 //// return false;
303303
304- if ( hosts . GitHubHost != null && IsOwner ( repo , hosts . GitHubHost ) )
305- return true ;
304+ //// if (hosts.GitHubHost != null && IsOwner(repo, hosts.GitHubHost))
305+ //// return true;
306306
307- if ( hosts . EnterpriseHost != null && IsOwner ( repo , hosts . EnterpriseHost ) )
308- return true ;
307+ //// if (hosts.EnterpriseHost != null && IsOwner(repo, hosts.EnterpriseHost))
308+ //// return true;
309309
310310 return false ;
311311 }
312312
313- static bool IsOwner ( IRepositoryModel repo , IRepositoryHost host )
314- {
315- throw new NotImplementedException ( ) ;
316- ////Guard.ArgumentNotNull(repo, "repo");
317- ////Guard.ArgumentNotNull(host, "host");
313+ ////static bool IsOwner(IRepositoryModel repo, IRepositoryHost host)
314+ ////{
315+ //// Guard.ArgumentNotNull(repo, "repo");
316+ //// Guard.ArgumentNotNull(host, "host");
318317
319- ////return host.User != null && repo.OwnerId.HasValue && host.User.Id == repo.OwnerId.Value;
320- }
318+ //// return host.User != null && repo.OwnerId.HasValue && host.User.Id == repo.OwnerId.Value;
319+ //// }
321320
322321 IObservable < Unit > Run ( )
323322 {
0 commit comments