Skip to content

Commit

Permalink
[Markdig] Use global usings
Browse files Browse the repository at this point in the history
  • Loading branch information
iamcarbon committed Jan 22, 2023
1 parent 74f978e commit 9422764
Show file tree
Hide file tree
Showing 94 changed files with 32 additions and 138 deletions.
1 change: 0 additions & 1 deletion src/Markdig/Extensions/Abbreviations/AbbreviationHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// This file is licensed under the BSD-Clause 2 license.
// See the license.txt file in the project root for more information.

using System.Collections.Generic;
using Markdig.Helpers;
using Markdig.Syntax;

Expand Down
2 changes: 0 additions & 2 deletions src/Markdig/Extensions/Abbreviations/AbbreviationParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
// This file is licensed under the BSD-Clause 2 license.
// See the license.txt file in the project root for more information.

using System;
using System.Collections.Generic;
using Markdig.Helpers;
using Markdig.Parsers;
using Markdig.Syntax;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// This file is licensed under the BSD-Clause 2 license.
// See the license.txt file in the project root for more information.

using System.Collections.Generic;
using System.IO;

using Markdig.Helpers;
using Markdig.Parsers;
using Markdig.Renderers;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
// This file is licensed under the BSD-Clause 2 license.
// See the license.txt file in the project root for more information.

using System;

namespace Markdig.Extensions.AutoIdentifiers;

/// <summary>
Expand Down
2 changes: 0 additions & 2 deletions src/Markdig/Extensions/AutoLinks/AutoLinkParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
// This file is licensed under the BSD-Clause 2 license.
// See the license.txt file in the project root for more information.

using System;
using System.Collections.Generic;
using Markdig.Helpers;
using Markdig.Parsers;
using Markdig.Renderers.Html;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// This file is licensed under the BSD-Clause 2 license.
// See the license.txt file in the project root for more information.

using System;
using Markdig.Parsers;
using Markdig.Syntax;

Expand Down
1 change: 0 additions & 1 deletion src/Markdig/Extensions/Emoji/EmojiMapping.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// This file is licensed under the BSD-Clause 2 license.
// See the license.txt file in the project root for more information.

using System.Collections.Generic;
using Markdig.Helpers;

namespace Markdig.Extensions.Emoji;
Expand Down
2 changes: 0 additions & 2 deletions src/Markdig/Extensions/Emoji/EmojiParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
// This file is licensed under the BSD-Clause 2 license.
// See the license.txt file in the project root for more information.

using System;
using System.Collections.Generic;
using Markdig.Helpers;
using Markdig.Parsers;

Expand Down
2 changes: 0 additions & 2 deletions src/Markdig/Extensions/EmphasisExtras/EmphasisExtraOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
// This file is licensed under the BSD-Clause 2 license.
// See the license.txt file in the project root for more information.

using System;

namespace Markdig.Extensions.EmphasisExtras;

/// <summary>
Expand Down
1 change: 0 additions & 1 deletion src/Markdig/Extensions/Footnotes/Footnote.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// This file is licensed under the BSD-Clause 2 license.
// See the license.txt file in the project root for more information.

using System.Collections.Generic;
using Markdig.Parsers;
using Markdig.Syntax;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// This file is licensed under the BSD-Clause 2 license.
// See the license.txt file in the project root for more information.

using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;

using Markdig.Helpers;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
// This file is licensed under the BSD-Clause 2 license.
// See the license.txt file in the project root for more information.

using System.Diagnostics;

using Markdig.Extensions.Tables;
using Markdig.Extensions.TaskLists;
using Markdig.Helpers;
using Markdig.Renderers;
using Markdig.Renderers.Html;
using Markdig.Syntax;
using Markdig.Syntax.Inlines;
using System.Collections.Generic;
using System.Diagnostics;

namespace Markdig.Extensions.Globalization;

Expand Down
1 change: 0 additions & 1 deletion src/Markdig/Extensions/JiraLinks/JiraLinkInlineParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// This file is licensed under the BSD-Clause 2 license.
// See the license.txt file in the project root for more information.

