Skip to content

Commit 2647b91

Browse files
committed
cleaning up comments and removed unused code
1 parent 119d0c6 commit 2647b91

File tree

1 file changed

+1
-7
lines changed
  • src/PowerShellEditorServices/Services/PowerShell/Refactoring

1 file changed

+1
-7
lines changed

src/PowerShellEditorServices/Services/PowerShell/Refactoring/Utilities.cs

+1-7
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public static Ast GetAstParentOfType(Ast ast, params Type[] type)
4545

4646
public static FunctionDefinitionAst GetFunctionDefByCommandAst(string OldName, int StartLineNumber, int StartColumnNumber, Ast ScriptFile)
4747
{
48-
// Look up the targetted object
48+
// Look up the targeted object
4949
CommandAst TargetCommand = (CommandAst)Utilities.GetAstAtPositionOfType(StartLineNumber, StartColumnNumber, ScriptFile
5050
, typeof(CommandAst));
5151

@@ -69,12 +69,6 @@ public static FunctionDefinitionAst GetFunctionDefByCommandAst(string OldName, i
6969
{
7070
return FunctionDefinitions[0];
7171
}
72-
// Sort function definitions
73-
//FunctionDefinitions.Sort((a, b) =>
74-
//{
75-
// return b.Extent.EndColumnNumber + b.Extent.EndLineNumber -
76-
// a.Extent.EndLineNumber + a.Extent.EndColumnNumber;
77-
//});
7872
// Determine which function definition is the right one
7973
FunctionDefinitionAst CorrectDefinition = null;
8074
for (int i = FunctionDefinitions.Count - 1; i >= 0; i--)

0 commit comments

Comments
 (0)