diff --git a/src/EditorFeatures/Core/Shared/Extensions/ITextSnapshotExtensions.cs b/src/EditorFeatures/Core/Shared/Extensions/ITextSnapshotExtensions.cs
index 12e08ead4d5b045a397577aa0bb52906ee9eaa54..76c9fc84f7d52939f947be0a64f0977edd54e53e 100644
--- a/src/EditorFeatures/Core/Shared/Extensions/ITextSnapshotExtensions.cs
+++ b/src/EditorFeatures/Core/Shared/Extensions/ITextSnapshotExtensions.cs
@@ -14,33 +14,6 @@ namespace Microsoft.CodeAnalysis.Editor.Shared.Extensions
{
internal static partial class ITextSnapshotExtensions
{
-#if false
- ///
- /// get Document corresponding to the snapshot
- ///
- public static bool TryGetDocument(this ITextSnapshot snapshot, out Document document)
- {
- document = snapshot.AsText().GetRelatedDocumentsWithChanges().FirstOrDefault();
- return document != null;
- }
-#endif
-
- ///
- /// format given snapshot and apply text changes to buffer
- ///
- public static void FormatAndApplyToBuffer(this ITextSnapshot snapshot, CancellationToken cancellationToken)
- {
- snapshot.FormatAndApplyToBuffer(new TextSpan(0, snapshot.Length), rules: null, cancellationToken: cancellationToken);
- }
-
- ///
- /// format given snapshot and apply text changes to buffer
- ///
- public static void FormatAndApplyToBuffer(this ITextSnapshot snapshot, IEnumerable rules, CancellationToken cancellationToken)
- {
- snapshot.FormatAndApplyToBuffer(new TextSpan(0, snapshot.Length), rules, cancellationToken);
- }
-
///
/// format given snapshot and apply text changes to buffer
///