using System;
using Markdig.Helpers;
using Markdig.Parsers;
using Markdig.Renderers.Html;
Expand Down
1 change: 0 additions & 1 deletion src/Markdig/Extensions/JiraLinks/JiraLinkOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// See the license.txt file in the project root for more information.

using Markdig.Helpers;
using System;

namespace Markdig.Extensions.JiraLinks;

Expand Down
2 changes: 0 additions & 2 deletions src/Markdig/Extensions/ListExtras/ListExtraItemParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
// This file is licensed under the BSD-Clause 2 license.
// See the license.txt file in the project root for more information.

using System;

using Markdig.Helpers;
using Markdig.Parsers;

Expand Down
5 changes: 2 additions & 3 deletions src/Markdig/Extensions/MediaLinks/HostProviderBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@
// This file is licensed under the BSD-Clause 2 license.
// See the license.txt file in the project root for more information.

using Markdig.Helpers;
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;

using Markdig.Helpers;

namespace Markdig.Extensions.MediaLinks;

public class HostProviderBuilder
Expand Down
1 change: 0 additions & 1 deletion src/Markdig/Extensions/MediaLinks/IHostProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// This file is licensed under the BSD-Clause 2 license.
// See the license.txt file in the project root for more information.

using System;
using System.Diagnostics.CodeAnalysis;

namespace Markdig.Extensions.MediaLinks;
Expand Down
1 change: 0 additions & 1 deletion src/Markdig/Extensions/MediaLinks/MediaLinkExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// This file is licensed under the BSD-Clause 2 license.
// See the license.txt file in the project root for more information.

using System;
using Markdig.Renderers;
using Markdig.Renderers.Html;
using Markdig.Renderers.Html.Inlines;
Expand Down
3 changes: 0 additions & 3 deletions src/Markdig/Extensions/MediaLinks/MediaOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
// This file is licensed under the BSD-Clause 2 license.
// See the license.txt file in the project root for more information.

using System;
using System.Collections.Generic;

namespace Markdig.Extensions.MediaLinks;

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

using Markdig.Extensions.ReferralLinks;
using Markdig.Renderers;
using System;

namespace Markdig.Extensions.NoRefLinks;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
// This file is licensed under the BSD-Clause 2 license.
// See the license.txt file in the project root for more information.

using System;
using System.Collections.Generic;
using System.Linq;

using Markdig.Renderers;
using Markdig.Renderers.Html.Inlines;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// This file is licensed under the BSD-Clause 2 license.
// See the license.txt file in the project root for more information.

using System;
using Markdig.Helpers;
using Markdig.Renderers;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// This file is licensed under the BSD-Clause 2 license.
// See the license.txt file in the project root for more information.

using System;
using Markdig.Renderers;
using Markdig.Renderers.Html;

Expand Down
2 changes: 0 additions & 2 deletions src/Markdig/Extensions/SmartyPants/SmartyPantOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
// This file is licensed under the BSD-Clause 2 license.
// See the license.txt file in the project root for more information.

using System.Collections.Generic;

namespace Markdig.Extensions.SmartyPants;

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// This file is licensed under the BSD-Clause 2 license.
// See the license.txt file in the project root for more information.

using System.Collections.Generic;
using Markdig.Helpers;
using Markdig.Parsers;
using Markdig.Syntax;
Expand Down
1 change: 0 additions & 1 deletion src/Markdig/Extensions/Tables/GridTableParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// This file is licensed under the BSD-Clause 2 license.
// See the license.txt file in the project root for more information.

using System.Collections.Generic;
using Markdig.Helpers;
using Markdig.Parsers;
using Markdig.Syntax;
Expand Down
1 change: 0 additions & 1 deletion src/Markdig/Extensions/Tables/GridTableState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// This file is licensed under the BSD-Clause 2 license.
// See the license.txt file in the project root for more information.

using System.Collections.Generic;
using Markdig.Helpers;
using Markdig.Parsers;

Expand Down
2 changes: 1 addition & 1 deletion src/Markdig/Extensions/Tables/HtmlTableRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// This file is licensed under the BSD-Clause 2 license.
// See the license.txt file in the project root for more information.

using System;
using System.Globalization;

