In the Extension.cs file that lives in the Models folder of the ExtensionManager.Shared project, the overload
of the Extension.FromExtension method that takes an IExtension as its sole parameter should be removed.
It's dead code and not referenced anywhere. It's not necessary to worry about whether this code may be used in the future because it will be preserved through Git history.
Specifically, I mean remove the following method:
public static Extension FromIExtension(IExtension entry)
{
return new Extension
{
ID = entry.Header.Identifier,
Name = entry.Header.Name,
MoreInfoUrl = entry.Header.MoreInfoUrl?.ToString()
};
}
Personally, I am always an advocate of removing all dead code.
Also, the statement using Microsoft.VisualStudio.ExtensionManager; can be removed from the top of the Extension.cs file. Did so. See commit 0dc16adaf95c002d2cb6548649e97140190656bf
In the
Extension.cs
file that lives in theModels
folder of theExtensionManager.Shared
project, the overload of theExtension.FromExtension
method that takes anIExtension
as its sole parameter should be removed.It's dead code and not referenced anywhere. It's not necessary to worry about whether this code may be used in the future because it will be preserved through Git history.
Specifically, I mean remove the following method:
Personally, I am always an advocate of removing all dead code.