提交 ef0346b7 编写于 作者: J Jason Malinowski

Delete dead code

上级 1b8a9094
......@@ -14,33 +14,6 @@ namespace Microsoft.CodeAnalysis.Editor.Shared.Extensions
{
internal static partial class ITextSnapshotExtensions
{
#if false
/// <summary>
/// get Document corresponding to the snapshot
/// </summary>
public static bool TryGetDocument(this ITextSnapshot snapshot, out Document document)
{
document = snapshot.AsText().GetRelatedDocumentsWithChanges().FirstOrDefault();
return document != null;
}
#endif
/// <summary>
/// format given snapshot and apply text changes to buffer
/// </summary>
public static void FormatAndApplyToBuffer(this ITextSnapshot snapshot, CancellationToken cancellationToken)
{
snapshot.FormatAndApplyToBuffer(new TextSpan(0, snapshot.Length), rules: null, cancellationToken: cancellationToken);
}
/// <summary>
/// format given snapshot and apply text changes to buffer
/// </summary>
public static void FormatAndApplyToBuffer(this ITextSnapshot snapshot, IEnumerable<IFormattingRule> rules, CancellationToken cancellationToken)
{
snapshot.FormatAndApplyToBuffer(new TextSpan(0, snapshot.Length), rules, cancellationToken);
}
/// <summary>
/// format given snapshot and apply text changes to buffer
/// </summary>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册