Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleanup using statements
Browse files Browse the repository at this point in the history
iamcarbon committed May 3, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent da44e1a commit 1db3c65
Showing 269 changed files with 36 additions and 484 deletions.
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/AcroForms/AcroForm.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.AcroForms
{
using System;
using System.Collections.Generic;
using System.Linq;
using Core;
using Fields;
3 changes: 1 addition & 2 deletions src/UglyToad.PdfPig/AcroForms/AcroFormExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
namespace UglyToad.PdfPig.AcroForms
{
using System.Collections.Generic;
using System.Linq;
using UglyToad.PdfPig.AcroForms.Fields;
using Fields;

/// <summary>
/// Extensions for AcroForm.
4 changes: 1 addition & 3 deletions src/UglyToad.PdfPig/AcroForms/AcroFormFactory.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
namespace UglyToad.PdfPig.AcroForms
{
using System.Linq;
using Content;
using Core;
using CrossReference;
using Fields;
using Filters;
using Parser.Parts;
using System;
using System.Collections.Generic;
using System.Linq;
using Tokenization.Scanner;
using Tokens;
using Util;
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/AcroForms/Fields/AcroButtonFieldFlags.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.AcroForms.Fields
{
using System;

/// <summary>
/// Flags specifying various characteristics of a button type field in an <see cref="AcroFieldBase"/>.
/// </summary>
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.AcroForms.Fields
{
using System.Collections.Generic;
using Tokens;

/// <inheritdoc />
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/AcroForms/Fields/AcroChoiceFieldFlags.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.AcroForms.Fields
{
using System;

/// <summary>
/// Flags specifying various characteristics of a choice type field in an <see cref="AcroFieldBase"/>.
/// </summary>
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/AcroForms/Fields/AcroComboBoxField.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.AcroForms.Fields
{
using System;
using System.Collections.Generic;
using Core;
using Tokens;

1 change: 0 additions & 1 deletion src/UglyToad.PdfPig/AcroForms/Fields/AcroFieldBase.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
namespace UglyToad.PdfPig.AcroForms.Fields
{
using Core;
using System;
using Tokens;

/// <summary>
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/AcroForms/Fields/AcroListBoxField.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.AcroForms.Fields
{
using System;
using System.Collections.Generic;
using Core;
using Tokens;

2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/AcroForms/Fields/AcroNonTerminalField.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.AcroForms.Fields
{
using System;
using System.Collections.Generic;
using Tokens;

/// <inheritdoc />
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.AcroForms.Fields
{
using System.Collections.Generic;
using Tokens;

/// <inheritdoc />
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/AcroForms/Fields/AcroTextFieldFlags.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.AcroForms.Fields
{
using System;

/// <summary>
/// Flags specifying various characteristics of a text type field in an <see cref="AcroFieldBase"/>.
/// </summary>
3 changes: 1 addition & 2 deletions src/UglyToad.PdfPig/AcroForms/SignatureFlags.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.AcroForms
{
using System;

/// <summary>
/// Specifies document level characteristics for any signature fields in the document's <see cref="AcroForm"/>.
/// </summary>
@@ -12,6 +10,7 @@ public enum SignatureFlags
/// The document contains at least one signature field.
/// </summary>
SignaturesExist = 1 << 0,

/// <summary>
/// The document contains signatures which may be invalidated if the file is saved
/// in a way which alters its previous content rather than simply appending new content.
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/AdvancedPdfDocumentAccess.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig
{
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using Content;
using Core;
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Annotations/Annotation.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Annotations
{
using System;
using System.Collections.Generic;
using Core;
using Actions;
using Tokens;
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Annotations/AnnotationBorder.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Annotations
{
using System.Collections.Generic;

/// <summary>
/// A border for a PDF <see cref="Annotation"/> object.
/// </summary>
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Annotations/AnnotationFlags.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Annotations
{
using System;

/// <summary>
/// Specifies characteristics of an annotation in a PDF or FDF document.
/// </summary>
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Annotations/AnnotationProvider.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Annotations
{
using System;
using System.Collections.Generic;
using System.Linq;
using Actions;
using Core;
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Annotations/AppearanceStream.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Annotations
{
using System;
using System.Collections.Generic;
using Tokens;

/// <summary>
1 change: 0 additions & 1 deletion src/UglyToad.PdfPig/Annotations/AppearanceStreamFactory.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Annotations
{
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using Tokenization.Scanner;
using Tokens;
1 change: 0 additions & 1 deletion src/UglyToad.PdfPig/Annotations/HyperlinkFactory.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Annotations
{
using System.Collections.Generic;
using System.Linq;
using Content;
using Core;
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Annotations/QuadPointsQuadrilateral.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Annotations
{
using System;
using System.Collections.Generic;
using Core;

/// <summary>
4 changes: 1 addition & 3 deletions src/UglyToad.PdfPig/Content/ArtifactMarkedContentElement.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
namespace UglyToad.PdfPig.Content
{
using System;
using System.Collections.Generic;
using Core;
using Graphics;
using Tokens;
using UglyToad.PdfPig.Graphics;

/// <inheritdoc />
/// <summary>
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Content/BasePageFactory.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Content
{
using System;
using System.Collections.Generic;
using Core;
using Filters;
using Geometry;
1 change: 0 additions & 1 deletion src/UglyToad.PdfPig/Content/Catalog.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Content
{
using System;
using Outline.Destinations;
using Tokens;

2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Content/DocumentInformation.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Content
{
using System;
using System.Collections.Generic;
using System.Text;
using Tokens;
using Util;
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Content/EmbeddedFile.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Content
{
using System;
using System.Collections.Generic;
using Tokens;

/// <summary>
4 changes: 1 addition & 3 deletions src/UglyToad.PdfPig/Content/HeaderVersion.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
namespace UglyToad.PdfPig.Content
{
using System;

internal class HeaderVersion
internal sealed class HeaderVersion
{
public double Version { get; }

2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Content/Hyperlink.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Content
{
using System;
using System.Collections.Generic;
using Annotations;
using Core;

4 changes: 1 addition & 3 deletions src/UglyToad.PdfPig/Content/IPdfImage.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
namespace UglyToad.PdfPig.Content
{
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using Core;
using Graphics.Colors;
using Graphics.Core;
using UglyToad.PdfPig.Tokens;
using Tokens;
using XObjects;

/// <summary>
1 change: 0 additions & 1 deletion src/UglyToad.PdfPig/Content/IResourceStore.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Content
{
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using Graphics.Colors;
using PdfFonts;
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Content/InlineImage.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Content
{
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using Core;
using Filters;
4 changes: 1 addition & 3 deletions src/UglyToad.PdfPig/Content/MarkedContentElement.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
namespace UglyToad.PdfPig.Content
{
using System;
using System.Collections.Generic;
using Graphics;
using Tokens;
using UglyToad.PdfPig.Graphics;

/// <summary>
/// A marked content element can be used to provide application specific data in the
1 change: 0 additions & 1 deletion src/UglyToad.PdfPig/Content/MediaBox.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Content
{
using System;
using Core;

/// <summary>
4 changes: 1 addition & 3 deletions src/UglyToad.PdfPig/Content/OptionalContentGroupElement.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using UglyToad.PdfPig.Tokenization.Scanner;
using UglyToad.PdfPig.Tokenization.Scanner;
using UglyToad.PdfPig.Tokens;

namespace UglyToad.PdfPig.Content
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Content/Page.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Content
{
using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
using Annotations;
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Content/PageContent.cs
Original file line number Diff line number Diff line change
@@ -4,8 +4,6 @@
using Filters;
using Graphics;
using Graphics.Operations;
using System;
using System.Collections.Generic;
using Tokenization.Scanner;
using XObjects;

1 change: 0 additions & 1 deletion src/UglyToad.PdfPig/Content/PageRotationDegrees.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Content
{
using System;
using System.Globalization;

/// <summary>
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Content/PageSize.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
namespace UglyToad.PdfPig.Content
{
using System.Collections.Generic;
using System.Linq;
using Core;
using System;

/// <summary>
/// The corresponding named size of the <see cref="Page"/>.
1 change: 0 additions & 1 deletion src/UglyToad.PdfPig/Content/PageTreeMembers.cs
Original file line number Diff line number Diff line change
@@ -2,7 +2,6 @@

namespace UglyToad.PdfPig.Content
{
using System.Collections.Generic;
using Tokens;

/// <summary>
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Content/PageTreeNode.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Content
{
using System;
using System.Collections.Generic;
using Core;
using Tokens;

2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Content/Pages.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Content
{
using System;
using System.Collections.Generic;
using Core;
using Filters;
using Outline.Destinations;
4 changes: 1 addition & 3 deletions src/UglyToad.PdfPig/Content/PagesFactory.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
namespace UglyToad.PdfPig.Content
{
using System.Linq;
using Core;
using Logging;
using Parser.Parts;
using System;
using System.Collections.Generic;
using System.Linq;
using Tokenization.Scanner;
using Tokens;
using Util;
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Content/ResourceStore.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Content
{
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using Core;
using Graphics.Colors;
4 changes: 1 addition & 3 deletions src/UglyToad.PdfPig/Content/Word.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
namespace UglyToad.PdfPig.Content
{
using Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Core;

/// <summary>
/// A word.
1 change: 0 additions & 1 deletion src/UglyToad.PdfPig/Content/XmpMetadata.cs
Original file line number Diff line number Diff line change
@@ -2,7 +2,6 @@
{
using Core;
using Filters;
using System;
using System.Xml.Linq;
using Tokenization.Scanner;
using Tokens;
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/CrossReference/CrossReferenceTable.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.CrossReference
{
using System;
using System.Collections.Generic;
using Core;

/// <summary>
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.CrossReference
{
using System;
using System.Collections.Generic;
using System.Linq;
using Core;
using Logging;
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.CrossReference
{
using System.Collections.Generic;
using Core;
using Tokens;

Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.CrossReference
{
using System.Collections.Generic;
using Core;
using Tokens;

2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/CrossReference/TrailerDictionary.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.CrossReference
{
using System;
using System.Collections.Generic;
using Core;
using Tokens;
using Util;
1 change: 0 additions & 1 deletion src/UglyToad.PdfPig/Encryption/AesEncryptionHelper.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Encryption
{
using System;
using System.IO;
using System.Security.Cryptography;

1 change: 0 additions & 1 deletion src/UglyToad.PdfPig/Encryption/CryptHandler.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Encryption
{
using System;
using Exceptions;
using Tokens;

1 change: 0 additions & 1 deletion src/UglyToad.PdfPig/Encryption/EncryptionDictionary.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Encryption
{
using System;
using System.Diagnostics.CodeAnalysis;
using Exceptions;
using Tokens;
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Encryption/EncryptionDictionaryFactory.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Encryption
{
using System;
using System.Linq;
using Core;
using Tokenization.Scanner;
using Tokens;
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Encryption/EncryptionHandler.cs
Original file line number Diff line number Diff line change
@@ -2,8 +2,6 @@

namespace UglyToad.PdfPig.Encryption
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Security.Cryptography;
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Encryption/RC4.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Encryption
{
using System;

internal static class RC4
{
public static byte[] Encrypt(ReadOnlySpan<byte> key, ReadOnlySpan<byte> data)
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Encryption/UserAccessPermissions.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Encryption
{
using System;

[Flags]
internal enum UserAccessPermissions : long
{
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Exceptions
{
using System;
#if !NET
using System.Runtime.Serialization;
#endif
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Filters/Ascii85Filter.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Filters
{
using System;
using System.Collections.Generic;
using Core;
using Tokens;

1 change: 0 additions & 1 deletion src/UglyToad.PdfPig/Filters/AsciiHexDecodeFilter.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Filters
{
using System;
using Core;
using Tokens;

2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Filters/BitStream.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Filters
{
using System;

internal ref struct BitStream
{
private readonly ReadOnlySpan<byte> data;
1 change: 0 additions & 1 deletion src/UglyToad.PdfPig/Filters/CcittFaxDecodeFilter.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Filters
{
using System;
using System.IO;
using Tokens;
using Util;
1 change: 0 additions & 1 deletion src/UglyToad.PdfPig/Filters/CcittFaxDecoderStream.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Filters
{
using System;
using System.IO;
using IO;

1 change: 0 additions & 1 deletion src/UglyToad.PdfPig/Filters/DctDecodeFilter.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Filters
{
using System;
using Tokens;

internal class DctDecodeFilter : IFilter
4 changes: 1 addition & 3 deletions src/UglyToad.PdfPig/Filters/DecodeParameterResolver.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
namespace UglyToad.PdfPig.Filters
{
using System;
using System.Collections.Generic;
using Tokens;
using UglyToad.PdfPig.Util;
using Util;

internal static class DecodeParameterResolver
{
4 changes: 1 addition & 3 deletions src/UglyToad.PdfPig/Filters/DefaultFilterProvider.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
namespace UglyToad.PdfPig.Filters
{
using System;
using System.Collections.Generic;
using System.Linq;
using Core;
using Tokens;
using UglyToad.PdfPig.Util;
using Util;

/// <inheritdoc />
/// <summary>
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Filters/FilterProviderWithLookup.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Filters
{
using System;
using System.Collections.Generic;
using System.Linq;
using Core;
using Parser.Parts;
3 changes: 1 addition & 2 deletions src/UglyToad.PdfPig/Filters/FlateFilter.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
namespace UglyToad.PdfPig.Filters
{
using Fonts;
using System;
using System.IO;
using System.IO.Compression;
using Fonts;
using Tokens;
using Util;

1 change: 0 additions & 1 deletion src/UglyToad.PdfPig/Filters/IFilter.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Filters
{
using System;
using Tokens;

/// <summary>
1 change: 0 additions & 1 deletion src/UglyToad.PdfPig/Filters/IFilterProvider.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Filters
{
using System.Collections.Generic;
using Tokenization.Scanner;
using Tokens;

1 change: 0 additions & 1 deletion src/UglyToad.PdfPig/Filters/Jbig2DecodeFilter.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Filters
{
using System;
using Tokens;

internal sealed class Jbig2DecodeFilter : IFilter
1 change: 0 additions & 1 deletion src/UglyToad.PdfPig/Filters/JpxDecodeFilter.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Filters
{
using System;
using Tokens;

internal class JpxDecodeFilter : IFilter
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Filters/LzwFilter.cs
Original file line number Diff line number Diff line change
@@ -2,8 +2,6 @@

namespace UglyToad.PdfPig.Filters
{
using System;
using System.Collections.Generic;
using Tokens;
using Util;

2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Filters/PngPredictor.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Filters
{
using System;
using System.Collections.Generic;
using System.IO;
using IO;

1 change: 0 additions & 1 deletion src/UglyToad.PdfPig/Filters/RunLengthFilter.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Filters
{
using System;
using Tokens;
using UglyToad.PdfPig.Core;

5 changes: 2 additions & 3 deletions src/UglyToad.PdfPig/Functions/PdfFunctionType0.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
namespace UglyToad.PdfPig.Functions
{
using System;
using System.Collections;
using System.IO;
using System.Linq;
using UglyToad.PdfPig.Core;
using UglyToad.PdfPig.Tokens;
using Core;
using Tokens;

internal sealed class PdfFunctionType0 : PdfFunction
{
1 change: 0 additions & 1 deletion src/UglyToad.PdfPig/Functions/PdfFunctionType2.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Functions
{
using System;
using UglyToad.PdfPig.Tokens;

/// <summary>
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Functions/PdfFunctionType3.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Functions
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using UglyToad.PdfPig.Core;
1 change: 0 additions & 1 deletion src/UglyToad.PdfPig/Functions/PdfFunctionType4.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Functions
{
using System;
using System.Linq;
using UglyToad.PdfPig.Core;
using UglyToad.PdfPig.Functions.Type4;
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Functions/Type4/ArithmeticOperators.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Functions.Type4
{
using System;

/// <summary>
/// Provides the arithmetic operators such as "add" and "sub".
/// </summary>
3 changes: 0 additions & 3 deletions src/UglyToad.PdfPig/Functions/Type4/BitwiseOperators.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
namespace UglyToad.PdfPig.Functions.Type4
{
using System;
using System.Collections.Generic;

internal sealed class BitwiseOperators
{
private BitwiseOperators()
3 changes: 0 additions & 3 deletions src/UglyToad.PdfPig/Functions/Type4/ConditionalOperators.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
namespace UglyToad.PdfPig.Functions.Type4
{
using System;
using System.Collections.Generic;

/// <summary>
/// Provides the conditional operators such as "if" and "ifelse".
/// </summary>
3 changes: 0 additions & 3 deletions src/UglyToad.PdfPig/Functions/Type4/ExecutionContext.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
namespace UglyToad.PdfPig.Functions.Type4
{
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;

internal sealed class ExecutionContext
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Functions/Type4/InstructionSequence.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Functions.Type4
{
using System;
using System.Collections.Generic;
using System.Linq;

internal sealed class InstructionSequence
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Functions.Type4
{
using System.Collections.Generic;
using System.Globalization;

/// <summary>
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Functions/Type4/Operators.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Functions.Type4
{
using System.Collections.Generic;

/// <summary>
/// This class provides all the supported operators.
/// </summary>
3 changes: 0 additions & 3 deletions src/UglyToad.PdfPig/Functions/Type4/RelationalOperators.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
namespace UglyToad.PdfPig.Functions.Type4
{
using System;
using System.Collections.Generic;

/// <summary>
/// Provides the relational operators such as "eq" and "le".
/// </summary>
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Functions/Type4/StackOperators.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Functions.Type4
{
using System;
using System.Collections.Generic;
using System.Linq;

/// <summary>
3 changes: 0 additions & 3 deletions src/UglyToad.PdfPig/Geometry/ClipperLibrary/Clipper.cs
Original file line number Diff line number Diff line change
@@ -74,9 +74,6 @@

namespace UglyToad.PdfPig.Geometry.ClipperLibrary
{
using System;
using System.Collections.Generic;

internal class Clipper : ClipperBase
{
//InitOptions that can be passed to the constructor ...
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Geometry/ClipperLibrary/ClipperBase.cs
Original file line number Diff line number Diff line change
@@ -77,8 +77,6 @@

namespace UglyToad.PdfPig.Geometry.ClipperLibrary
{
using System.Collections.Generic;

internal class ClipperBase
{
internal const double Horizontal = -3.4E+38;
Original file line number Diff line number Diff line change
@@ -71,8 +71,6 @@
*******************************************************************************/
namespace UglyToad.PdfPig.Geometry.ClipperLibrary
{
using System;

internal class ClipperException : Exception
{
public ClipperException(string description) : base(description)
Original file line number Diff line number Diff line change
@@ -74,8 +74,6 @@

namespace UglyToad.PdfPig.Geometry.ClipperLibrary
{
using System.Collections.Generic;

internal class ClipperIntersectNode
{
internal ClipperTEdge Edge1;
3 changes: 0 additions & 3 deletions src/UglyToad.PdfPig/Geometry/ClipperLibrary/ClipperOffset.cs
Original file line number Diff line number Diff line change
@@ -71,9 +71,6 @@
*******************************************************************************/
namespace UglyToad.PdfPig.Geometry.ClipperLibrary
{
using System;
using System.Collections.Generic;

internal class ClipperOffset
{
private const double DefArcTolerance = 0.25;
Original file line number Diff line number Diff line change
@@ -74,8 +74,6 @@

namespace UglyToad.PdfPig.Geometry.ClipperLibrary
{
using System.Collections.Generic;

internal class ClipperPolyTree : ClipperPolyNode
{
internal List<ClipperPolyNode> AllPolys = new List<ClipperPolyNode>();
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Geometry/ClippingExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Geometry
{
using System;
using System.Collections.Generic;
using System.Linq;
using ClipperLibrary;
using Core;
4 changes: 1 addition & 3 deletions src/UglyToad.PdfPig/Geometry/GeometryExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
namespace UglyToad.PdfPig.Geometry
{
using Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Core;
using UglyToad.PdfPig.Geometry.ClipperLibrary;
using UglyToad.PdfPig.Graphics;
using static UglyToad.PdfPig.Core.PdfSubpath;
1 change: 0 additions & 1 deletion src/UglyToad.PdfPig/Geometry/PdfVector.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Geometry
{
using System;
using Core;

internal readonly struct PdfVector
1 change: 0 additions & 1 deletion src/UglyToad.PdfPig/Geometry/UserSpaceUnit.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Geometry
{
using System;
using System.Globalization;

/// <summary>
2 changes: 2 additions & 0 deletions src/UglyToad.PdfPig/Globals.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
global using System;
global using System.Collections.Generic;
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Graphics/BaseStreamProcessor.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Graphics
{
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;

2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Graphics/ColorSpaceContext.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Graphics
{
using System;
using System.Collections.Generic;
using System.Linq;
using Colors;
using Content;
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Graphics.Colors
{
using System;
using UglyToad.PdfPig.Util;

/// <summary>
5 changes: 1 addition & 4 deletions src/UglyToad.PdfPig/Graphics/Colors/CMYKColor.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System;
using System.Collections.Generic;

namespace UglyToad.PdfPig.Graphics.Colors
namespace UglyToad.PdfPig.Graphics.Colors
{
/// <summary>
/// A color with cyan, magenta, yellow and black (K) components.
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Graphics/Colors/ColorSpaceDetails.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
namespace UglyToad.PdfPig.Graphics.Colors
{
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using Tokens;
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Graphics.Colors
{
using System;
using Tokens;

/// <summary>
5 changes: 1 addition & 4 deletions src/UglyToad.PdfPig/Graphics/Colors/GrayColor.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System;
using System.Collections.Generic;

namespace UglyToad.PdfPig.Graphics.Colors
namespace UglyToad.PdfPig.Graphics.Colors
{
/// <summary>
/// A grayscale color with a single gray component.
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Graphics/Colors/PatternColor.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Graphics.Colors
{
using System;
using System.Collections.Generic;
using System.Linq;
using UglyToad.PdfPig.Core;
using UglyToad.PdfPig.Tokens;
3 changes: 0 additions & 3 deletions src/UglyToad.PdfPig/Graphics/Colors/RGBColor.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
namespace UglyToad.PdfPig.Graphics.Colors
{
using System;
using System.Collections.Generic;

/// <summary>
/// A color with red, green and blue components.
/// </summary>
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Graphics/Colors/RGBWorkingSpace.cs
Original file line number Diff line number Diff line change
@@ -2,8 +2,6 @@

namespace UglyToad.PdfPig.Graphics.Colors
{
using System;

// The RGB working space specifications below were obtained from: http://www.brucelindbloom.com/index.html?WorkingSpaceInfo.html
internal class RGBWorkingSpace
{
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Graphics/ContentStreamProcessor.cs
Original file line number Diff line number Diff line change
@@ -2,8 +2,6 @@

namespace UglyToad.PdfPig.Graphics
{
using System;
using System.Collections.Generic;
using Colors;
using Content;
using Filters;
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Graphics/Core/LineDashPattern.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Graphics.Core
{
using System;
using System.Collections.Generic;
using System.Linq;

/// <summary>
1 change: 0 additions & 1 deletion src/UglyToad.PdfPig/Graphics/IColorSpaceContext.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Graphics
{
using System.Collections.Generic;
using Colors;
using Tokens;
using UglyToad.PdfPig.Core;
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Graphics
{
using System.Collections.Generic;
using Operations;
using Tokens;

2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Graphics/IOperationContext.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
namespace UglyToad.PdfPig.Graphics
{
using PdfPig.Core;
using System;
using System.Collections.Generic;
using Tokens;
using UglyToad.PdfPig.Graphics.Core;

2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Graphics/InlineImageBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Graphics
{
using System;
using System.Collections.Generic;
using System.Linq;
using Content;
using Core;
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Graphics/MarkedContentStack.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Graphics
{
using System;
using System.Collections.Generic;
using Content;
using Filters;
using PdfPig.Core;
1 change: 0 additions & 1 deletion src/UglyToad.PdfPig/Graphics/OperationContextHelper.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Graphics
{
using System;
using System.Linq;
using Content;
using Geometry;
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Graphics.Operations.General
{
using System;
using System.IO;
using Tokens;
using UglyToad.PdfPig.Graphics.Core;
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Graphics.Operations.General
{
using System;
using System.IO;
using Core;

Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Graphics.Operations.General
{
using System;
using System.IO;
using Core;

Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Graphics.Operations.InlineImages
{
using System;
using System.Collections.Generic;
using System.IO;
using Tokens;
using UglyToad.PdfPig.Writer;
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Graphics.Operations.InlineImages
{
using System;
using System.Collections.Generic;
using System.IO;

/// <inheritdoc />
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Graphics.Operations
{
using System;
using System.IO;
using Tokens;

Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
namespace UglyToad.PdfPig.Graphics.Operations
{
using PdfPig.Core;
using System;
using System.Buffers.Text;
using System.IO;
using System.Text;
using PdfPig.Core;
using Util;

internal static class OperationWriteHelper
1 change: 0 additions & 1 deletion src/UglyToad.PdfPig/Graphics/Operations/PaintShading.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Graphics.Operations
{
using System;
using System.IO;
using Tokens;

Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Graphics.Operations
{
using System.Collections.Generic;
using System.IO;
using System.Linq;

Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Graphics.Operations
{
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Tokens;
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Graphics.Operations
{
using System;
using System.IO;
using Tokens;
using Writer;
1 change: 0 additions & 1 deletion src/UglyToad.PdfPig/Graphics/Operations/SetStrokeColor.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Graphics.Operations
{
using System.Collections.Generic;
using System.IO;
using System.Linq;

Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Graphics.Operations
{
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Tokens;
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Graphics.Operations
{
using System;
using System.IO;
using Tokens;
using Writer;
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Graphics.Operations.SpecialGraphicsState
{
using System;
using System.IO;

/// <inheritdoc />
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Graphics.Operations.SpecialGraphicsState
{
using System;
using System.IO;

/// <inheritdoc />
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Graphics.Operations.TextPositioning
{
using System;
using System.IO;
using PdfPig.Core;

Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Graphics.Operations.TextShowing
{
using System;
using System.Collections.Generic;
using System.IO;
using Tokens;
using Writer;
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Graphics.Operations.TextState
{
using System;
using System.Globalization;
using System.IO;
using Tokens;
1 change: 0 additions & 1 deletion src/UglyToad.PdfPig/Graphics/PdfPath.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Graphics
{
using System.Collections.Generic;
using UglyToad.PdfPig.Core;
using UglyToad.PdfPig.Graphics.Colors;
using UglyToad.PdfPig.Graphics.Core;
Original file line number Diff line number Diff line change
@@ -2,6 +2,8 @@

namespace UglyToad.PdfPig.Graphics
{
using System.Linq;
using System.Reflection;
using Operations;
using Operations.ClippingPaths;
using Operations.Compatibility;
@@ -15,10 +17,6 @@ namespace UglyToad.PdfPig.Graphics
using Operations.TextShowing;
using Operations.TextState;
using PdfPig.Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using Tokens;
using Operations.PathPainting;

1 change: 0 additions & 1 deletion src/UglyToad.PdfPig/Graphics/XObjectContentRecord.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Graphics
{
using System;
using Colors;
using Core;
using PdfPig.Core;
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/IO/RandomAccessBuffer.cs
Original file line number Diff line number Diff line change
@@ -2,8 +2,6 @@

namespace UglyToad.PdfPig.IO
{
using System;
using System.Collections.Generic;
using System.IO;

internal class RandomAccessBuffer : IDisposable
1 change: 0 additions & 1 deletion src/UglyToad.PdfPig/IO/StreamWrapper.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.IO
{
using System;
using System.IO;

internal class StreamWrapper : Stream
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Images/ColorSpaceDetailsByteConverter.cs
Original file line number Diff line number Diff line change
@@ -2,8 +2,6 @@
{
using Content;
using Graphics.Colors;
using System;
using System.Linq;

/// <summary>
/// Utility for working with the bytes in <see cref="IPdfImage"/>s and converting according to their <see cref="ColorSpaceDetails"/>.s
1 change: 0 additions & 1 deletion src/UglyToad.PdfPig/Images/JpegHandler.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Images
{
using System;
using System.IO;

internal static class JpegHandler
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Images/Png/Adam7.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Images.Png
{
using System.Collections.Generic;

internal static class Adam7
{
/// <summary>
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Images/Png/Adler32Checksum.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Images.Png
{
using System;

/// <summary>
/// Used to calculate the Adler-32 checksum used for ZLIB data in accordance with
/// RFC 1950: ZLIB Compressed Data Format Specification.
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Images/Png/ChunkHeader.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Images.Png
{
using System;

/// <summary>
/// The header for a data chunk in a PNG file.
/// </summary>
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Images/Png/ColorType.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Images.Png
{
using System;

/// <summary>
/// Describes the interpretation of the image data.
/// </summary>
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Images/Png/Crc32.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Images.Png
{
using System;

/// <summary>
/// 32-bit Cyclic Redundancy Code used by the PNG for checking the data is intact.
/// </summary>
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Images/Png/Decoder.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Images.Png
{
using System;

internal static class Decoder
{
public static (byte bytesPerPixel, byte samplesPerPixel) GetBytesAndSamplesPerPixel(ImageHeader header)
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Images/Png/HeaderValidationResult.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Images.Png
{
using System;

internal readonly struct HeaderValidationResult
{
public static ReadOnlySpan<byte> ExpectedHeader => [
3 changes: 0 additions & 3 deletions src/UglyToad.PdfPig/Images/Png/ImageHeader.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
namespace UglyToad.PdfPig.Images.Png
{
using System;
using System.Collections.Generic;

/// <summary>
/// The high level information about the image.
/// </summary>
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Images/Png/Palette.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Images.Png
{
using System;

internal sealed class Palette
{
public bool HasAlphaValues { get; private set; }
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Images/Png/Pixel.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Images.Png
{
using System;

/// <summary>
/// A pixel in a <see cref="Png"/> image.
/// </summary>
1 change: 0 additions & 1 deletion src/UglyToad.PdfPig/Images/Png/Png.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Images.Png
{
using System;
using System.IO;

/// <summary>
1 change: 0 additions & 1 deletion src/UglyToad.PdfPig/Images/Png/PngOpener.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Images.Png
{
using System;
using System.Buffers.Binary;
using System.IO;
using System.IO.Compression;
1 change: 0 additions & 1 deletion src/UglyToad.PdfPig/Images/Png/PngStreamWriteHelper.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Images.Png
{
using System;
using System.Buffers.Binary;
using System.IO;

4 changes: 1 addition & 3 deletions src/UglyToad.PdfPig/Images/Png/RawPngData.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
namespace UglyToad.PdfPig.Images.Png
{
using System;

/// <summary>
/// <summary>
/// Provides convenience methods for indexing into a raw byte array to extract pixel values.
/// </summary>
internal sealed class RawPngData
1 change: 0 additions & 1 deletion src/UglyToad.PdfPig/Images/Png/StreamHelper.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Images.Png
{
using System;
using System.Buffers.Binary;
using System.IO;

2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Logging/ILog.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Logging
{
using System;

/// <summary>
/// Logs internal messages from the PDF parsing process. Consumers can provide their own implementation
/// in the <see cref="ParsingOptions"/> to intercept log messages.
3 changes: 0 additions & 3 deletions src/UglyToad.PdfPig/Outline/BookmarkNode.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
namespace UglyToad.PdfPig.Outline
{
using System;
using System.Collections.Generic;

/// <summary>
/// A node in the <see cref="Bookmarks"/> (also known as outlines) of a PDF document.
/// </summary>
4 changes: 1 addition & 3 deletions src/UglyToad.PdfPig/Outline/Bookmarks.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Collections.Generic;

namespace UglyToad.PdfPig.Outline
namespace UglyToad.PdfPig.Outline
{
/// <summary>
/// The bookmarks in a PDF document.
1 change: 0 additions & 1 deletion src/UglyToad.PdfPig/Outline/BookmarksProvider.cs
Original file line number Diff line number Diff line change
@@ -5,7 +5,6 @@
using Destinations;
using Logging;
using Parser.Parts;
using System.Collections.Generic;
using Core;
using Tokenization.Scanner;
using Tokens;
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Outline.Destinations
{
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using Content;
using Logging;
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Outline.Destinations
{
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using Content;
using Logging;
1 change: 0 additions & 1 deletion src/UglyToad.PdfPig/Outline/DocumentBookmarkNode.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Outline
{
using System.Collections.Generic;
using Destinations;

/// <inheritdoc />
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Outline/EmbeddedBookmarkNode.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
namespace UglyToad.PdfPig.Outline
{
using Destinations;
using System;
using System.Collections.Generic;

/// <inheritdoc />
/// <summary>
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Outline/ExternalBookmarkNode.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
namespace UglyToad.PdfPig.Outline
{
using Destinations;
using System;
using System.Collections.Generic;

/// <inheritdoc />
/// <summary>
3 changes: 0 additions & 3 deletions src/UglyToad.PdfPig/Outline/UriBookmarkNode.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
namespace UglyToad.PdfPig.Outline
{
using System;
using System.Collections.Generic;

/// <inheritdoc />
/// <summary>
/// A node in the <see cref="Bookmarks" /> of a PDF document which corresponds
1 change: 0 additions & 1 deletion src/UglyToad.PdfPig/Parser/CatalogFactory.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Parser
{
using System;
using Content;
using Core;
using Logging;
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Parser.FileStructure
{
using System;
using System.Collections.Generic;
using Core;
using CrossReference;
using Logging;
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Parser.FileStructure
{
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using Core;
using CrossReference;
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Parser.FileStructure
{
using System;
using System.Linq;
using CrossReference;
using Core;
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Parser.FileStructure
{
using System;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using Content;
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Parser/FileStructure/FileTrailerParser.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Parser.FileStructure
{
using System;
using System.Collections.Generic;
using Core;
using Tokenization.Scanner;
using Tokens;
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Parser.FileStructure
{
using System;
using System.Collections.Generic;
using Core;
using Logging;
using Tokenization.Scanner;
1 change: 0 additions & 1 deletion src/UglyToad.PdfPig/Parser/IPageContentParser.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Parser
{
using System.Collections.Generic;
using Core;
using Graphics.Operations;
using Logging;
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Parser/PageContentParser.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Parser
{
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using Core;
using Graphics;
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Parser/PageFactory.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Parser
{
using System;
using System.Collections.Generic;
using Annotations;
using Content;
using Core;
1 change: 0 additions & 1 deletion src/UglyToad.PdfPig/Parser/ParsingCachingProviders.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Parser
{
using System;
using Content;

/// <summary>
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Parser/Parts/BruteForceSearcher.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Parser.Parts
{
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Text;
using Core;
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Parser.Parts.CrossReference
{
using System;
using Core;
using Tokens;
using Util;
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Parser.Parts.CrossReference
{
using System.Collections.Generic;
using Core;
using Filters;
using PdfPig.CrossReference;
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Parser.Parts.CrossReference
{
using System;
using System.Globalization;
using Core;
using Logging;
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Parser/Parts/NameTreeParser.cs
Original file line number Diff line number Diff line change
@@ -2,8 +2,6 @@

namespace UglyToad.PdfPig.Parser.Parts
{
using System;
using System.Collections.Generic;
using Tokenization.Scanner;
using Tokens;

1 change: 0 additions & 1 deletion src/UglyToad.PdfPig/Parser/Parts/ObjectHelper.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Parser.Parts
{
using System;
using Core;

internal static class ObjectHelper
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Parser/PdfDocumentFactory.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Parser
{
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.IO;
using System.Linq;
1 change: 0 additions & 1 deletion src/UglyToad.PdfPig/ParsingOptions.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig
{
using System.Collections.Generic;
using Logging;

/// <summary>
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/PdfDocument.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig
{
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.IO;
using AcroForms;
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/PdfExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig
{
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using Core;
using Filters;
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/PdfFonts/CharStringStack.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.PdfFonts
{
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;

Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.PdfFonts.CidFonts
{
using System;

/// <summary>
/// Specifies mapping from character identifiers to glyph indices.
/// Can either be defined as a name in which case it must be Identity or a stream which defines the mapping.
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/PdfFonts/CidFonts/ICidFont.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
namespace UglyToad.PdfPig.PdfFonts.CidFonts
{
using System;
using System.Diagnostics.CodeAnalysis;
using System.Collections.Generic;
using Core;
using Geometry;
using Tokens;
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/PdfFonts/CidFonts/ICidFontProgram.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.PdfFonts.CidFonts
{
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using Core;

Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.PdfFonts.CidFonts
{
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using Core;
using Fonts;
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/PdfFonts/CidFonts/PdfCidTrueTypeFont.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.PdfFonts.CidFonts
{
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using Core;
using Fonts.TrueType;
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/PdfFonts/CidFonts/Type0CidFont.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.PdfFonts.CidFonts
{
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using Core;
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/PdfFonts/CidFonts/Type2CidFont.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.PdfFonts.CidFonts
{
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using Core;
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.PdfFonts.CidFonts
{
using System.Collections.Generic;
using Geometry;

/// <summary>
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/PdfFonts/Cmap/CMap.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.PdfFonts.Cmap
{
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using Core;
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/PdfFonts/Cmap/CMapCache.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.PdfFonts.Cmap
{
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using Core;
using Parser;
3 changes: 0 additions & 3 deletions src/UglyToad.PdfPig/PdfFonts/Cmap/CMapUtils.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
namespace UglyToad.PdfPig.PdfFonts.Cmap
{
using System;
using System.Collections.Generic;

internal static class CMapUtils
{
public static int ToInt(this ReadOnlySpan<byte> data)
@@ -16,7 +13,7 @@
return code;
}

public static void PutAll<TKey, TValue>(this Dictionary<TKey, TValue> target, IReadOnlyDictionary<TKey, TValue> source)

Check warning on line 16 in src/UglyToad.PdfPig/PdfFonts/Cmap/CMapUtils.cs

GitHub Actions / build

The type 'TKey' cannot be used as type parameter 'TKey' in the generic type or method 'Dictionary<TKey, TValue>'. Nullability of type argument 'TKey' doesn't match 'notnull' constraint.

Check warning on line 16 in src/UglyToad.PdfPig/PdfFonts/Cmap/CMapUtils.cs

GitHub Actions / build

The type 'TKey' cannot be used as type parameter 'TKey' in the generic type or method 'Dictionary<TKey, TValue>'. Nullability of type argument 'TKey' doesn't match 'notnull' constraint.

Check warning on line 16 in src/UglyToad.PdfPig/PdfFonts/Cmap/CMapUtils.cs

GitHub Actions / build

The type 'TKey' cannot be used as type parameter 'TKey' in the generic type or method 'Dictionary<TKey, TValue>'. Nullability of type argument 'TKey' doesn't match 'notnull' constraint.

Check warning on line 16 in src/UglyToad.PdfPig/PdfFonts/Cmap/CMapUtils.cs

GitHub Actions / build

The type 'TKey' cannot be used as type parameter 'TKey' in the generic type or method 'Dictionary<TKey, TValue>'. Nullability of type argument 'TKey' doesn't match 'notnull' constraint.
{
foreach (var pair in source)
{
4 changes: 1 addition & 3 deletions src/UglyToad.PdfPig/PdfFonts/Cmap/CharacterMapBuilder.cs
Original file line number Diff line number Diff line change
@@ -2,11 +2,9 @@

namespace UglyToad.PdfPig.PdfFonts.Cmap
{
using Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Core;

/// <summary>
/// A mutable class used when parsing and generating a <see cref="CMap"/>.
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/PdfFonts/Cmap/CidRange.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.PdfFonts.Cmap
{
using System;

/// <summary>
/// Associates the beginning and end of a range of character codes with the starting CID for the range.
/// </summary>
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/PdfFonts/Cmap/CodespaceRange.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.PdfFonts.Cmap
{
using System;

/// <summary>
/// A codespace range is specified by a pair of codes of some particular length giving the lower and upper bounds of that range.
/// </summary>
1 change: 0 additions & 1 deletion src/UglyToad.PdfPig/PdfFonts/Composite/ToUnicodeCMap.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.PdfFonts.Composite
{
using System;
using System.Diagnostics.CodeAnalysis;
using Cmap;
using Core;
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/PdfFonts/Composite/Type0Font.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.PdfFonts.Composite
{
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using CidFonts;
using Cmap;
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/PdfFonts/FontDescriptorFlags.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.PdfFonts
{
using System;

/// <summary>
/// Specifies various characteristics of a font.
/// </summary>
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/PdfFonts/FontFactory.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.PdfFonts
{
using System;
using System.Collections.Generic;
using Logging;
using Parser.Handlers;
using Tokens;
1 change: 0 additions & 1 deletion src/UglyToad.PdfPig/PdfFonts/IFont.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.PdfFonts
{
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using Core;
using Tokens;
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/PdfFonts/Parser/CMapParser.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.PdfFonts.Parser
{
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.IO;
using System.Linq;
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/PdfFonts/Parser/EncodingReader.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.PdfFonts.Parser
{
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using Fonts;
using Fonts.Encodings;
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.PdfFonts.Parser.Handlers
{
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.Linq;
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.PdfFonts.Parser.Handlers
{
using System;
using System.Diagnostics.CodeAnalysis;
using CidFonts;
using Cmap;
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@
using Fonts.Type1.Parser;
using PdfPig.Parser.Parts;
using Simple;
using System;
using Tokenization.Scanner;
using Tokens;

Original file line number Diff line number Diff line change
@@ -7,7 +7,6 @@
using Fonts.Encodings;
using PdfPig.Parser.Parts;
using Simple;
using System;
using Tokenization.Scanner;
using Tokens;
using Util;
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.PdfFonts.Parser.Parts
{
using System;
using Cmap;
using Tokenization.Scanner;
using Tokens;
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
namespace UglyToad.PdfPig.PdfFonts.Parser.Parts
{
using System;
using System.Collections.Generic;
using System.Linq;
using Cmap;
using Fonts;
using Tokenization.Scanner;
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.PdfFonts.Parser.Parts
{
using System;
using System.Collections.Generic;
using Cmap;
using Tokenization.Scanner;
using Tokens;
4 changes: 1 addition & 3 deletions src/UglyToad.PdfPig/PdfFonts/Parser/Parts/CidFontFactory.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.PdfFonts.Parser.Parts
{
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using CidFonts;
using Core;
@@ -11,10 +9,10 @@
using Fonts.TrueType;
using Fonts.TrueType.Parser;
using Geometry;
using Logging;
using PdfPig.Parser.Parts;
using Tokenization.Scanner;
using Tokens;
using UglyToad.PdfPig.Logging;
using Util;

internal class CidFontFactory
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.PdfFonts.Parser.Parts
{
using System;
using System.Collections.Generic;
using Cmap;
using Tokenization.Scanner;
using Tokens;
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.PdfFonts.Parser.Parts
{
using System;
using Core;
using Tokenization.Scanner;
using Tokens;
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/PdfFonts/Simple/TrueTypeSimpleFont.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.PdfFonts.Simple
{
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using Cmap;
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.PdfFonts.Simple
{
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using Core;
1 change: 0 additions & 1 deletion src/UglyToad.PdfPig/PdfFonts/Simple/Type1FontSimple.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.PdfFonts.Simple
{
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using Cmap;
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/PdfFonts/Simple/Type1Standard14Font.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
//// ReSharper disable CompareOfFloatsByEqualityOperator
namespace UglyToad.PdfPig.PdfFonts.Simple
{
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using Core;
1 change: 0 additions & 1 deletion src/UglyToad.PdfPig/PdfFonts/Simple/Type3Font.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.PdfFonts.Simple
{
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using Cmap;
using Composite;
1 change: 0 additions & 1 deletion src/UglyToad.PdfPig/Structure.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig
{
using System;
using Content;
using Core;
using CrossReference;
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Tokenization.Scanner
{
using System;
using Core;
using Tokens;

Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Tokenization.Scanner
{
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using Core;
using CrossReference;
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Tokenization/Scanner/PdfTokenScanner.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Tokenization.Scanner
{
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Tokenization.Scanner
{
using System;
using Tokens;

/// <summary>
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Util/Adler32Checksum.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Util
{
using System;

/// <summary>
/// Used to calculate the Adler-32 checksum used for ZLIB data in accordance with
/// RFC 1950: ZLIB Compressed Data Format Specification.
1 change: 0 additions & 1 deletion src/UglyToad.PdfPig/Util/ColorSpaceDetailsParser.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Util
{
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using Content;
1 change: 0 additions & 1 deletion src/UglyToad.PdfPig/Util/DateFormatHelper.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Util
{
using System;
using System.Globalization;

/// <summary>
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Util/DefaultWordExtractor.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Util
{
using System;
using System.Collections.Generic;
using System.Linq;
using Content;

1 change: 0 additions & 1 deletion src/UglyToad.PdfPig/Util/Diacritics.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Util
{
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;

1 change: 0 additions & 1 deletion src/UglyToad.PdfPig/Util/DictionaryTokenExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Util
{
using System;
using System.Diagnostics.CodeAnalysis;
using Core;
using Parser.Parts;
3 changes: 0 additions & 3 deletions src/UglyToad.PdfPig/Util/EnumerableExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
namespace UglyToad.PdfPig.Util
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;


internal static class EnumerableExtensions
{
public static List<T> ToRecursiveOrderList<T>(this IEnumerable<T> collection,
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Util/Hex.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Util
{
using System;

/**
* Utility functions for hex encoding.
*
1 change: 0 additions & 1 deletion src/UglyToad.PdfPig/Util/IWordExtractor.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Util
{
using System.Collections.Generic;
using Content;

/// <summary>
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Util/InternalStringExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Util
{
using System;

internal static class InternalStringExtensions
{
public static bool StartsWithOffset(this string value, ReadOnlySpan<char> start, int offset)
4 changes: 1 addition & 3 deletions src/UglyToad.PdfPig/Util/Matrix3x3.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections;

namespace UglyToad.PdfPig.Util
{
1 change: 0 additions & 1 deletion src/UglyToad.PdfPig/Util/PatternParser.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Util
{
using System;
using System.Linq;
using UglyToad.PdfPig.Content;
using UglyToad.PdfPig.Core;
3 changes: 0 additions & 3 deletions src/UglyToad.PdfPig/Util/PdfFunctionParser.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
namespace UglyToad.PdfPig.Util
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using UglyToad.PdfPig.Filters;
using UglyToad.PdfPig.Functions;
using UglyToad.PdfPig.Parser.Parts;
1 change: 0 additions & 1 deletion src/UglyToad.PdfPig/Util/ShadingParser.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Util
{
using System;
using System.Linq;
using UglyToad.PdfPig.Content;
using UglyToad.PdfPig.Core;
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Util/StackDictionary.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
// ReSharper disable InconsistentNaming
namespace UglyToad.PdfPig.Util
{
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;

internal class StackDictionary<K, V>
{
private readonly List<Dictionary<K, V>> values = new List<Dictionary<K, V>>();

Check warning on line 8 in src/UglyToad.PdfPig/Util/StackDictionary.cs

GitHub Actions / build

The type 'K' cannot be used as type parameter 'TKey' in the generic type or method 'Dictionary<TKey, TValue>'. Nullability of type argument 'K' doesn't match 'notnull' constraint.

Check warning on line 8 in src/UglyToad.PdfPig/Util/StackDictionary.cs

GitHub Actions / build

The type 'K' cannot be used as type parameter 'TKey' in the generic type or method 'Dictionary<TKey, TValue>'. Nullability of type argument 'K' doesn't match 'notnull' constraint.

Check warning on line 8 in src/UglyToad.PdfPig/Util/StackDictionary.cs

GitHub Actions / build

The type 'K' cannot be used as type parameter 'TKey' in the generic type or method 'Dictionary<TKey, TValue>'. Nullability of type argument 'K' doesn't match 'notnull' constraint.

Check warning on line 8 in src/UglyToad.PdfPig/Util/StackDictionary.cs

GitHub Actions / build

The type 'K' cannot be used as type parameter 'TKey' in the generic type or method 'Dictionary<TKey, TValue>'. Nullability of type argument 'K' doesn't match 'notnull' constraint.

public V this[K key]
{
@@ -53,7 +51,7 @@

public void Push()
{
values.Add(new Dictionary<K, V>());

Check warning on line 54 in src/UglyToad.PdfPig/Util/StackDictionary.cs

GitHub Actions / build

The type 'K' cannot be used as type parameter 'TKey' in the generic type or method 'Dictionary<TKey, TValue>'. Nullability of type argument 'K' doesn't match 'notnull' constraint.

Check warning on line 54 in src/UglyToad.PdfPig/Util/StackDictionary.cs

GitHub Actions / build

The type 'K' cannot be used as type parameter 'TKey' in the generic type or method 'Dictionary<TKey, TValue>'. Nullability of type argument 'K' doesn't match 'notnull' constraint.
}

public void Pop()
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Writer/Colors/OutputIntentsFactory.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Writer.Colors
{
using System;
using System.Collections.Generic;
using Tokens;

internal static class OutputIntentsFactory
1 change: 0 additions & 1 deletion src/UglyToad.PdfPig/Writer/Colors/ProfileStreamReader.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Writer.Colors
{
using System;
using System.IO;
using System.Linq;
using PdfFonts.Parser;
1 change: 0 additions & 1 deletion src/UglyToad.PdfPig/Writer/DataCompresser.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Writer
{
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Filters;
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Writer/Fonts/Standard14WritingFont.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Writer.Fonts
{
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using Core;
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Writer/Fonts/ToUnicodeCMapBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Writer.Fonts
{
using System;
using System.Collections.Generic;
using System.IO;
using Graphics.Operations;
using Tokens;
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Writer/Fonts/TrueTypeWritingFont.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Writer.Fonts
{
using System;
using System.Collections.Generic;
using System.Linq;
using Core;
using PdfFonts;
1 change: 0 additions & 1 deletion src/UglyToad.PdfPig/Writer/IPdfStreamWriter.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Writer
{
using System;
using System.IO;
using Tokens;

3 changes: 1 addition & 2 deletions src/UglyToad.PdfPig/Writer/ITokenWriter.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
namespace UglyToad.PdfPig.Writer
{
using Core;
using System.Collections.Generic;
using System.IO;
using Core;
using Tokens;

/// <summary>
5 changes: 1 addition & 4 deletions src/UglyToad.PdfPig/Writer/NoTextTokenWriter.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Diagnostics.CodeAnalysis;
using System.IO;
using System.Linq;
using UglyToad.PdfPig.Core;
using UglyToad.PdfPig.Filters;
using UglyToad.PdfPig.Graphics.Operations.TextShowing;
3 changes: 1 addition & 2 deletions src/UglyToad.PdfPig/Writer/PdfA1ARuleBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Collections.Generic;
using UglyToad.PdfPig.Tokens;
using UglyToad.PdfPig.Tokens;

namespace UglyToad.PdfPig.Writer
{
4 changes: 1 addition & 3 deletions src/UglyToad.PdfPig/Writer/PdfABaselineRuleBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using System.Xml.Linq;
using System.Xml.Linq;
using UglyToad.PdfPig.Tokens;
using UglyToad.PdfPig.Writer.Colors;
using UglyToad.PdfPig.Writer.Xmp;
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Writer/PdfDedupStreamWriter.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Writer
{
using System;
using System.Collections.Generic;
using System.IO;
using Tokens;

@@ -71,7 +69,7 @@

class FNVByteComparison : IEqualityComparer<byte[]>
{
public bool Equals(byte[] x, byte[] y)

Check warning on line 72 in src/UglyToad.PdfPig/Writer/PdfDedupStreamWriter.cs

GitHub Actions / build

Nullability of reference types in type of parameter 'x' of 'bool FNVByteComparison.Equals(byte[] x, byte[] y)' doesn't match implicitly implemented member 'bool IEqualityComparer<byte[]>.Equals(byte[]? x, byte[]? y)' (possibly because of nullability attributes).

Check warning on line 72 in src/UglyToad.PdfPig/Writer/PdfDedupStreamWriter.cs

GitHub Actions / build

Nullability of reference types in type of parameter 'y' of 'bool FNVByteComparison.Equals(byte[] x, byte[] y)' doesn't match implicitly implemented member 'bool IEqualityComparer<byte[]>.Equals(byte[]? x, byte[]? y)' (possibly because of nullability attributes).

Check warning on line 72 in src/UglyToad.PdfPig/Writer/PdfDedupStreamWriter.cs

GitHub Actions / build

Nullability of reference types in type of parameter 'x' of 'bool FNVByteComparison.Equals(byte[] x, byte[] y)' doesn't match implicitly implemented member 'bool IEqualityComparer<byte[]>.Equals(byte[]? x, byte[]? y)' (possibly because of nullability attributes).

Check warning on line 72 in src/UglyToad.PdfPig/Writer/PdfDedupStreamWriter.cs

GitHub Actions / build

Nullability of reference types in type of parameter 'y' of 'bool FNVByteComparison.Equals(byte[] x, byte[] y)' doesn't match implicitly implemented member 'bool IEqualityComparer<byte[]>.Equals(byte[]? x, byte[]? y)' (possibly because of nullability attributes).
{
return x.AsSpan().SequenceEqual(y.AsSpan());
}
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Writer/PdfDocumentBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@

namespace UglyToad.PdfPig.Writer
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.CompilerServices;
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Writer/PdfMerger.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Writer
{
using System;
using System.Collections.Generic;
using System.IO;
using Filters;
using Logging;
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Writer/PdfPageBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Writer
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Content;
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Writer/PdfStreamWriter.cs
Original file line number Diff line number Diff line change
@@ -2,8 +2,6 @@
{
using Core;
using Graphics.Operations;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using Tokens;
4 changes: 1 addition & 3 deletions src/UglyToad.PdfPig/Writer/PdfTextRemover.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.IO;

namespace UglyToad.PdfPig.Writer
{
6 changes: 2 additions & 4 deletions src/UglyToad.PdfPig/Writer/TokenWriter.cs
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
namespace UglyToad.PdfPig.Writer
{
using Core;
using Graphics.Operations;
using System;
using System.Buffers;
using System.Buffers.Text;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Text;
using Core;
using Graphics.Operations;
using Tokens;
using Util;

2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Writer/WriterUtil.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Writer
{
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using Content;
4 changes: 1 addition & 3 deletions src/UglyToad.PdfPig/Writer/Xmp/XmpWriter.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using UglyToad.PdfPig.Tokens;
@@ -246,7 +244,7 @@
/// </summary>
private static XDocument MergeXmpXdocuments(params XDocument[] xDocuments)
{
XDocument document = new XDocument(xDocuments.FirstOrDefault());

Check warning on line 247 in src/UglyToad.PdfPig/Writer/Xmp/XmpWriter.cs

GitHub Actions / build

Possible null reference argument for parameter 'other' in 'XDocument.XDocument(XDocument other)'.

Check warning on line 247 in src/UglyToad.PdfPig/Writer/Xmp/XmpWriter.cs

GitHub Actions / build

Possible null reference argument for parameter 'other' in 'XDocument.XDocument(XDocument other)'.
foreach (XDocument xdocOriginal in xDocuments.Skip(1).Where(doc => doc != null))
{
XDocument xdoc = new XDocument(xdocOriginal);
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/XObjects/XObjectFactory.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.XObjects
{
using System;
using System.Collections.Generic;
using System.Linq;
using Content;
using Core;
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/XObjects/XObjectImage.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.XObjects
{
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using Content;
using Core;

0 comments on commit 1db3c65

Please sign in to comment.