Remove redundant qualifiers

This commit is contained in:
Jason Shirk
2017-07-31 17:12:44 -07:00
parent 95683f26f2
commit 2eb74eb0f4
3 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -775,7 +775,7 @@ namespace Microsoft.PowerShell.Internal
var consoleHandle = _outputHandle.Value;
try
{
CONSOLE_FONT_INFO_EX fontInfo = ConhostConsole.GetConsoleFontInfo(consoleHandle);
CONSOLE_FONT_INFO_EX fontInfo = GetConsoleFontInfo(consoleHandle);
int fontType = fontInfo.FontFamily & NativeMethods.FontTypeMask;
_trueTypeInUse = (fontType & NativeMethods.TrueTypeFont) == NativeMethods.TrueTypeFont;
}
+7 -7
View File
@@ -287,7 +287,7 @@ namespace Microsoft.PowerShell
/// <summary>
/// Return all bound key handlers.
/// </summary>
public static IEnumerable<Microsoft.PowerShell.KeyHandler> GetKeyHandlers()
public static IEnumerable<PowerShell.KeyHandler> GetKeyHandlers()
{
return GetKeyHandlers(includeBound: true, includeUnbound: false);
}
@@ -296,7 +296,7 @@ namespace Microsoft.PowerShell
/// Helper function for the Get-PSReadlineKeyHandler cmdlet.
/// </summary>
/// <returns></returns>
public static IEnumerable<Microsoft.PowerShell.KeyHandler> GetKeyHandlers(bool includeBound, bool includeUnbound)
public static IEnumerable<PowerShell.KeyHandler> GetKeyHandlers(bool includeBound, bool includeUnbound)
{
var boundFunctions = new HashSet<string>(StringComparer.OrdinalIgnoreCase);
@@ -310,7 +310,7 @@ namespace Microsoft.PowerShell
boundFunctions.Add(entry.Value.BriefDescription);
if (includeBound)
{
yield return new Microsoft.PowerShell.KeyHandler
yield return new PowerShell.KeyHandler
{
Key = entry.Key.ToGestureString(),
Function = entry.Value.BriefDescription,
@@ -332,7 +332,7 @@ namespace Microsoft.PowerShell
boundFunctions.Add(entry.Value.BriefDescription);
if (includeBound)
{
yield return new Microsoft.PowerShell.KeyHandler
yield return new PowerShell.KeyHandler
{
Key = "<" + entry.Key.ToGestureString() + ">",
Function = entry.Value.BriefDescription,
@@ -349,7 +349,7 @@ namespace Microsoft.PowerShell
boundFunctions.Add( secondEntry.Value.BriefDescription );
if (includeBound)
{
yield return new Microsoft.PowerShell.KeyHandler
yield return new PowerShell.KeyHandler
{
Key = entry.Key.ToGestureString() + "," + secondEntry.Key.ToGestureString(),
Function = secondEntry.Value.BriefDescription,
@@ -373,7 +373,7 @@ namespace Microsoft.PowerShell
boundFunctions.Add(secondEntry.Value.BriefDescription);
if (includeBound)
{
yield return new Microsoft.PowerShell.KeyHandler
yield return new PowerShell.KeyHandler
{
Key = "<" + entry.Key.ToGestureString() + "," + secondEntry.Key.ToGestureString() + ">",
Function = secondEntry.Value.BriefDescription,
@@ -402,7 +402,7 @@ namespace Microsoft.PowerShell
if (!boundFunctions.Contains(method.Name))
{
yield return new Microsoft.PowerShell.KeyHandler
yield return new PowerShell.KeyHandler
{
Key = "Unbound",
Function = method.Name,
+1 -1
View File
@@ -32,7 +32,7 @@ namespace Microsoft.PowerShell
int selectionTop = _singleton._console.CursorTop;
int selectionHeight = 1;
int currentY = selectionTop;
Internal.IConsole console = _singleton._console;
IConsole console = _singleton._console;
// We'll keep the current selection line (currentY) at least 4 lines
// away from the top or bottom of the window.