Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 2118992

Browse files
Fixing merge errors
1 parent e7e904e commit 2118992

File tree

2 files changed

+0
-42
lines changed

2 files changed

+0
-42
lines changed

src/GitHub.Exports/Models/UsageModel.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ public struct UsageModel
1313
public string VSVersion { get; set; }
1414
public string Lang { get; set; }
1515
public string CurrentLang { get; set; }
16-
public bool IsGitHubUser { get; set; }
17-
public bool IsEnterpriseUser { get; set; }
1816
public int NumberOfStartups { get; set; }
1917
public int NumberOfUpstreamPullRequests { get; set; }
2018
public int NumberOfClones { get; set; }

src/GitHub.VisualStudio/Services/UsageService.cs

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -77,46 +77,6 @@ public async Task<Guid> GetUserGuid()
7777
return userGuid.Value;
7878
}
7979

80-
public async Task<Guid> GetUserGuid()
81-
{
82-
await Initialize();
83-
84-
if (!userGuid.HasValue)
85-
{
86-
try
87-
{
88-
if (File.Exists(userStorePath))
89-
{
90-
var json = await ReadAllTextAsync(userStorePath);
91-
var data = SimpleJson.DeserializeObject<UserData>(json);
92-
userGuid = data.UserGuid;
93-
}
94-
}
95-
catch (Exception ex)
96-
{
97-
log.Error(ex, "Failed reading user metrics GUID");
98-
}
99-
}
100-
101-
if (!userGuid.HasValue || userGuid.Value == Guid.Empty)
102-
{
103-
userGuid = Guid.NewGuid();
104-
105-
try
106-
{
107-
var data = new UserData { UserGuid = userGuid.Value };
108-
var json = SimpleJson.SerializeObject(data);
109-
await WriteAllTextAsync(userStorePath, json);
110-
}
111-
catch (Exception ex)
112-
{
113-
log.Error(ex, "Failed reading writing metrics GUID");
114-
}
115-
}
116-
117-
return userGuid.Value;
118-
}
119-
12080
public bool IsToday(DateTimeOffset date)
12181
{
12282
return date.Date == DateTimeOffset.Now.Date;

0 commit comments

Comments
 (0)