using Markdig.Renderers;
using Markdig.Renderers.Html;

Expand Down
3 changes: 1 addition & 2 deletions src/Markdig/Extensions/Tables/PipeTableParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
// This file is licensed under the BSD-Clause 2 license.
// See the license.txt file in the project root for more information.

using System;
using System.Collections.Generic;
using System.Diagnostics;

using Markdig.Helpers;
using Markdig.Parsers;
using Markdig.Parsers.Inlines;
Expand Down
1 change: 0 additions & 1 deletion src/Markdig/Extensions/Tables/Table.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// This file is licensed under the BSD-Clause 2 license.
// See the license.txt file in the project root for more information.

using System.Collections.Generic;
using Markdig.Parsers;
using Markdig.Syntax;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// This file is licensed under the BSD-Clause 2 license.
// See the license.txt file in the project root for more information.

using System;
using Markdig.Renderers;
using Markdig.Renderers.Roundtrip;

Expand Down
2 changes: 2 additions & 0 deletions src/Markdig/Globals.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
global using System;
global using System.Collections.Generic;
1 change: 0 additions & 1 deletion src/Markdig/Helpers/BlockWrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// See the license.txt file in the project root for more information.

using Markdig.Syntax;
using System;

namespace Markdig.Helpers;

Expand Down
4 changes: 1 addition & 3 deletions src/Markdig/Helpers/CharHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@
// This file is licensed under the BSD-Clause 2 license.
// See the license.txt file in the project root for more information.

using System;
using System.Diagnostics;
using System.Globalization;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Diagnostics;

namespace Markdig.Helpers;

Expand Down
2 changes: 0 additions & 2 deletions src/Markdig/Helpers/CharNormalizer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
// This file is licensed under the BSD-Clause 2 license.
// See the license.txt file in the project root for more information.

using System.Collections.Generic;

namespace Markdig.Helpers;

/// <summary>
Expand Down
2 changes: 0 additions & 2 deletions src/Markdig/Helpers/CharacterMap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
// This file is licensed under the BSD-Clause 2 license.
// See the license.txt file in the project root for more information.

using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Runtime.CompilerServices;
Expand Down
2 changes: 0 additions & 2 deletions src/Markdig/Helpers/CompactPrefixTree.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@

#nullable disable

using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.Runtime.CompilerServices;
Expand Down
3 changes: 0 additions & 3 deletions src/Markdig/Helpers/EntityHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

using System;
using System.Collections.Generic;

namespace Markdig.Helpers;

/// <summary>
Expand Down
1 change: 0 additions & 1 deletion src/Markdig/Helpers/FastStringWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// This file is licensed under the BSD-Clause 2 license.
// See the license.txt file in the project root for more information.

using System;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.IO;
Expand Down
1 change: 0 additions & 1 deletion src/Markdig/Helpers/HtmlHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// This file is licensed under the BSD-Clause 2 license.
// See the license.txt file in the project root for more information.

using System;
using System.Diagnostics.CodeAnalysis;
using System.Runtime.CompilerServices;

Expand Down
1 change: 0 additions & 1 deletion src/Markdig/Helpers/LazySubstring.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// This file is licensed under the BSD-Clause 2 license.
// See the license.txt file in the project root for more information.

using System;
using System.Diagnostics;

namespace Markdig.Helpers;
Expand Down
1 change: 0 additions & 1 deletion src/Markdig/Helpers/LineReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// This file is licensed under the BSD-Clause 2 license.
// See the license.txt file in the project root for more information.

using System;
using System.IO;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
Expand Down
1 change: 0 additions & 1 deletion src/Markdig/Helpers/ObjectCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// This file is licensed under the BSD-Clause 2 license.
// See the license.txt file in the project root for more information.

using System;
using System.Collections.Concurrent;

namespace Markdig.Helpers;
Expand Down
1 change: 0 additions & 1 deletion src/Markdig/Helpers/OrderedList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// This file is licensed under the BSD-Clause 2 license.
// See the license.txt file in the project root for more information.

using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;

namespace Markdig.Helpers;
Expand Down
Loading

0 comments on commit 9422764

Please sign in to comment.