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

Commit 37c491e

Browse files
committed
Remove no longer used ActivityLog methods
This fixes CA errors.
1 parent 50c18b0 commit 37c491e

File tree

2 files changed

+1
-42
lines changed

2 files changed

+1
-42
lines changed

src/GitHub.Exports/Services/IVSServices.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@ namespace GitHub.Services
66
public interface IVSServices
77
{
88
string VSVersion { get; }
9-
10-
void ActivityLogMessage(string message);
11-
void ActivityLogWarning(string message);
12-
void ActivityLogError(string message);
139
bool TryOpenRepository(string directory);
1410
}
1511
}

src/GitHub.Exports/Services/VSServices.cs

Lines changed: 1 addition & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,9 @@
44
using System.IO;
55
using System.Linq;
66
using GitHub.Logging;
7-
using GitHub.VisualStudio;
8-
using Microsoft.VisualStudio;
9-
using Microsoft.VisualStudio.Shell.Interop;
107
using Rothko;
118
using Serilog;
12-
using DTE = EnvDTE.DTE;
9+
using EnvDTE;
1310

1411
namespace GitHub.Services
1512
{
@@ -46,40 +43,6 @@ public string VSVersion
4643
}
4744
}
4845

49-
public void ActivityLogMessage(string message)
50-
{
51-
var log = serviceProvider.GetActivityLog();
52-
if (log != null)
53-
{
54-
if (!ErrorHandler.Succeeded(log.LogEntry((UInt32)__ACTIVITYLOG_ENTRYTYPE.ALE_INFORMATION,
55-
Info.ApplicationInfo.ApplicationSafeName, message)))
56-
Console.WriteLine(string.Format(CultureInfo.CurrentCulture, "Could not log message to activity log: {0}", message));
57-
}
58-
}
59-
60-
public void ActivityLogError(string message)
61-
{
62-
var log = serviceProvider.GetActivityLog();
63-
if (log != null)
64-
{
65-
66-
if (!ErrorHandler.Succeeded(log.LogEntry((UInt32)__ACTIVITYLOG_ENTRYTYPE.ALE_ERROR,
67-
Info.ApplicationInfo.ApplicationSafeName, message)))
68-
Console.WriteLine(string.Format(CultureInfo.CurrentCulture, "Could not log error to activity log: {0}", message));
69-
}
70-
}
71-
72-
public void ActivityLogWarning(string message)
73-
{
74-
var log = serviceProvider.GetActivityLog();
75-
if (log != null)
76-
{
77-
if (!ErrorHandler.Succeeded(log.LogEntry((UInt32)__ACTIVITYLOG_ENTRYTYPE.ALE_WARNING,
78-
Info.ApplicationInfo.ApplicationSafeName, message)))
79-
Console.WriteLine(string.Format(CultureInfo.CurrentCulture, "Could not log warning to activity log: {0}", message));
80-
}
81-
}
82-
8346
/// <summary>Open a repository in Team Explorer</summary>
8447
/// <remarks>
8548
/// There doesn't appear to be a command that directly opens a target repo.

0 commit comments

Comments
 (0)