Skip to content

Commit

Permalink
removed redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
nosami committed Mar 14, 2013
1 parent 04f11da commit a78af16
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 120 deletions.
116 changes: 0 additions & 116 deletions OmniSharp/AutoComplete/TypeReference.cs

This file was deleted.

5 changes: 2 additions & 3 deletions OmniSharp/FindUsages/FindUsagesHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ public static class AstNodeExtensions
{
public static string Preview(this AstNode node, CSharpFile file)
{
var region = node.GetRegion();
var location = node.StartLocation;
var offset = file.Document.GetOffset(location.Line, location.Column);
var line = file.Document.GetLineByNumber(location.Line);
Expand All @@ -102,8 +101,8 @@ public static string Preview(this AstNode node, CSharpFile file)
return file.Document.GetText(line.Offset, line.Length);
}

var start = Math.Max(line.Offset, offset - 30);
var end = Math.Min(line.EndOffset, offset + 30);
var start = Math.Max(line.Offset, offset - 60);
var end = Math.Min(line.EndOffset, offset + 60);

return "..." + file.Document.GetText(start, end - start).Trim() + "...";
}
Expand Down
1 change: 0 additions & 1 deletion OmniSharp/OmniSharp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@
<Compile Include="AutoComplete\CompletionDataFactory.cs" />
<Compile Include="Solution\CSharpSolution.cs" />
<Compile Include="AutoComplete\StringExtensions.cs" />
<Compile Include="AutoComplete\TypeReference.cs" />
<Compile Include="AutoComplete\XmlDocumentationProviderFactory.cs" />
<Compile Include="SyntaxErrors\SyntaxErrorsHandler.cs" />
<Compile Include="SyntaxErrors\SyntaxErrorsResponse.cs" />
Expand Down

0 comments on commit a78af16

Please sign in to comment.