From 1db3c65de334ba5815f22e7deec5c34018136141 Mon Sep 17 00:00:00 2001 From: Jason Nelson Date: Fri, 3 May 2024 12:34:58 -0700 Subject: [PATCH] Cleanup using statements --- src/UglyToad.PdfPig/AcroForms/AcroForm.cs | 2 -- src/UglyToad.PdfPig/AcroForms/AcroFormExtensions.cs | 3 +-- src/UglyToad.PdfPig/AcroForms/AcroFormFactory.cs | 4 +--- .../AcroForms/Fields/AcroButtonFieldFlags.cs | 2 -- src/UglyToad.PdfPig/AcroForms/Fields/AcroCheckboxesField.cs | 1 - .../AcroForms/Fields/AcroChoiceFieldFlags.cs | 2 -- src/UglyToad.PdfPig/AcroForms/Fields/AcroComboBoxField.cs | 2 -- src/UglyToad.PdfPig/AcroForms/Fields/AcroFieldBase.cs | 1 - src/UglyToad.PdfPig/AcroForms/Fields/AcroListBoxField.cs | 2 -- .../AcroForms/Fields/AcroNonTerminalField.cs | 2 -- .../AcroForms/Fields/AcroRadioButtonsField.cs | 1 - src/UglyToad.PdfPig/AcroForms/Fields/AcroTextFieldFlags.cs | 2 -- src/UglyToad.PdfPig/AcroForms/SignatureFlags.cs | 3 +-- src/UglyToad.PdfPig/AdvancedPdfDocumentAccess.cs | 2 -- src/UglyToad.PdfPig/Annotations/Annotation.cs | 2 -- src/UglyToad.PdfPig/Annotations/AnnotationBorder.cs | 2 -- src/UglyToad.PdfPig/Annotations/AnnotationFlags.cs | 2 -- src/UglyToad.PdfPig/Annotations/AnnotationProvider.cs | 2 -- src/UglyToad.PdfPig/Annotations/AppearanceStream.cs | 2 -- src/UglyToad.PdfPig/Annotations/AppearanceStreamFactory.cs | 1 - src/UglyToad.PdfPig/Annotations/HyperlinkFactory.cs | 1 - src/UglyToad.PdfPig/Annotations/QuadPointsQuadrilateral.cs | 2 -- src/UglyToad.PdfPig/Content/ArtifactMarkedContentElement.cs | 4 +--- src/UglyToad.PdfPig/Content/BasePageFactory.cs | 2 -- src/UglyToad.PdfPig/Content/Catalog.cs | 1 - src/UglyToad.PdfPig/Content/DocumentInformation.cs | 2 -- src/UglyToad.PdfPig/Content/EmbeddedFile.cs | 2 -- src/UglyToad.PdfPig/Content/HeaderVersion.cs | 4 +--- src/UglyToad.PdfPig/Content/Hyperlink.cs | 2 -- src/UglyToad.PdfPig/Content/IPdfImage.cs | 4 +--- src/UglyToad.PdfPig/Content/IResourceStore.cs | 1 - src/UglyToad.PdfPig/Content/InlineImage.cs | 2 -- src/UglyToad.PdfPig/Content/MarkedContentElement.cs | 4 +--- src/UglyToad.PdfPig/Content/MediaBox.cs | 1 - src/UglyToad.PdfPig/Content/OptionalContentGroupElement.cs | 4 +--- src/UglyToad.PdfPig/Content/Page.cs | 2 -- src/UglyToad.PdfPig/Content/PageContent.cs | 2 -- src/UglyToad.PdfPig/Content/PageRotationDegrees.cs | 1 - src/UglyToad.PdfPig/Content/PageSize.cs | 2 -- src/UglyToad.PdfPig/Content/PageTreeMembers.cs | 1 - src/UglyToad.PdfPig/Content/PageTreeNode.cs | 2 -- src/UglyToad.PdfPig/Content/Pages.cs | 2 -- src/UglyToad.PdfPig/Content/PagesFactory.cs | 4 +--- src/UglyToad.PdfPig/Content/ResourceStore.cs | 2 -- src/UglyToad.PdfPig/Content/Word.cs | 4 +--- src/UglyToad.PdfPig/Content/XmpMetadata.cs | 1 - src/UglyToad.PdfPig/CrossReference/CrossReferenceTable.cs | 2 -- .../CrossReference/CrossReferenceTableBuilder.cs | 2 -- .../CrossReference/CrossReferenceTablePart.cs | 1 - .../CrossReference/CrossReferenceTablePartBuilder.cs | 1 - src/UglyToad.PdfPig/CrossReference/TrailerDictionary.cs | 2 -- src/UglyToad.PdfPig/Encryption/AesEncryptionHelper.cs | 1 - src/UglyToad.PdfPig/Encryption/CryptHandler.cs | 1 - src/UglyToad.PdfPig/Encryption/EncryptionDictionary.cs | 1 - .../Encryption/EncryptionDictionaryFactory.cs | 2 -- src/UglyToad.PdfPig/Encryption/EncryptionHandler.cs | 2 -- src/UglyToad.PdfPig/Encryption/RC4.cs | 2 -- src/UglyToad.PdfPig/Encryption/UserAccessPermissions.cs | 2 -- .../Exceptions/PdfDocumentEncryptedException.cs | 1 - src/UglyToad.PdfPig/Filters/Ascii85Filter.cs | 2 -- src/UglyToad.PdfPig/Filters/AsciiHexDecodeFilter.cs | 1 - src/UglyToad.PdfPig/Filters/BitStream.cs | 2 -- src/UglyToad.PdfPig/Filters/CcittFaxDecodeFilter.cs | 1 - src/UglyToad.PdfPig/Filters/CcittFaxDecoderStream.cs | 1 - src/UglyToad.PdfPig/Filters/DctDecodeFilter.cs | 1 - src/UglyToad.PdfPig/Filters/DecodeParameterResolver.cs | 4 +--- src/UglyToad.PdfPig/Filters/DefaultFilterProvider.cs | 4 +--- src/UglyToad.PdfPig/Filters/FilterProviderWithLookup.cs | 2 -- src/UglyToad.PdfPig/Filters/FlateFilter.cs | 3 +-- src/UglyToad.PdfPig/Filters/IFilter.cs | 1 - src/UglyToad.PdfPig/Filters/IFilterProvider.cs | 1 - src/UglyToad.PdfPig/Filters/Jbig2DecodeFilter.cs | 1 - src/UglyToad.PdfPig/Filters/JpxDecodeFilter.cs | 1 - src/UglyToad.PdfPig/Filters/LzwFilter.cs | 2 -- src/UglyToad.PdfPig/Filters/PngPredictor.cs | 2 -- src/UglyToad.PdfPig/Filters/RunLengthFilter.cs | 1 - src/UglyToad.PdfPig/Functions/PdfFunctionType0.cs | 5 ++--- src/UglyToad.PdfPig/Functions/PdfFunctionType2.cs | 1 - src/UglyToad.PdfPig/Functions/PdfFunctionType3.cs | 2 -- src/UglyToad.PdfPig/Functions/PdfFunctionType4.cs | 1 - src/UglyToad.PdfPig/Functions/Type4/ArithmeticOperators.cs | 2 -- src/UglyToad.PdfPig/Functions/Type4/BitwiseOperators.cs | 3 --- src/UglyToad.PdfPig/Functions/Type4/ConditionalOperators.cs | 3 --- src/UglyToad.PdfPig/Functions/Type4/ExecutionContext.cs | 3 --- src/UglyToad.PdfPig/Functions/Type4/InstructionSequence.cs | 2 -- .../Functions/Type4/InstructionSequenceBuilder.cs | 1 - src/UglyToad.PdfPig/Functions/Type4/Operators.cs | 2 -- src/UglyToad.PdfPig/Functions/Type4/RelationalOperators.cs | 3 --- src/UglyToad.PdfPig/Functions/Type4/StackOperators.cs | 2 -- src/UglyToad.PdfPig/Geometry/ClipperLibrary/Clipper.cs | 3 --- src/UglyToad.PdfPig/Geometry/ClipperLibrary/ClipperBase.cs | 2 -- .../Geometry/ClipperLibrary/ClipperException.cs | 2 -- .../Geometry/ClipperLibrary/ClipperIntersectNode.cs | 2 -- .../Geometry/ClipperLibrary/ClipperOffset.cs | 3 --- .../Geometry/ClipperLibrary/ClipperPolyNode.cs | 2 -- src/UglyToad.PdfPig/Geometry/ClippingExtensions.cs | 2 -- src/UglyToad.PdfPig/Geometry/GeometryExtensions.cs | 4 +--- src/UglyToad.PdfPig/Geometry/PdfVector.cs | 1 - src/UglyToad.PdfPig/Geometry/UserSpaceUnit.cs | 1 - src/UglyToad.PdfPig/Globals.cs | 2 ++ src/UglyToad.PdfPig/Graphics/BaseStreamProcessor.cs | 2 -- src/UglyToad.PdfPig/Graphics/ColorSpaceContext.cs | 2 -- .../Graphics/Colors/CIEBasedColorSpaceTransformer.cs | 1 - src/UglyToad.PdfPig/Graphics/Colors/CMYKColor.cs | 5 +---- src/UglyToad.PdfPig/Graphics/Colors/ColorSpaceDetails.cs | 2 -- src/UglyToad.PdfPig/Graphics/Colors/ColorSpaceExtensions.cs | 1 - src/UglyToad.PdfPig/Graphics/Colors/GrayColor.cs | 5 +---- src/UglyToad.PdfPig/Graphics/Colors/PatternColor.cs | 2 -- src/UglyToad.PdfPig/Graphics/Colors/RGBColor.cs | 3 --- src/UglyToad.PdfPig/Graphics/Colors/RGBWorkingSpace.cs | 2 -- src/UglyToad.PdfPig/Graphics/ContentStreamProcessor.cs | 2 -- src/UglyToad.PdfPig/Graphics/Core/LineDashPattern.cs | 2 -- src/UglyToad.PdfPig/Graphics/IColorSpaceContext.cs | 1 - .../Graphics/IGraphicsStateOperationFactory.cs | 1 - src/UglyToad.PdfPig/Graphics/IOperationContext.cs | 2 -- src/UglyToad.PdfPig/Graphics/InlineImageBuilder.cs | 2 -- src/UglyToad.PdfPig/Graphics/MarkedContentStack.cs | 2 -- src/UglyToad.PdfPig/Graphics/OperationContextHelper.cs | 1 - .../Graphics/Operations/General/SetColorRenderingIntent.cs | 1 - .../Graphics/Operations/General/SetLineCap.cs | 1 - .../Graphics/Operations/General/SetLineJoin.cs | 1 - .../Operations/InlineImages/BeginInlineImageData.cs | 2 -- .../Graphics/Operations/InlineImages/EndInlineImage.cs | 2 -- .../Graphics/Operations/InvokeNamedXObject.cs | 1 - .../Graphics/Operations/OperationWriteHelper.cs | 3 +-- src/UglyToad.PdfPig/Graphics/Operations/PaintShading.cs | 1 - .../Graphics/Operations/SetNonStrokeColor.cs | 1 - .../Graphics/Operations/SetNonStrokeColorAdvanced.cs | 1 - .../Graphics/Operations/SetNonStrokeColorSpace.cs | 1 - src/UglyToad.PdfPig/Graphics/Operations/SetStrokeColor.cs | 1 - .../Graphics/Operations/SetStrokeColorAdvanced.cs | 1 - .../Graphics/Operations/SetStrokeColorSpace.cs | 1 - .../ModifyCurrentTransformationMatrix.cs | 1 - .../Graphics/Operations/SpecialGraphicsState/Pop.cs | 1 - .../Graphics/Operations/TextPositioning/SetTextMatrix.cs | 1 - .../Operations/TextShowing/ShowTextsWithPositioning.cs | 2 -- .../Graphics/Operations/TextState/SetFontAndSize.cs | 1 - src/UglyToad.PdfPig/Graphics/PdfPath.cs | 1 - .../Graphics/ReflectionGraphicsStateOperationFactory.cs | 6 ++---- src/UglyToad.PdfPig/Graphics/XObjectContentRecord.cs | 1 - src/UglyToad.PdfPig/IO/RandomAccessBuffer.cs | 2 -- src/UglyToad.PdfPig/IO/StreamWrapper.cs | 1 - .../Images/ColorSpaceDetailsByteConverter.cs | 2 -- src/UglyToad.PdfPig/Images/JpegHandler.cs | 1 - src/UglyToad.PdfPig/Images/Png/Adam7.cs | 2 -- src/UglyToad.PdfPig/Images/Png/Adler32Checksum.cs | 2 -- src/UglyToad.PdfPig/Images/Png/ChunkHeader.cs | 2 -- src/UglyToad.PdfPig/Images/Png/ColorType.cs | 2 -- src/UglyToad.PdfPig/Images/Png/Crc32.cs | 2 -- src/UglyToad.PdfPig/Images/Png/Decoder.cs | 2 -- src/UglyToad.PdfPig/Images/Png/HeaderValidationResult.cs | 2 -- src/UglyToad.PdfPig/Images/Png/ImageHeader.cs | 3 --- src/UglyToad.PdfPig/Images/Png/Palette.cs | 2 -- src/UglyToad.PdfPig/Images/Png/Pixel.cs | 2 -- src/UglyToad.PdfPig/Images/Png/Png.cs | 1 - src/UglyToad.PdfPig/Images/Png/PngOpener.cs | 1 - src/UglyToad.PdfPig/Images/Png/PngStreamWriteHelper.cs | 1 - src/UglyToad.PdfPig/Images/Png/RawPngData.cs | 4 +--- src/UglyToad.PdfPig/Images/Png/StreamHelper.cs | 1 - src/UglyToad.PdfPig/Logging/ILog.cs | 2 -- src/UglyToad.PdfPig/Outline/BookmarkNode.cs | 3 --- src/UglyToad.PdfPig/Outline/Bookmarks.cs | 4 +--- src/UglyToad.PdfPig/Outline/BookmarksProvider.cs | 1 - .../Outline/Destinations/NamedDestinations.cs | 1 - .../Outline/Destinations/NamedDestinationsProvider.cs | 1 - src/UglyToad.PdfPig/Outline/DocumentBookmarkNode.cs | 1 - src/UglyToad.PdfPig/Outline/EmbeddedBookmarkNode.cs | 2 -- src/UglyToad.PdfPig/Outline/ExternalBookmarkNode.cs | 2 -- src/UglyToad.PdfPig/Outline/UriBookmarkNode.cs | 3 --- src/UglyToad.PdfPig/Parser/CatalogFactory.cs | 1 - .../FileStructure/CrossReferenceObjectOffsetValidator.cs | 2 -- .../Parser/FileStructure/CrossReferenceParser.cs | 2 -- .../Parser/FileStructure/CrossReferenceTableParser.cs | 1 - .../Parser/FileStructure/FileHeaderParser.cs | 1 - .../Parser/FileStructure/FileTrailerParser.cs | 2 -- .../Parser/FileStructure/XrefOffsetValidator.cs | 2 -- src/UglyToad.PdfPig/Parser/IPageContentParser.cs | 1 - src/UglyToad.PdfPig/Parser/PageContentParser.cs | 2 -- src/UglyToad.PdfPig/Parser/PageFactory.cs | 2 -- src/UglyToad.PdfPig/Parser/ParsingCachingProviders.cs | 1 - src/UglyToad.PdfPig/Parser/Parts/BruteForceSearcher.cs | 2 -- .../Parts/CrossReference/CrossReferenceStreamFieldSize.cs | 1 - .../Parts/CrossReference/CrossReferenceStreamParser.cs | 1 - .../Parts/CrossReference/TableSubsectionDefinition.cs | 1 - src/UglyToad.PdfPig/Parser/Parts/NameTreeParser.cs | 2 -- src/UglyToad.PdfPig/Parser/Parts/ObjectHelper.cs | 1 - src/UglyToad.PdfPig/Parser/PdfDocumentFactory.cs | 2 -- src/UglyToad.PdfPig/ParsingOptions.cs | 1 - src/UglyToad.PdfPig/PdfDocument.cs | 2 -- src/UglyToad.PdfPig/PdfExtensions.cs | 2 -- src/UglyToad.PdfPig/PdfFonts/CharStringStack.cs | 2 -- .../PdfFonts/CidFonts/CharacterIdentifierToGlyphIndexMap.cs | 2 -- src/UglyToad.PdfPig/PdfFonts/CidFonts/ICidFont.cs | 2 -- src/UglyToad.PdfPig/PdfFonts/CidFonts/ICidFontProgram.cs | 2 -- .../PdfFonts/CidFonts/PdfCidCompactFontFormatFont.cs | 2 -- src/UglyToad.PdfPig/PdfFonts/CidFonts/PdfCidTrueTypeFont.cs | 2 -- src/UglyToad.PdfPig/PdfFonts/CidFonts/Type0CidFont.cs | 2 -- src/UglyToad.PdfPig/PdfFonts/CidFonts/Type2CidFont.cs | 2 -- .../PdfFonts/CidFonts/VerticalWritingMetrics.cs | 1 - src/UglyToad.PdfPig/PdfFonts/Cmap/CMap.cs | 2 -- src/UglyToad.PdfPig/PdfFonts/Cmap/CMapCache.cs | 2 -- src/UglyToad.PdfPig/PdfFonts/Cmap/CMapUtils.cs | 3 --- src/UglyToad.PdfPig/PdfFonts/Cmap/CharacterMapBuilder.cs | 4 +--- src/UglyToad.PdfPig/PdfFonts/Cmap/CidRange.cs | 2 -- src/UglyToad.PdfPig/PdfFonts/Cmap/CodespaceRange.cs | 2 -- src/UglyToad.PdfPig/PdfFonts/Composite/ToUnicodeCMap.cs | 1 - src/UglyToad.PdfPig/PdfFonts/Composite/Type0Font.cs | 2 -- src/UglyToad.PdfPig/PdfFonts/FontDescriptorFlags.cs | 2 -- src/UglyToad.PdfPig/PdfFonts/FontFactory.cs | 2 -- src/UglyToad.PdfPig/PdfFonts/IFont.cs | 1 - src/UglyToad.PdfPig/PdfFonts/Parser/CMapParser.cs | 2 -- src/UglyToad.PdfPig/PdfFonts/Parser/EncodingReader.cs | 2 -- .../PdfFonts/Parser/Handlers/TrueTypeFontHandler.cs | 2 -- .../PdfFonts/Parser/Handlers/Type0FontHandler.cs | 1 - .../PdfFonts/Parser/Handlers/Type1FontHandler.cs | 1 - .../PdfFonts/Parser/Handlers/Type3FontHandler.cs | 1 - .../PdfFonts/Parser/Parts/BaseFontCharacterParser.cs | 1 - .../PdfFonts/Parser/Parts/BaseFontRangeParser.cs | 3 --- .../PdfFonts/Parser/Parts/CidCharacterParser.cs | 2 -- src/UglyToad.PdfPig/PdfFonts/Parser/Parts/CidFontFactory.cs | 4 +--- .../PdfFonts/Parser/Parts/CodespaceRangeParser.cs | 2 -- .../PdfFonts/Parser/Parts/FontDescriptorFactory.cs | 1 - src/UglyToad.PdfPig/PdfFonts/Simple/TrueTypeSimpleFont.cs | 2 -- .../PdfFonts/Simple/TrueTypeStandard14FallbackSimpleFont.cs | 2 -- src/UglyToad.PdfPig/PdfFonts/Simple/Type1FontSimple.cs | 1 - src/UglyToad.PdfPig/PdfFonts/Simple/Type1Standard14Font.cs | 2 -- src/UglyToad.PdfPig/PdfFonts/Simple/Type3Font.cs | 1 - src/UglyToad.PdfPig/Structure.cs | 1 - .../Tokenization/Scanner/IPdfTokenScanner.cs | 1 - .../Tokenization/Scanner/ObjectLocationProvider.cs | 2 -- src/UglyToad.PdfPig/Tokenization/Scanner/PdfTokenScanner.cs | 2 -- .../Tokenization/Scanner/PossibleStreamEndLocation.cs | 1 - src/UglyToad.PdfPig/Util/Adler32Checksum.cs | 2 -- src/UglyToad.PdfPig/Util/ColorSpaceDetailsParser.cs | 1 - src/UglyToad.PdfPig/Util/DateFormatHelper.cs | 1 - src/UglyToad.PdfPig/Util/DefaultWordExtractor.cs | 2 -- src/UglyToad.PdfPig/Util/Diacritics.cs | 1 - src/UglyToad.PdfPig/Util/DictionaryTokenExtensions.cs | 1 - src/UglyToad.PdfPig/Util/EnumerableExtensions.cs | 3 --- src/UglyToad.PdfPig/Util/Hex.cs | 2 -- src/UglyToad.PdfPig/Util/IWordExtractor.cs | 1 - src/UglyToad.PdfPig/Util/InternalStringExtensions.cs | 2 -- src/UglyToad.PdfPig/Util/Matrix3x3.cs | 4 +--- src/UglyToad.PdfPig/Util/PatternParser.cs | 1 - src/UglyToad.PdfPig/Util/PdfFunctionParser.cs | 3 --- src/UglyToad.PdfPig/Util/ShadingParser.cs | 1 - src/UglyToad.PdfPig/Util/StackDictionary.cs | 2 -- src/UglyToad.PdfPig/Writer/Colors/OutputIntentsFactory.cs | 2 -- src/UglyToad.PdfPig/Writer/Colors/ProfileStreamReader.cs | 1 - src/UglyToad.PdfPig/Writer/DataCompresser.cs | 1 - src/UglyToad.PdfPig/Writer/Fonts/Standard14WritingFont.cs | 2 -- src/UglyToad.PdfPig/Writer/Fonts/ToUnicodeCMapBuilder.cs | 2 -- src/UglyToad.PdfPig/Writer/Fonts/TrueTypeWritingFont.cs | 2 -- src/UglyToad.PdfPig/Writer/IPdfStreamWriter.cs | 1 - src/UglyToad.PdfPig/Writer/ITokenWriter.cs | 3 +-- src/UglyToad.PdfPig/Writer/NoTextTokenWriter.cs | 5 +---- src/UglyToad.PdfPig/Writer/PdfA1ARuleBuilder.cs | 3 +-- src/UglyToad.PdfPig/Writer/PdfABaselineRuleBuilder.cs | 4 +--- src/UglyToad.PdfPig/Writer/PdfDedupStreamWriter.cs | 2 -- src/UglyToad.PdfPig/Writer/PdfDocumentBuilder.cs | 2 -- src/UglyToad.PdfPig/Writer/PdfMerger.cs | 2 -- src/UglyToad.PdfPig/Writer/PdfPageBuilder.cs | 2 -- src/UglyToad.PdfPig/Writer/PdfStreamWriter.cs | 2 -- src/UglyToad.PdfPig/Writer/PdfTextRemover.cs | 4 +--- src/UglyToad.PdfPig/Writer/TokenWriter.cs | 6 ++---- src/UglyToad.PdfPig/Writer/WriterUtil.cs | 2 -- src/UglyToad.PdfPig/Writer/Xmp/XmpWriter.cs | 4 +--- src/UglyToad.PdfPig/XObjects/XObjectFactory.cs | 2 -- src/UglyToad.PdfPig/XObjects/XObjectImage.cs | 2 -- 269 files changed, 36 insertions(+), 484 deletions(-) create mode 100644 src/UglyToad.PdfPig/Globals.cs diff --git a/src/UglyToad.PdfPig/AcroForms/AcroForm.cs b/src/UglyToad.PdfPig/AcroForms/AcroForm.cs index 1ba48ca53..701378b40 100644 --- a/src/UglyToad.PdfPig/AcroForms/AcroForm.cs +++ b/src/UglyToad.PdfPig/AcroForms/AcroForm.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.AcroForms { - using System; - using System.Collections.Generic; using System.Linq; using Core; using Fields; diff --git a/src/UglyToad.PdfPig/AcroForms/AcroFormExtensions.cs b/src/UglyToad.PdfPig/AcroForms/AcroFormExtensions.cs index 84659519c..bb4b5e30c 100644 --- a/src/UglyToad.PdfPig/AcroForms/AcroFormExtensions.cs +++ b/src/UglyToad.PdfPig/AcroForms/AcroFormExtensions.cs @@ -1,8 +1,7 @@ namespace UglyToad.PdfPig.AcroForms { - using System.Collections.Generic; using System.Linq; - using UglyToad.PdfPig.AcroForms.Fields; + using Fields; /// /// Extensions for AcroForm. diff --git a/src/UglyToad.PdfPig/AcroForms/AcroFormFactory.cs b/src/UglyToad.PdfPig/AcroForms/AcroFormFactory.cs index 8d0b6f970..d3d17836a 100644 --- a/src/UglyToad.PdfPig/AcroForms/AcroFormFactory.cs +++ b/src/UglyToad.PdfPig/AcroForms/AcroFormFactory.cs @@ -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; diff --git a/src/UglyToad.PdfPig/AcroForms/Fields/AcroButtonFieldFlags.cs b/src/UglyToad.PdfPig/AcroForms/Fields/AcroButtonFieldFlags.cs index da6f5cf19..40d3cb13e 100644 --- a/src/UglyToad.PdfPig/AcroForms/Fields/AcroButtonFieldFlags.cs +++ b/src/UglyToad.PdfPig/AcroForms/Fields/AcroButtonFieldFlags.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.AcroForms.Fields { - using System; - /// /// Flags specifying various characteristics of a button type field in an . /// diff --git a/src/UglyToad.PdfPig/AcroForms/Fields/AcroCheckboxesField.cs b/src/UglyToad.PdfPig/AcroForms/Fields/AcroCheckboxesField.cs index 80a22a333..1a6d7a1e1 100644 --- a/src/UglyToad.PdfPig/AcroForms/Fields/AcroCheckboxesField.cs +++ b/src/UglyToad.PdfPig/AcroForms/Fields/AcroCheckboxesField.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.AcroForms.Fields { - using System.Collections.Generic; using Tokens; /// diff --git a/src/UglyToad.PdfPig/AcroForms/Fields/AcroChoiceFieldFlags.cs b/src/UglyToad.PdfPig/AcroForms/Fields/AcroChoiceFieldFlags.cs index 2dadac576..6380d9aa1 100644 --- a/src/UglyToad.PdfPig/AcroForms/Fields/AcroChoiceFieldFlags.cs +++ b/src/UglyToad.PdfPig/AcroForms/Fields/AcroChoiceFieldFlags.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.AcroForms.Fields { - using System; - /// /// Flags specifying various characteristics of a choice type field in an . /// diff --git a/src/UglyToad.PdfPig/AcroForms/Fields/AcroComboBoxField.cs b/src/UglyToad.PdfPig/AcroForms/Fields/AcroComboBoxField.cs index a4f88e4ba..a395e2238 100644 --- a/src/UglyToad.PdfPig/AcroForms/Fields/AcroComboBoxField.cs +++ b/src/UglyToad.PdfPig/AcroForms/Fields/AcroComboBoxField.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.AcroForms.Fields { - using System; - using System.Collections.Generic; using Core; using Tokens; diff --git a/src/UglyToad.PdfPig/AcroForms/Fields/AcroFieldBase.cs b/src/UglyToad.PdfPig/AcroForms/Fields/AcroFieldBase.cs index f8ded2a7e..ae375cedc 100644 --- a/src/UglyToad.PdfPig/AcroForms/Fields/AcroFieldBase.cs +++ b/src/UglyToad.PdfPig/AcroForms/Fields/AcroFieldBase.cs @@ -1,7 +1,6 @@ namespace UglyToad.PdfPig.AcroForms.Fields { using Core; - using System; using Tokens; /// diff --git a/src/UglyToad.PdfPig/AcroForms/Fields/AcroListBoxField.cs b/src/UglyToad.PdfPig/AcroForms/Fields/AcroListBoxField.cs index f47502713..312e605cf 100644 --- a/src/UglyToad.PdfPig/AcroForms/Fields/AcroListBoxField.cs +++ b/src/UglyToad.PdfPig/AcroForms/Fields/AcroListBoxField.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.AcroForms.Fields { - using System; - using System.Collections.Generic; using Core; using Tokens; diff --git a/src/UglyToad.PdfPig/AcroForms/Fields/AcroNonTerminalField.cs b/src/UglyToad.PdfPig/AcroForms/Fields/AcroNonTerminalField.cs index 7e6b806ce..7e2aef3ad 100644 --- a/src/UglyToad.PdfPig/AcroForms/Fields/AcroNonTerminalField.cs +++ b/src/UglyToad.PdfPig/AcroForms/Fields/AcroNonTerminalField.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.AcroForms.Fields { - using System; - using System.Collections.Generic; using Tokens; /// diff --git a/src/UglyToad.PdfPig/AcroForms/Fields/AcroRadioButtonsField.cs b/src/UglyToad.PdfPig/AcroForms/Fields/AcroRadioButtonsField.cs index 3701e437e..c32aa52ae 100644 --- a/src/UglyToad.PdfPig/AcroForms/Fields/AcroRadioButtonsField.cs +++ b/src/UglyToad.PdfPig/AcroForms/Fields/AcroRadioButtonsField.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.AcroForms.Fields { - using System.Collections.Generic; using Tokens; /// diff --git a/src/UglyToad.PdfPig/AcroForms/Fields/AcroTextFieldFlags.cs b/src/UglyToad.PdfPig/AcroForms/Fields/AcroTextFieldFlags.cs index 3b7a999ca..01fc6f1ff 100644 --- a/src/UglyToad.PdfPig/AcroForms/Fields/AcroTextFieldFlags.cs +++ b/src/UglyToad.PdfPig/AcroForms/Fields/AcroTextFieldFlags.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.AcroForms.Fields { - using System; - /// /// Flags specifying various characteristics of a text type field in an . /// diff --git a/src/UglyToad.PdfPig/AcroForms/SignatureFlags.cs b/src/UglyToad.PdfPig/AcroForms/SignatureFlags.cs index 53ffee6ee..5eb4d9580 100644 --- a/src/UglyToad.PdfPig/AcroForms/SignatureFlags.cs +++ b/src/UglyToad.PdfPig/AcroForms/SignatureFlags.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.AcroForms { - using System; - /// /// Specifies document level characteristics for any signature fields in the document's . /// @@ -12,6 +10,7 @@ public enum SignatureFlags /// The document contains at least one signature field. /// SignaturesExist = 1 << 0, + /// /// 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. diff --git a/src/UglyToad.PdfPig/AdvancedPdfDocumentAccess.cs b/src/UglyToad.PdfPig/AdvancedPdfDocumentAccess.cs index 49d6053ce..94093c9a0 100644 --- a/src/UglyToad.PdfPig/AdvancedPdfDocumentAccess.cs +++ b/src/UglyToad.PdfPig/AdvancedPdfDocumentAccess.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig { - using System; - using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using Content; using Core; diff --git a/src/UglyToad.PdfPig/Annotations/Annotation.cs b/src/UglyToad.PdfPig/Annotations/Annotation.cs index 54ba5a0aa..728d2a0ad 100644 --- a/src/UglyToad.PdfPig/Annotations/Annotation.cs +++ b/src/UglyToad.PdfPig/Annotations/Annotation.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Annotations { - using System; - using System.Collections.Generic; using Core; using Actions; using Tokens; diff --git a/src/UglyToad.PdfPig/Annotations/AnnotationBorder.cs b/src/UglyToad.PdfPig/Annotations/AnnotationBorder.cs index a7647a78e..0ac4d7355 100644 --- a/src/UglyToad.PdfPig/Annotations/AnnotationBorder.cs +++ b/src/UglyToad.PdfPig/Annotations/AnnotationBorder.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Annotations { - using System.Collections.Generic; - /// /// A border for a PDF object. /// diff --git a/src/UglyToad.PdfPig/Annotations/AnnotationFlags.cs b/src/UglyToad.PdfPig/Annotations/AnnotationFlags.cs index 1f117107c..fad05efbc 100644 --- a/src/UglyToad.PdfPig/Annotations/AnnotationFlags.cs +++ b/src/UglyToad.PdfPig/Annotations/AnnotationFlags.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Annotations { - using System; - /// /// Specifies characteristics of an annotation in a PDF or FDF document. /// diff --git a/src/UglyToad.PdfPig/Annotations/AnnotationProvider.cs b/src/UglyToad.PdfPig/Annotations/AnnotationProvider.cs index 02fc7c4aa..dd42cadab 100644 --- a/src/UglyToad.PdfPig/Annotations/AnnotationProvider.cs +++ b/src/UglyToad.PdfPig/Annotations/AnnotationProvider.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Annotations { - using System; - using System.Collections.Generic; using System.Linq; using Actions; using Core; diff --git a/src/UglyToad.PdfPig/Annotations/AppearanceStream.cs b/src/UglyToad.PdfPig/Annotations/AppearanceStream.cs index 48b52fb2c..6d7099f39 100644 --- a/src/UglyToad.PdfPig/Annotations/AppearanceStream.cs +++ b/src/UglyToad.PdfPig/Annotations/AppearanceStream.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Annotations { - using System; - using System.Collections.Generic; using Tokens; /// diff --git a/src/UglyToad.PdfPig/Annotations/AppearanceStreamFactory.cs b/src/UglyToad.PdfPig/Annotations/AppearanceStreamFactory.cs index b8fd639d9..bde3e56ac 100644 --- a/src/UglyToad.PdfPig/Annotations/AppearanceStreamFactory.cs +++ b/src/UglyToad.PdfPig/Annotations/AppearanceStreamFactory.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Annotations { - using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using Tokenization.Scanner; using Tokens; diff --git a/src/UglyToad.PdfPig/Annotations/HyperlinkFactory.cs b/src/UglyToad.PdfPig/Annotations/HyperlinkFactory.cs index 5b4d57693..bcb0c01a2 100644 --- a/src/UglyToad.PdfPig/Annotations/HyperlinkFactory.cs +++ b/src/UglyToad.PdfPig/Annotations/HyperlinkFactory.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Annotations { - using System.Collections.Generic; using System.Linq; using Content; using Core; diff --git a/src/UglyToad.PdfPig/Annotations/QuadPointsQuadrilateral.cs b/src/UglyToad.PdfPig/Annotations/QuadPointsQuadrilateral.cs index e39973be2..b95b89435 100644 --- a/src/UglyToad.PdfPig/Annotations/QuadPointsQuadrilateral.cs +++ b/src/UglyToad.PdfPig/Annotations/QuadPointsQuadrilateral.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Annotations { - using System; - using System.Collections.Generic; using Core; /// diff --git a/src/UglyToad.PdfPig/Content/ArtifactMarkedContentElement.cs b/src/UglyToad.PdfPig/Content/ArtifactMarkedContentElement.cs index 04729258a..81f54067f 100644 --- a/src/UglyToad.PdfPig/Content/ArtifactMarkedContentElement.cs +++ b/src/UglyToad.PdfPig/Content/ArtifactMarkedContentElement.cs @@ -1,10 +1,8 @@ namespace UglyToad.PdfPig.Content { - using System; - using System.Collections.Generic; using Core; + using Graphics; using Tokens; - using UglyToad.PdfPig.Graphics; /// /// diff --git a/src/UglyToad.PdfPig/Content/BasePageFactory.cs b/src/UglyToad.PdfPig/Content/BasePageFactory.cs index c80cb32ab..f683f499a 100644 --- a/src/UglyToad.PdfPig/Content/BasePageFactory.cs +++ b/src/UglyToad.PdfPig/Content/BasePageFactory.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Content { - using System; - using System.Collections.Generic; using Core; using Filters; using Geometry; diff --git a/src/UglyToad.PdfPig/Content/Catalog.cs b/src/UglyToad.PdfPig/Content/Catalog.cs index bb900f233..66fe0f975 100644 --- a/src/UglyToad.PdfPig/Content/Catalog.cs +++ b/src/UglyToad.PdfPig/Content/Catalog.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Content { - using System; using Outline.Destinations; using Tokens; diff --git a/src/UglyToad.PdfPig/Content/DocumentInformation.cs b/src/UglyToad.PdfPig/Content/DocumentInformation.cs index e17ec5509..3323a094f 100644 --- a/src/UglyToad.PdfPig/Content/DocumentInformation.cs +++ b/src/UglyToad.PdfPig/Content/DocumentInformation.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Content { - using System; - using System.Collections.Generic; using System.Text; using Tokens; using Util; diff --git a/src/UglyToad.PdfPig/Content/EmbeddedFile.cs b/src/UglyToad.PdfPig/Content/EmbeddedFile.cs index dd41d7f3b..26637fe0e 100644 --- a/src/UglyToad.PdfPig/Content/EmbeddedFile.cs +++ b/src/UglyToad.PdfPig/Content/EmbeddedFile.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Content { - using System; - using System.Collections.Generic; using Tokens; /// diff --git a/src/UglyToad.PdfPig/Content/HeaderVersion.cs b/src/UglyToad.PdfPig/Content/HeaderVersion.cs index fd61a8980..3a67d65f3 100644 --- a/src/UglyToad.PdfPig/Content/HeaderVersion.cs +++ b/src/UglyToad.PdfPig/Content/HeaderVersion.cs @@ -1,8 +1,6 @@ namespace UglyToad.PdfPig.Content { - using System; - - internal class HeaderVersion + internal sealed class HeaderVersion { public double Version { get; } diff --git a/src/UglyToad.PdfPig/Content/Hyperlink.cs b/src/UglyToad.PdfPig/Content/Hyperlink.cs index dc0b78dad..19af38143 100644 --- a/src/UglyToad.PdfPig/Content/Hyperlink.cs +++ b/src/UglyToad.PdfPig/Content/Hyperlink.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Content { - using System; - using System.Collections.Generic; using Annotations; using Core; diff --git a/src/UglyToad.PdfPig/Content/IPdfImage.cs b/src/UglyToad.PdfPig/Content/IPdfImage.cs index 544ea3e76..993448d56 100644 --- a/src/UglyToad.PdfPig/Content/IPdfImage.cs +++ b/src/UglyToad.PdfPig/Content/IPdfImage.cs @@ -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; /// diff --git a/src/UglyToad.PdfPig/Content/IResourceStore.cs b/src/UglyToad.PdfPig/Content/IResourceStore.cs index eb499a4f9..cd0e9386c 100644 --- a/src/UglyToad.PdfPig/Content/IResourceStore.cs +++ b/src/UglyToad.PdfPig/Content/IResourceStore.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Content { - using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using Graphics.Colors; using PdfFonts; diff --git a/src/UglyToad.PdfPig/Content/InlineImage.cs b/src/UglyToad.PdfPig/Content/InlineImage.cs index 6ec315d28..b4957a2f7 100644 --- a/src/UglyToad.PdfPig/Content/InlineImage.cs +++ b/src/UglyToad.PdfPig/Content/InlineImage.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Content { - using System; - using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using Core; using Filters; diff --git a/src/UglyToad.PdfPig/Content/MarkedContentElement.cs b/src/UglyToad.PdfPig/Content/MarkedContentElement.cs index e0be7ae5b..dc06e625d 100644 --- a/src/UglyToad.PdfPig/Content/MarkedContentElement.cs +++ b/src/UglyToad.PdfPig/Content/MarkedContentElement.cs @@ -1,9 +1,7 @@ namespace UglyToad.PdfPig.Content { - using System; - using System.Collections.Generic; + using Graphics; using Tokens; - using UglyToad.PdfPig.Graphics; /// /// A marked content element can be used to provide application specific data in the diff --git a/src/UglyToad.PdfPig/Content/MediaBox.cs b/src/UglyToad.PdfPig/Content/MediaBox.cs index 21ea25cbd..f1caf892f 100644 --- a/src/UglyToad.PdfPig/Content/MediaBox.cs +++ b/src/UglyToad.PdfPig/Content/MediaBox.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Content { - using System; using Core; /// diff --git a/src/UglyToad.PdfPig/Content/OptionalContentGroupElement.cs b/src/UglyToad.PdfPig/Content/OptionalContentGroupElement.cs index 33ac16de4..f41fcbba2 100644 --- a/src/UglyToad.PdfPig/Content/OptionalContentGroupElement.cs +++ b/src/UglyToad.PdfPig/Content/OptionalContentGroupElement.cs @@ -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 diff --git a/src/UglyToad.PdfPig/Content/Page.cs b/src/UglyToad.PdfPig/Content/Page.cs index a8ff130a7..529f7fe98 100644 --- a/src/UglyToad.PdfPig/Content/Page.cs +++ b/src/UglyToad.PdfPig/Content/Page.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Content { - using System; - using System.Collections.Generic; using System.Text; using System.Linq; using Annotations; diff --git a/src/UglyToad.PdfPig/Content/PageContent.cs b/src/UglyToad.PdfPig/Content/PageContent.cs index c44d74be9..6651d1359 100644 --- a/src/UglyToad.PdfPig/Content/PageContent.cs +++ b/src/UglyToad.PdfPig/Content/PageContent.cs @@ -4,8 +4,6 @@ using Filters; using Graphics; using Graphics.Operations; - using System; - using System.Collections.Generic; using Tokenization.Scanner; using XObjects; diff --git a/src/UglyToad.PdfPig/Content/PageRotationDegrees.cs b/src/UglyToad.PdfPig/Content/PageRotationDegrees.cs index b1ca2950f..b8ddbbd10 100644 --- a/src/UglyToad.PdfPig/Content/PageRotationDegrees.cs +++ b/src/UglyToad.PdfPig/Content/PageRotationDegrees.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Content { - using System; using System.Globalization; /// diff --git a/src/UglyToad.PdfPig/Content/PageSize.cs b/src/UglyToad.PdfPig/Content/PageSize.cs index 0de70e8e2..e8c7e9628 100644 --- a/src/UglyToad.PdfPig/Content/PageSize.cs +++ b/src/UglyToad.PdfPig/Content/PageSize.cs @@ -1,9 +1,7 @@ namespace UglyToad.PdfPig.Content { - using System.Collections.Generic; using System.Linq; using Core; - using System; /// /// The corresponding named size of the . diff --git a/src/UglyToad.PdfPig/Content/PageTreeMembers.cs b/src/UglyToad.PdfPig/Content/PageTreeMembers.cs index 4822a7c8a..9de75f45a 100644 --- a/src/UglyToad.PdfPig/Content/PageTreeMembers.cs +++ b/src/UglyToad.PdfPig/Content/PageTreeMembers.cs @@ -2,7 +2,6 @@ namespace UglyToad.PdfPig.Content { - using System.Collections.Generic; using Tokens; /// diff --git a/src/UglyToad.PdfPig/Content/PageTreeNode.cs b/src/UglyToad.PdfPig/Content/PageTreeNode.cs index 4e06451bd..2bf5faf51 100644 --- a/src/UglyToad.PdfPig/Content/PageTreeNode.cs +++ b/src/UglyToad.PdfPig/Content/PageTreeNode.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Content { - using System; - using System.Collections.Generic; using Core; using Tokens; diff --git a/src/UglyToad.PdfPig/Content/Pages.cs b/src/UglyToad.PdfPig/Content/Pages.cs index 94766ca64..d55477df3 100644 --- a/src/UglyToad.PdfPig/Content/Pages.cs +++ b/src/UglyToad.PdfPig/Content/Pages.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Content { - using System; - using System.Collections.Generic; using Core; using Filters; using Outline.Destinations; diff --git a/src/UglyToad.PdfPig/Content/PagesFactory.cs b/src/UglyToad.PdfPig/Content/PagesFactory.cs index 45ce51e89..56218a64f 100644 --- a/src/UglyToad.PdfPig/Content/PagesFactory.cs +++ b/src/UglyToad.PdfPig/Content/PagesFactory.cs @@ -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; diff --git a/src/UglyToad.PdfPig/Content/ResourceStore.cs b/src/UglyToad.PdfPig/Content/ResourceStore.cs index 4982d1731..1d4c5719b 100644 --- a/src/UglyToad.PdfPig/Content/ResourceStore.cs +++ b/src/UglyToad.PdfPig/Content/ResourceStore.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Content { - using System; - using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using Core; using Graphics.Colors; diff --git a/src/UglyToad.PdfPig/Content/Word.cs b/src/UglyToad.PdfPig/Content/Word.cs index 7d157fba8..9b8d15220 100644 --- a/src/UglyToad.PdfPig/Content/Word.cs +++ b/src/UglyToad.PdfPig/Content/Word.cs @@ -1,10 +1,8 @@ namespace UglyToad.PdfPig.Content { - using Core; - using System; - using System.Collections.Generic; using System.Linq; using System.Text; + using Core; /// /// A word. diff --git a/src/UglyToad.PdfPig/Content/XmpMetadata.cs b/src/UglyToad.PdfPig/Content/XmpMetadata.cs index 0acd952b5..9c0bae6b1 100644 --- a/src/UglyToad.PdfPig/Content/XmpMetadata.cs +++ b/src/UglyToad.PdfPig/Content/XmpMetadata.cs @@ -2,7 +2,6 @@ { using Core; using Filters; - using System; using System.Xml.Linq; using Tokenization.Scanner; using Tokens; diff --git a/src/UglyToad.PdfPig/CrossReference/CrossReferenceTable.cs b/src/UglyToad.PdfPig/CrossReference/CrossReferenceTable.cs index fe404ea2c..82e60c26d 100644 --- a/src/UglyToad.PdfPig/CrossReference/CrossReferenceTable.cs +++ b/src/UglyToad.PdfPig/CrossReference/CrossReferenceTable.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.CrossReference { - using System; - using System.Collections.Generic; using Core; /// diff --git a/src/UglyToad.PdfPig/CrossReference/CrossReferenceTableBuilder.cs b/src/UglyToad.PdfPig/CrossReference/CrossReferenceTableBuilder.cs index f222cb8fc..61ab5d696 100644 --- a/src/UglyToad.PdfPig/CrossReference/CrossReferenceTableBuilder.cs +++ b/src/UglyToad.PdfPig/CrossReference/CrossReferenceTableBuilder.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.CrossReference { - using System; - using System.Collections.Generic; using System.Linq; using Core; using Logging; diff --git a/src/UglyToad.PdfPig/CrossReference/CrossReferenceTablePart.cs b/src/UglyToad.PdfPig/CrossReference/CrossReferenceTablePart.cs index eb074671f..770b97dc4 100644 --- a/src/UglyToad.PdfPig/CrossReference/CrossReferenceTablePart.cs +++ b/src/UglyToad.PdfPig/CrossReference/CrossReferenceTablePart.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.CrossReference { - using System.Collections.Generic; using Core; using Tokens; diff --git a/src/UglyToad.PdfPig/CrossReference/CrossReferenceTablePartBuilder.cs b/src/UglyToad.PdfPig/CrossReference/CrossReferenceTablePartBuilder.cs index 1cda8ca61..8c901b2c0 100644 --- a/src/UglyToad.PdfPig/CrossReference/CrossReferenceTablePartBuilder.cs +++ b/src/UglyToad.PdfPig/CrossReference/CrossReferenceTablePartBuilder.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.CrossReference { - using System.Collections.Generic; using Core; using Tokens; diff --git a/src/UglyToad.PdfPig/CrossReference/TrailerDictionary.cs b/src/UglyToad.PdfPig/CrossReference/TrailerDictionary.cs index ab2c2e93b..bd019c872 100644 --- a/src/UglyToad.PdfPig/CrossReference/TrailerDictionary.cs +++ b/src/UglyToad.PdfPig/CrossReference/TrailerDictionary.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.CrossReference { - using System; - using System.Collections.Generic; using Core; using Tokens; using Util; diff --git a/src/UglyToad.PdfPig/Encryption/AesEncryptionHelper.cs b/src/UglyToad.PdfPig/Encryption/AesEncryptionHelper.cs index 44c7fcb1a..a5193117b 100644 --- a/src/UglyToad.PdfPig/Encryption/AesEncryptionHelper.cs +++ b/src/UglyToad.PdfPig/Encryption/AesEncryptionHelper.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Encryption { - using System; using System.IO; using System.Security.Cryptography; diff --git a/src/UglyToad.PdfPig/Encryption/CryptHandler.cs b/src/UglyToad.PdfPig/Encryption/CryptHandler.cs index 19816d02a..a5537ba33 100644 --- a/src/UglyToad.PdfPig/Encryption/CryptHandler.cs +++ b/src/UglyToad.PdfPig/Encryption/CryptHandler.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Encryption { - using System; using Exceptions; using Tokens; diff --git a/src/UglyToad.PdfPig/Encryption/EncryptionDictionary.cs b/src/UglyToad.PdfPig/Encryption/EncryptionDictionary.cs index 8f58c82a7..07ffd93f0 100644 --- a/src/UglyToad.PdfPig/Encryption/EncryptionDictionary.cs +++ b/src/UglyToad.PdfPig/Encryption/EncryptionDictionary.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Encryption { - using System; using System.Diagnostics.CodeAnalysis; using Exceptions; using Tokens; diff --git a/src/UglyToad.PdfPig/Encryption/EncryptionDictionaryFactory.cs b/src/UglyToad.PdfPig/Encryption/EncryptionDictionaryFactory.cs index 5743e6e06..13a092b73 100644 --- a/src/UglyToad.PdfPig/Encryption/EncryptionDictionaryFactory.cs +++ b/src/UglyToad.PdfPig/Encryption/EncryptionDictionaryFactory.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Encryption { - using System; - using System.Linq; using Core; using Tokenization.Scanner; using Tokens; diff --git a/src/UglyToad.PdfPig/Encryption/EncryptionHandler.cs b/src/UglyToad.PdfPig/Encryption/EncryptionHandler.cs index 1a6fa67be..00fb13e60 100644 --- a/src/UglyToad.PdfPig/Encryption/EncryptionHandler.cs +++ b/src/UglyToad.PdfPig/Encryption/EncryptionHandler.cs @@ -2,8 +2,6 @@ namespace UglyToad.PdfPig.Encryption { - using System; - using System.Collections.Generic; using System.IO; using System.Linq; using System.Security.Cryptography; diff --git a/src/UglyToad.PdfPig/Encryption/RC4.cs b/src/UglyToad.PdfPig/Encryption/RC4.cs index 146e6054c..4e6391936 100644 --- a/src/UglyToad.PdfPig/Encryption/RC4.cs +++ b/src/UglyToad.PdfPig/Encryption/RC4.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Encryption { - using System; - internal static class RC4 { public static byte[] Encrypt(ReadOnlySpan key, ReadOnlySpan data) diff --git a/src/UglyToad.PdfPig/Encryption/UserAccessPermissions.cs b/src/UglyToad.PdfPig/Encryption/UserAccessPermissions.cs index 34ad00b68..b5f81e57e 100644 --- a/src/UglyToad.PdfPig/Encryption/UserAccessPermissions.cs +++ b/src/UglyToad.PdfPig/Encryption/UserAccessPermissions.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Encryption { - using System; - [Flags] internal enum UserAccessPermissions : long { diff --git a/src/UglyToad.PdfPig/Exceptions/PdfDocumentEncryptedException.cs b/src/UglyToad.PdfPig/Exceptions/PdfDocumentEncryptedException.cs index e0caf4e36..6cd26e62d 100644 --- a/src/UglyToad.PdfPig/Exceptions/PdfDocumentEncryptedException.cs +++ b/src/UglyToad.PdfPig/Exceptions/PdfDocumentEncryptedException.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Exceptions { - using System; #if !NET using System.Runtime.Serialization; #endif diff --git a/src/UglyToad.PdfPig/Filters/Ascii85Filter.cs b/src/UglyToad.PdfPig/Filters/Ascii85Filter.cs index 71f55c55d..b4f0aa4ae 100644 --- a/src/UglyToad.PdfPig/Filters/Ascii85Filter.cs +++ b/src/UglyToad.PdfPig/Filters/Ascii85Filter.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Filters { - using System; - using System.Collections.Generic; using Core; using Tokens; diff --git a/src/UglyToad.PdfPig/Filters/AsciiHexDecodeFilter.cs b/src/UglyToad.PdfPig/Filters/AsciiHexDecodeFilter.cs index 81d6bca67..9146b93c8 100644 --- a/src/UglyToad.PdfPig/Filters/AsciiHexDecodeFilter.cs +++ b/src/UglyToad.PdfPig/Filters/AsciiHexDecodeFilter.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Filters { - using System; using Core; using Tokens; diff --git a/src/UglyToad.PdfPig/Filters/BitStream.cs b/src/UglyToad.PdfPig/Filters/BitStream.cs index f729e5701..39ba54c0b 100644 --- a/src/UglyToad.PdfPig/Filters/BitStream.cs +++ b/src/UglyToad.PdfPig/Filters/BitStream.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Filters { - using System; - internal ref struct BitStream { private readonly ReadOnlySpan data; diff --git a/src/UglyToad.PdfPig/Filters/CcittFaxDecodeFilter.cs b/src/UglyToad.PdfPig/Filters/CcittFaxDecodeFilter.cs index e8bae30e6..5a29abfd5 100644 --- a/src/UglyToad.PdfPig/Filters/CcittFaxDecodeFilter.cs +++ b/src/UglyToad.PdfPig/Filters/CcittFaxDecodeFilter.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Filters { - using System; using System.IO; using Tokens; using Util; diff --git a/src/UglyToad.PdfPig/Filters/CcittFaxDecoderStream.cs b/src/UglyToad.PdfPig/Filters/CcittFaxDecoderStream.cs index 12aa8fa9a..87ffdff8f 100644 --- a/src/UglyToad.PdfPig/Filters/CcittFaxDecoderStream.cs +++ b/src/UglyToad.PdfPig/Filters/CcittFaxDecoderStream.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Filters { - using System; using System.IO; using IO; diff --git a/src/UglyToad.PdfPig/Filters/DctDecodeFilter.cs b/src/UglyToad.PdfPig/Filters/DctDecodeFilter.cs index 624496446..45cc8d31f 100644 --- a/src/UglyToad.PdfPig/Filters/DctDecodeFilter.cs +++ b/src/UglyToad.PdfPig/Filters/DctDecodeFilter.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Filters { - using System; using Tokens; internal class DctDecodeFilter : IFilter diff --git a/src/UglyToad.PdfPig/Filters/DecodeParameterResolver.cs b/src/UglyToad.PdfPig/Filters/DecodeParameterResolver.cs index 32d10a9c6..b04ff1643 100644 --- a/src/UglyToad.PdfPig/Filters/DecodeParameterResolver.cs +++ b/src/UglyToad.PdfPig/Filters/DecodeParameterResolver.cs @@ -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 { diff --git a/src/UglyToad.PdfPig/Filters/DefaultFilterProvider.cs b/src/UglyToad.PdfPig/Filters/DefaultFilterProvider.cs index f6049216a..1a38ff3f8 100644 --- a/src/UglyToad.PdfPig/Filters/DefaultFilterProvider.cs +++ b/src/UglyToad.PdfPig/Filters/DefaultFilterProvider.cs @@ -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; /// /// diff --git a/src/UglyToad.PdfPig/Filters/FilterProviderWithLookup.cs b/src/UglyToad.PdfPig/Filters/FilterProviderWithLookup.cs index a478dfcb8..335beaf86 100644 --- a/src/UglyToad.PdfPig/Filters/FilterProviderWithLookup.cs +++ b/src/UglyToad.PdfPig/Filters/FilterProviderWithLookup.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Filters { - using System; - using System.Collections.Generic; using System.Linq; using Core; using Parser.Parts; diff --git a/src/UglyToad.PdfPig/Filters/FlateFilter.cs b/src/UglyToad.PdfPig/Filters/FlateFilter.cs index dc3de8609..88c3ee2fa 100644 --- a/src/UglyToad.PdfPig/Filters/FlateFilter.cs +++ b/src/UglyToad.PdfPig/Filters/FlateFilter.cs @@ -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; diff --git a/src/UglyToad.PdfPig/Filters/IFilter.cs b/src/UglyToad.PdfPig/Filters/IFilter.cs index 6765ebec0..19d6e8f1f 100644 --- a/src/UglyToad.PdfPig/Filters/IFilter.cs +++ b/src/UglyToad.PdfPig/Filters/IFilter.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Filters { - using System; using Tokens; /// diff --git a/src/UglyToad.PdfPig/Filters/IFilterProvider.cs b/src/UglyToad.PdfPig/Filters/IFilterProvider.cs index 39b87fa25..7322e84ea 100644 --- a/src/UglyToad.PdfPig/Filters/IFilterProvider.cs +++ b/src/UglyToad.PdfPig/Filters/IFilterProvider.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Filters { - using System.Collections.Generic; using Tokenization.Scanner; using Tokens; diff --git a/src/UglyToad.PdfPig/Filters/Jbig2DecodeFilter.cs b/src/UglyToad.PdfPig/Filters/Jbig2DecodeFilter.cs index 05c698a28..92c6e5dc8 100644 --- a/src/UglyToad.PdfPig/Filters/Jbig2DecodeFilter.cs +++ b/src/UglyToad.PdfPig/Filters/Jbig2DecodeFilter.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Filters { - using System; using Tokens; internal sealed class Jbig2DecodeFilter : IFilter diff --git a/src/UglyToad.PdfPig/Filters/JpxDecodeFilter.cs b/src/UglyToad.PdfPig/Filters/JpxDecodeFilter.cs index ef31a83ec..4d54f806f 100644 --- a/src/UglyToad.PdfPig/Filters/JpxDecodeFilter.cs +++ b/src/UglyToad.PdfPig/Filters/JpxDecodeFilter.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Filters { - using System; using Tokens; internal class JpxDecodeFilter : IFilter diff --git a/src/UglyToad.PdfPig/Filters/LzwFilter.cs b/src/UglyToad.PdfPig/Filters/LzwFilter.cs index 119607788..b492455b0 100644 --- a/src/UglyToad.PdfPig/Filters/LzwFilter.cs +++ b/src/UglyToad.PdfPig/Filters/LzwFilter.cs @@ -2,8 +2,6 @@ namespace UglyToad.PdfPig.Filters { - using System; - using System.Collections.Generic; using Tokens; using Util; diff --git a/src/UglyToad.PdfPig/Filters/PngPredictor.cs b/src/UglyToad.PdfPig/Filters/PngPredictor.cs index bac1168cb..53b01e6b3 100644 --- a/src/UglyToad.PdfPig/Filters/PngPredictor.cs +++ b/src/UglyToad.PdfPig/Filters/PngPredictor.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Filters { - using System; - using System.Collections.Generic; using System.IO; using IO; diff --git a/src/UglyToad.PdfPig/Filters/RunLengthFilter.cs b/src/UglyToad.PdfPig/Filters/RunLengthFilter.cs index 40b49620b..3d88197bf 100644 --- a/src/UglyToad.PdfPig/Filters/RunLengthFilter.cs +++ b/src/UglyToad.PdfPig/Filters/RunLengthFilter.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Filters { - using System; using Tokens; using UglyToad.PdfPig.Core; diff --git a/src/UglyToad.PdfPig/Functions/PdfFunctionType0.cs b/src/UglyToad.PdfPig/Functions/PdfFunctionType0.cs index 817360953..c17ec0328 100644 --- a/src/UglyToad.PdfPig/Functions/PdfFunctionType0.cs +++ b/src/UglyToad.PdfPig/Functions/PdfFunctionType0.cs @@ -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 { diff --git a/src/UglyToad.PdfPig/Functions/PdfFunctionType2.cs b/src/UglyToad.PdfPig/Functions/PdfFunctionType2.cs index ba0f1791e..9d9351d55 100644 --- a/src/UglyToad.PdfPig/Functions/PdfFunctionType2.cs +++ b/src/UglyToad.PdfPig/Functions/PdfFunctionType2.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Functions { - using System; using UglyToad.PdfPig.Tokens; /// diff --git a/src/UglyToad.PdfPig/Functions/PdfFunctionType3.cs b/src/UglyToad.PdfPig/Functions/PdfFunctionType3.cs index dbe565a2b..5b3972b15 100644 --- a/src/UglyToad.PdfPig/Functions/PdfFunctionType3.cs +++ b/src/UglyToad.PdfPig/Functions/PdfFunctionType3.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Functions { - using System; - using System.Collections.Generic; using System.IO; using System.Linq; using UglyToad.PdfPig.Core; diff --git a/src/UglyToad.PdfPig/Functions/PdfFunctionType4.cs b/src/UglyToad.PdfPig/Functions/PdfFunctionType4.cs index f47f7251b..641d506c4 100644 --- a/src/UglyToad.PdfPig/Functions/PdfFunctionType4.cs +++ b/src/UglyToad.PdfPig/Functions/PdfFunctionType4.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Functions { - using System; using System.Linq; using UglyToad.PdfPig.Core; using UglyToad.PdfPig.Functions.Type4; diff --git a/src/UglyToad.PdfPig/Functions/Type4/ArithmeticOperators.cs b/src/UglyToad.PdfPig/Functions/Type4/ArithmeticOperators.cs index 234af09b9..997cfe7a5 100644 --- a/src/UglyToad.PdfPig/Functions/Type4/ArithmeticOperators.cs +++ b/src/UglyToad.PdfPig/Functions/Type4/ArithmeticOperators.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Functions.Type4 { - using System; - /// /// Provides the arithmetic operators such as "add" and "sub". /// diff --git a/src/UglyToad.PdfPig/Functions/Type4/BitwiseOperators.cs b/src/UglyToad.PdfPig/Functions/Type4/BitwiseOperators.cs index 08f58c070..3248cff4c 100644 --- a/src/UglyToad.PdfPig/Functions/Type4/BitwiseOperators.cs +++ b/src/UglyToad.PdfPig/Functions/Type4/BitwiseOperators.cs @@ -1,8 +1,5 @@ namespace UglyToad.PdfPig.Functions.Type4 { - using System; - using System.Collections.Generic; - internal sealed class BitwiseOperators { private BitwiseOperators() diff --git a/src/UglyToad.PdfPig/Functions/Type4/ConditionalOperators.cs b/src/UglyToad.PdfPig/Functions/Type4/ConditionalOperators.cs index 106c4ae65..3831cb8a6 100644 --- a/src/UglyToad.PdfPig/Functions/Type4/ConditionalOperators.cs +++ b/src/UglyToad.PdfPig/Functions/Type4/ConditionalOperators.cs @@ -1,8 +1,5 @@ namespace UglyToad.PdfPig.Functions.Type4 { - using System; - using System.Collections.Generic; - /// /// Provides the conditional operators such as "if" and "ifelse". /// diff --git a/src/UglyToad.PdfPig/Functions/Type4/ExecutionContext.cs b/src/UglyToad.PdfPig/Functions/Type4/ExecutionContext.cs index 79d89e28a..3b882c206 100644 --- a/src/UglyToad.PdfPig/Functions/Type4/ExecutionContext.cs +++ b/src/UglyToad.PdfPig/Functions/Type4/ExecutionContext.cs @@ -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 diff --git a/src/UglyToad.PdfPig/Functions/Type4/InstructionSequence.cs b/src/UglyToad.PdfPig/Functions/Type4/InstructionSequence.cs index dfbd393ba..08a4ac10e 100644 --- a/src/UglyToad.PdfPig/Functions/Type4/InstructionSequence.cs +++ b/src/UglyToad.PdfPig/Functions/Type4/InstructionSequence.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Functions.Type4 { - using System; - using System.Collections.Generic; using System.Linq; internal sealed class InstructionSequence diff --git a/src/UglyToad.PdfPig/Functions/Type4/InstructionSequenceBuilder.cs b/src/UglyToad.PdfPig/Functions/Type4/InstructionSequenceBuilder.cs index 03d7b233a..6baf97be9 100644 --- a/src/UglyToad.PdfPig/Functions/Type4/InstructionSequenceBuilder.cs +++ b/src/UglyToad.PdfPig/Functions/Type4/InstructionSequenceBuilder.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Functions.Type4 { - using System.Collections.Generic; using System.Globalization; /// diff --git a/src/UglyToad.PdfPig/Functions/Type4/Operators.cs b/src/UglyToad.PdfPig/Functions/Type4/Operators.cs index 0c47f5560..cf0a4ecbe 100644 --- a/src/UglyToad.PdfPig/Functions/Type4/Operators.cs +++ b/src/UglyToad.PdfPig/Functions/Type4/Operators.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Functions.Type4 { - using System.Collections.Generic; - /// /// This class provides all the supported operators. /// diff --git a/src/UglyToad.PdfPig/Functions/Type4/RelationalOperators.cs b/src/UglyToad.PdfPig/Functions/Type4/RelationalOperators.cs index f23724fe1..b2cad7ba7 100644 --- a/src/UglyToad.PdfPig/Functions/Type4/RelationalOperators.cs +++ b/src/UglyToad.PdfPig/Functions/Type4/RelationalOperators.cs @@ -1,8 +1,5 @@ namespace UglyToad.PdfPig.Functions.Type4 { - using System; - using System.Collections.Generic; - /// /// Provides the relational operators such as "eq" and "le". /// diff --git a/src/UglyToad.PdfPig/Functions/Type4/StackOperators.cs b/src/UglyToad.PdfPig/Functions/Type4/StackOperators.cs index a0f824f6f..813022048 100644 --- a/src/UglyToad.PdfPig/Functions/Type4/StackOperators.cs +++ b/src/UglyToad.PdfPig/Functions/Type4/StackOperators.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Functions.Type4 { - using System; - using System.Collections.Generic; using System.Linq; /// diff --git a/src/UglyToad.PdfPig/Geometry/ClipperLibrary/Clipper.cs b/src/UglyToad.PdfPig/Geometry/ClipperLibrary/Clipper.cs index 688f42d16..bfe8854fa 100644 --- a/src/UglyToad.PdfPig/Geometry/ClipperLibrary/Clipper.cs +++ b/src/UglyToad.PdfPig/Geometry/ClipperLibrary/Clipper.cs @@ -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 ... diff --git a/src/UglyToad.PdfPig/Geometry/ClipperLibrary/ClipperBase.cs b/src/UglyToad.PdfPig/Geometry/ClipperLibrary/ClipperBase.cs index 8b97ae6c3..da00825ee 100644 --- a/src/UglyToad.PdfPig/Geometry/ClipperLibrary/ClipperBase.cs +++ b/src/UglyToad.PdfPig/Geometry/ClipperLibrary/ClipperBase.cs @@ -77,8 +77,6 @@ namespace UglyToad.PdfPig.Geometry.ClipperLibrary { - using System.Collections.Generic; - internal class ClipperBase { internal const double Horizontal = -3.4E+38; diff --git a/src/UglyToad.PdfPig/Geometry/ClipperLibrary/ClipperException.cs b/src/UglyToad.PdfPig/Geometry/ClipperLibrary/ClipperException.cs index 3a19210d0..0510cd86f 100644 --- a/src/UglyToad.PdfPig/Geometry/ClipperLibrary/ClipperException.cs +++ b/src/UglyToad.PdfPig/Geometry/ClipperLibrary/ClipperException.cs @@ -71,8 +71,6 @@ *******************************************************************************/ namespace UglyToad.PdfPig.Geometry.ClipperLibrary { - using System; - internal class ClipperException : Exception { public ClipperException(string description) : base(description) diff --git a/src/UglyToad.PdfPig/Geometry/ClipperLibrary/ClipperIntersectNode.cs b/src/UglyToad.PdfPig/Geometry/ClipperLibrary/ClipperIntersectNode.cs index 0f83046dd..b83a59908 100644 --- a/src/UglyToad.PdfPig/Geometry/ClipperLibrary/ClipperIntersectNode.cs +++ b/src/UglyToad.PdfPig/Geometry/ClipperLibrary/ClipperIntersectNode.cs @@ -74,8 +74,6 @@ namespace UglyToad.PdfPig.Geometry.ClipperLibrary { - using System.Collections.Generic; - internal class ClipperIntersectNode { internal ClipperTEdge Edge1; diff --git a/src/UglyToad.PdfPig/Geometry/ClipperLibrary/ClipperOffset.cs b/src/UglyToad.PdfPig/Geometry/ClipperLibrary/ClipperOffset.cs index cdecca567..204145aa9 100644 --- a/src/UglyToad.PdfPig/Geometry/ClipperLibrary/ClipperOffset.cs +++ b/src/UglyToad.PdfPig/Geometry/ClipperLibrary/ClipperOffset.cs @@ -71,9 +71,6 @@ *******************************************************************************/ namespace UglyToad.PdfPig.Geometry.ClipperLibrary { - using System; - using System.Collections.Generic; - internal class ClipperOffset { private const double DefArcTolerance = 0.25; diff --git a/src/UglyToad.PdfPig/Geometry/ClipperLibrary/ClipperPolyNode.cs b/src/UglyToad.PdfPig/Geometry/ClipperLibrary/ClipperPolyNode.cs index 2745937ee..cd8e339b7 100644 --- a/src/UglyToad.PdfPig/Geometry/ClipperLibrary/ClipperPolyNode.cs +++ b/src/UglyToad.PdfPig/Geometry/ClipperLibrary/ClipperPolyNode.cs @@ -74,8 +74,6 @@ namespace UglyToad.PdfPig.Geometry.ClipperLibrary { - using System.Collections.Generic; - internal class ClipperPolyTree : ClipperPolyNode { internal List AllPolys = new List(); diff --git a/src/UglyToad.PdfPig/Geometry/ClippingExtensions.cs b/src/UglyToad.PdfPig/Geometry/ClippingExtensions.cs index 957471c48..28a894a60 100644 --- a/src/UglyToad.PdfPig/Geometry/ClippingExtensions.cs +++ b/src/UglyToad.PdfPig/Geometry/ClippingExtensions.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Geometry { - using System; - using System.Collections.Generic; using System.Linq; using ClipperLibrary; using Core; diff --git a/src/UglyToad.PdfPig/Geometry/GeometryExtensions.cs b/src/UglyToad.PdfPig/Geometry/GeometryExtensions.cs index b483846ec..1403aa8e9 100644 --- a/src/UglyToad.PdfPig/Geometry/GeometryExtensions.cs +++ b/src/UglyToad.PdfPig/Geometry/GeometryExtensions.cs @@ -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; diff --git a/src/UglyToad.PdfPig/Geometry/PdfVector.cs b/src/UglyToad.PdfPig/Geometry/PdfVector.cs index 9100ef39f..d48f303e9 100644 --- a/src/UglyToad.PdfPig/Geometry/PdfVector.cs +++ b/src/UglyToad.PdfPig/Geometry/PdfVector.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Geometry { - using System; using Core; internal readonly struct PdfVector diff --git a/src/UglyToad.PdfPig/Geometry/UserSpaceUnit.cs b/src/UglyToad.PdfPig/Geometry/UserSpaceUnit.cs index 15a0c2923..5e7a96b8c 100644 --- a/src/UglyToad.PdfPig/Geometry/UserSpaceUnit.cs +++ b/src/UglyToad.PdfPig/Geometry/UserSpaceUnit.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Geometry { - using System; using System.Globalization; /// diff --git a/src/UglyToad.PdfPig/Globals.cs b/src/UglyToad.PdfPig/Globals.cs new file mode 100644 index 000000000..30cd4b7b4 --- /dev/null +++ b/src/UglyToad.PdfPig/Globals.cs @@ -0,0 +1,2 @@ +global using System; +global using System.Collections.Generic; \ No newline at end of file diff --git a/src/UglyToad.PdfPig/Graphics/BaseStreamProcessor.cs b/src/UglyToad.PdfPig/Graphics/BaseStreamProcessor.cs index 45c66218f..a9ef9ef32 100644 --- a/src/UglyToad.PdfPig/Graphics/BaseStreamProcessor.cs +++ b/src/UglyToad.PdfPig/Graphics/BaseStreamProcessor.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Graphics { - using System; - using System.Collections.Generic; using System.Diagnostics; using System.Linq; diff --git a/src/UglyToad.PdfPig/Graphics/ColorSpaceContext.cs b/src/UglyToad.PdfPig/Graphics/ColorSpaceContext.cs index 7c8ee22b5..5d6fb83e4 100644 --- a/src/UglyToad.PdfPig/Graphics/ColorSpaceContext.cs +++ b/src/UglyToad.PdfPig/Graphics/ColorSpaceContext.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Graphics { - using System; - using System.Collections.Generic; using System.Linq; using Colors; using Content; diff --git a/src/UglyToad.PdfPig/Graphics/Colors/CIEBasedColorSpaceTransformer.cs b/src/UglyToad.PdfPig/Graphics/Colors/CIEBasedColorSpaceTransformer.cs index e3c91647f..243f36312 100644 --- a/src/UglyToad.PdfPig/Graphics/Colors/CIEBasedColorSpaceTransformer.cs +++ b/src/UglyToad.PdfPig/Graphics/Colors/CIEBasedColorSpaceTransformer.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Graphics.Colors { - using System; using UglyToad.PdfPig.Util; /// diff --git a/src/UglyToad.PdfPig/Graphics/Colors/CMYKColor.cs b/src/UglyToad.PdfPig/Graphics/Colors/CMYKColor.cs index 12045f4d8..acc18e5da 100644 --- a/src/UglyToad.PdfPig/Graphics/Colors/CMYKColor.cs +++ b/src/UglyToad.PdfPig/Graphics/Colors/CMYKColor.cs @@ -1,7 +1,4 @@ -using System; -using System.Collections.Generic; - -namespace UglyToad.PdfPig.Graphics.Colors +namespace UglyToad.PdfPig.Graphics.Colors { /// /// A color with cyan, magenta, yellow and black (K) components. diff --git a/src/UglyToad.PdfPig/Graphics/Colors/ColorSpaceDetails.cs b/src/UglyToad.PdfPig/Graphics/Colors/ColorSpaceDetails.cs index e034db7a9..afc52754e 100644 --- a/src/UglyToad.PdfPig/Graphics/Colors/ColorSpaceDetails.cs +++ b/src/UglyToad.PdfPig/Graphics/Colors/ColorSpaceDetails.cs @@ -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; diff --git a/src/UglyToad.PdfPig/Graphics/Colors/ColorSpaceExtensions.cs b/src/UglyToad.PdfPig/Graphics/Colors/ColorSpaceExtensions.cs index c59ecf4f8..3414a2dc3 100644 --- a/src/UglyToad.PdfPig/Graphics/Colors/ColorSpaceExtensions.cs +++ b/src/UglyToad.PdfPig/Graphics/Colors/ColorSpaceExtensions.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Graphics.Colors { - using System; using Tokens; /// diff --git a/src/UglyToad.PdfPig/Graphics/Colors/GrayColor.cs b/src/UglyToad.PdfPig/Graphics/Colors/GrayColor.cs index 6bce44b76..5adecc31c 100644 --- a/src/UglyToad.PdfPig/Graphics/Colors/GrayColor.cs +++ b/src/UglyToad.PdfPig/Graphics/Colors/GrayColor.cs @@ -1,7 +1,4 @@ -using System; -using System.Collections.Generic; - -namespace UglyToad.PdfPig.Graphics.Colors +namespace UglyToad.PdfPig.Graphics.Colors { /// /// A grayscale color with a single gray component. diff --git a/src/UglyToad.PdfPig/Graphics/Colors/PatternColor.cs b/src/UglyToad.PdfPig/Graphics/Colors/PatternColor.cs index 0d01b14ac..00d578d88 100644 --- a/src/UglyToad.PdfPig/Graphics/Colors/PatternColor.cs +++ b/src/UglyToad.PdfPig/Graphics/Colors/PatternColor.cs @@ -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; diff --git a/src/UglyToad.PdfPig/Graphics/Colors/RGBColor.cs b/src/UglyToad.PdfPig/Graphics/Colors/RGBColor.cs index 2f3c2f9a9..4e5311172 100644 --- a/src/UglyToad.PdfPig/Graphics/Colors/RGBColor.cs +++ b/src/UglyToad.PdfPig/Graphics/Colors/RGBColor.cs @@ -1,8 +1,5 @@ namespace UglyToad.PdfPig.Graphics.Colors { - using System; - using System.Collections.Generic; - /// /// A color with red, green and blue components. /// diff --git a/src/UglyToad.PdfPig/Graphics/Colors/RGBWorkingSpace.cs b/src/UglyToad.PdfPig/Graphics/Colors/RGBWorkingSpace.cs index f05dcff37..9318179ae 100644 --- a/src/UglyToad.PdfPig/Graphics/Colors/RGBWorkingSpace.cs +++ b/src/UglyToad.PdfPig/Graphics/Colors/RGBWorkingSpace.cs @@ -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 { diff --git a/src/UglyToad.PdfPig/Graphics/ContentStreamProcessor.cs b/src/UglyToad.PdfPig/Graphics/ContentStreamProcessor.cs index db4b05ac1..b8a675219 100644 --- a/src/UglyToad.PdfPig/Graphics/ContentStreamProcessor.cs +++ b/src/UglyToad.PdfPig/Graphics/ContentStreamProcessor.cs @@ -2,8 +2,6 @@ namespace UglyToad.PdfPig.Graphics { - using System; - using System.Collections.Generic; using Colors; using Content; using Filters; diff --git a/src/UglyToad.PdfPig/Graphics/Core/LineDashPattern.cs b/src/UglyToad.PdfPig/Graphics/Core/LineDashPattern.cs index 02c43829e..98146c47d 100644 --- a/src/UglyToad.PdfPig/Graphics/Core/LineDashPattern.cs +++ b/src/UglyToad.PdfPig/Graphics/Core/LineDashPattern.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Graphics.Core { - using System; - using System.Collections.Generic; using System.Linq; /// diff --git a/src/UglyToad.PdfPig/Graphics/IColorSpaceContext.cs b/src/UglyToad.PdfPig/Graphics/IColorSpaceContext.cs index 80e82fffd..5e8d88b7f 100644 --- a/src/UglyToad.PdfPig/Graphics/IColorSpaceContext.cs +++ b/src/UglyToad.PdfPig/Graphics/IColorSpaceContext.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Graphics { - using System.Collections.Generic; using Colors; using Tokens; using UglyToad.PdfPig.Core; diff --git a/src/UglyToad.PdfPig/Graphics/IGraphicsStateOperationFactory.cs b/src/UglyToad.PdfPig/Graphics/IGraphicsStateOperationFactory.cs index 72c092e7d..263fa2fbd 100644 --- a/src/UglyToad.PdfPig/Graphics/IGraphicsStateOperationFactory.cs +++ b/src/UglyToad.PdfPig/Graphics/IGraphicsStateOperationFactory.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Graphics { - using System.Collections.Generic; using Operations; using Tokens; diff --git a/src/UglyToad.PdfPig/Graphics/IOperationContext.cs b/src/UglyToad.PdfPig/Graphics/IOperationContext.cs index 3e23ed837..2aa704d51 100644 --- a/src/UglyToad.PdfPig/Graphics/IOperationContext.cs +++ b/src/UglyToad.PdfPig/Graphics/IOperationContext.cs @@ -1,8 +1,6 @@ namespace UglyToad.PdfPig.Graphics { using PdfPig.Core; - using System; - using System.Collections.Generic; using Tokens; using UglyToad.PdfPig.Graphics.Core; diff --git a/src/UglyToad.PdfPig/Graphics/InlineImageBuilder.cs b/src/UglyToad.PdfPig/Graphics/InlineImageBuilder.cs index 1f89ac523..c99361677 100644 --- a/src/UglyToad.PdfPig/Graphics/InlineImageBuilder.cs +++ b/src/UglyToad.PdfPig/Graphics/InlineImageBuilder.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Graphics { - using System; - using System.Collections.Generic; using System.Linq; using Content; using Core; diff --git a/src/UglyToad.PdfPig/Graphics/MarkedContentStack.cs b/src/UglyToad.PdfPig/Graphics/MarkedContentStack.cs index 64702afec..ab32b3573 100644 --- a/src/UglyToad.PdfPig/Graphics/MarkedContentStack.cs +++ b/src/UglyToad.PdfPig/Graphics/MarkedContentStack.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Graphics { - using System; - using System.Collections.Generic; using Content; using Filters; using PdfPig.Core; diff --git a/src/UglyToad.PdfPig/Graphics/OperationContextHelper.cs b/src/UglyToad.PdfPig/Graphics/OperationContextHelper.cs index 7dd660f1b..1149f7c64 100644 --- a/src/UglyToad.PdfPig/Graphics/OperationContextHelper.cs +++ b/src/UglyToad.PdfPig/Graphics/OperationContextHelper.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Graphics { - using System; using System.Linq; using Content; using Geometry; diff --git a/src/UglyToad.PdfPig/Graphics/Operations/General/SetColorRenderingIntent.cs b/src/UglyToad.PdfPig/Graphics/Operations/General/SetColorRenderingIntent.cs index d5e1c5abf..6b8c0ffe8 100644 --- a/src/UglyToad.PdfPig/Graphics/Operations/General/SetColorRenderingIntent.cs +++ b/src/UglyToad.PdfPig/Graphics/Operations/General/SetColorRenderingIntent.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Graphics.Operations.General { - using System; using System.IO; using Tokens; using UglyToad.PdfPig.Graphics.Core; diff --git a/src/UglyToad.PdfPig/Graphics/Operations/General/SetLineCap.cs b/src/UglyToad.PdfPig/Graphics/Operations/General/SetLineCap.cs index 42cda784d..674eff032 100644 --- a/src/UglyToad.PdfPig/Graphics/Operations/General/SetLineCap.cs +++ b/src/UglyToad.PdfPig/Graphics/Operations/General/SetLineCap.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Graphics.Operations.General { - using System; using System.IO; using Core; diff --git a/src/UglyToad.PdfPig/Graphics/Operations/General/SetLineJoin.cs b/src/UglyToad.PdfPig/Graphics/Operations/General/SetLineJoin.cs index 991d2b710..242295509 100644 --- a/src/UglyToad.PdfPig/Graphics/Operations/General/SetLineJoin.cs +++ b/src/UglyToad.PdfPig/Graphics/Operations/General/SetLineJoin.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Graphics.Operations.General { - using System; using System.IO; using Core; diff --git a/src/UglyToad.PdfPig/Graphics/Operations/InlineImages/BeginInlineImageData.cs b/src/UglyToad.PdfPig/Graphics/Operations/InlineImages/BeginInlineImageData.cs index 80490768f..9e464f386 100644 --- a/src/UglyToad.PdfPig/Graphics/Operations/InlineImages/BeginInlineImageData.cs +++ b/src/UglyToad.PdfPig/Graphics/Operations/InlineImages/BeginInlineImageData.cs @@ -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; diff --git a/src/UglyToad.PdfPig/Graphics/Operations/InlineImages/EndInlineImage.cs b/src/UglyToad.PdfPig/Graphics/Operations/InlineImages/EndInlineImage.cs index 1232dd477..277101ca8 100644 --- a/src/UglyToad.PdfPig/Graphics/Operations/InlineImages/EndInlineImage.cs +++ b/src/UglyToad.PdfPig/Graphics/Operations/InlineImages/EndInlineImage.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Graphics.Operations.InlineImages { - using System; - using System.Collections.Generic; using System.IO; /// diff --git a/src/UglyToad.PdfPig/Graphics/Operations/InvokeNamedXObject.cs b/src/UglyToad.PdfPig/Graphics/Operations/InvokeNamedXObject.cs index 5f2549fed..b9cd597bf 100644 --- a/src/UglyToad.PdfPig/Graphics/Operations/InvokeNamedXObject.cs +++ b/src/UglyToad.PdfPig/Graphics/Operations/InvokeNamedXObject.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Graphics.Operations { - using System; using System.IO; using Tokens; diff --git a/src/UglyToad.PdfPig/Graphics/Operations/OperationWriteHelper.cs b/src/UglyToad.PdfPig/Graphics/Operations/OperationWriteHelper.cs index d76dd2043..c20d90617 100644 --- a/src/UglyToad.PdfPig/Graphics/Operations/OperationWriteHelper.cs +++ b/src/UglyToad.PdfPig/Graphics/Operations/OperationWriteHelper.cs @@ -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 diff --git a/src/UglyToad.PdfPig/Graphics/Operations/PaintShading.cs b/src/UglyToad.PdfPig/Graphics/Operations/PaintShading.cs index a1f92a39f..6be64db8a 100644 --- a/src/UglyToad.PdfPig/Graphics/Operations/PaintShading.cs +++ b/src/UglyToad.PdfPig/Graphics/Operations/PaintShading.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Graphics.Operations { - using System; using System.IO; using Tokens; diff --git a/src/UglyToad.PdfPig/Graphics/Operations/SetNonStrokeColor.cs b/src/UglyToad.PdfPig/Graphics/Operations/SetNonStrokeColor.cs index d3f6a1fd2..0cfcee897 100644 --- a/src/UglyToad.PdfPig/Graphics/Operations/SetNonStrokeColor.cs +++ b/src/UglyToad.PdfPig/Graphics/Operations/SetNonStrokeColor.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Graphics.Operations { - using System.Collections.Generic; using System.IO; using System.Linq; diff --git a/src/UglyToad.PdfPig/Graphics/Operations/SetNonStrokeColorAdvanced.cs b/src/UglyToad.PdfPig/Graphics/Operations/SetNonStrokeColorAdvanced.cs index fea19d627..1424dd851 100644 --- a/src/UglyToad.PdfPig/Graphics/Operations/SetNonStrokeColorAdvanced.cs +++ b/src/UglyToad.PdfPig/Graphics/Operations/SetNonStrokeColorAdvanced.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Graphics.Operations { - using System.Collections.Generic; using System.IO; using System.Linq; using Tokens; diff --git a/src/UglyToad.PdfPig/Graphics/Operations/SetNonStrokeColorSpace.cs b/src/UglyToad.PdfPig/Graphics/Operations/SetNonStrokeColorSpace.cs index 3185179df..cdc281bf7 100644 --- a/src/UglyToad.PdfPig/Graphics/Operations/SetNonStrokeColorSpace.cs +++ b/src/UglyToad.PdfPig/Graphics/Operations/SetNonStrokeColorSpace.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Graphics.Operations { - using System; using System.IO; using Tokens; using Writer; diff --git a/src/UglyToad.PdfPig/Graphics/Operations/SetStrokeColor.cs b/src/UglyToad.PdfPig/Graphics/Operations/SetStrokeColor.cs index 4c08af90d..7b9138903 100644 --- a/src/UglyToad.PdfPig/Graphics/Operations/SetStrokeColor.cs +++ b/src/UglyToad.PdfPig/Graphics/Operations/SetStrokeColor.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Graphics.Operations { - using System.Collections.Generic; using System.IO; using System.Linq; diff --git a/src/UglyToad.PdfPig/Graphics/Operations/SetStrokeColorAdvanced.cs b/src/UglyToad.PdfPig/Graphics/Operations/SetStrokeColorAdvanced.cs index 73e7e0d22..a5ae46c33 100644 --- a/src/UglyToad.PdfPig/Graphics/Operations/SetStrokeColorAdvanced.cs +++ b/src/UglyToad.PdfPig/Graphics/Operations/SetStrokeColorAdvanced.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Graphics.Operations { - using System.Collections.Generic; using System.IO; using System.Linq; using Tokens; diff --git a/src/UglyToad.PdfPig/Graphics/Operations/SetStrokeColorSpace.cs b/src/UglyToad.PdfPig/Graphics/Operations/SetStrokeColorSpace.cs index 6fdf5faa0..f72994928 100644 --- a/src/UglyToad.PdfPig/Graphics/Operations/SetStrokeColorSpace.cs +++ b/src/UglyToad.PdfPig/Graphics/Operations/SetStrokeColorSpace.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Graphics.Operations { - using System; using System.IO; using Tokens; using Writer; diff --git a/src/UglyToad.PdfPig/Graphics/Operations/SpecialGraphicsState/ModifyCurrentTransformationMatrix.cs b/src/UglyToad.PdfPig/Graphics/Operations/SpecialGraphicsState/ModifyCurrentTransformationMatrix.cs index c9d188937..a02d17f1d 100644 --- a/src/UglyToad.PdfPig/Graphics/Operations/SpecialGraphicsState/ModifyCurrentTransformationMatrix.cs +++ b/src/UglyToad.PdfPig/Graphics/Operations/SpecialGraphicsState/ModifyCurrentTransformationMatrix.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Graphics.Operations.SpecialGraphicsState { - using System; using System.IO; /// diff --git a/src/UglyToad.PdfPig/Graphics/Operations/SpecialGraphicsState/Pop.cs b/src/UglyToad.PdfPig/Graphics/Operations/SpecialGraphicsState/Pop.cs index ad343f075..ece6b85b8 100644 --- a/src/UglyToad.PdfPig/Graphics/Operations/SpecialGraphicsState/Pop.cs +++ b/src/UglyToad.PdfPig/Graphics/Operations/SpecialGraphicsState/Pop.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Graphics.Operations.SpecialGraphicsState { - using System; using System.IO; /// diff --git a/src/UglyToad.PdfPig/Graphics/Operations/TextPositioning/SetTextMatrix.cs b/src/UglyToad.PdfPig/Graphics/Operations/TextPositioning/SetTextMatrix.cs index 73d9fd12e..9c143da89 100644 --- a/src/UglyToad.PdfPig/Graphics/Operations/TextPositioning/SetTextMatrix.cs +++ b/src/UglyToad.PdfPig/Graphics/Operations/TextPositioning/SetTextMatrix.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Graphics.Operations.TextPositioning { - using System; using System.IO; using PdfPig.Core; diff --git a/src/UglyToad.PdfPig/Graphics/Operations/TextShowing/ShowTextsWithPositioning.cs b/src/UglyToad.PdfPig/Graphics/Operations/TextShowing/ShowTextsWithPositioning.cs index 29499fa4e..50938de6d 100644 --- a/src/UglyToad.PdfPig/Graphics/Operations/TextShowing/ShowTextsWithPositioning.cs +++ b/src/UglyToad.PdfPig/Graphics/Operations/TextShowing/ShowTextsWithPositioning.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Graphics.Operations.TextShowing { - using System; - using System.Collections.Generic; using System.IO; using Tokens; using Writer; diff --git a/src/UglyToad.PdfPig/Graphics/Operations/TextState/SetFontAndSize.cs b/src/UglyToad.PdfPig/Graphics/Operations/TextState/SetFontAndSize.cs index 6837f73d4..678625bf1 100644 --- a/src/UglyToad.PdfPig/Graphics/Operations/TextState/SetFontAndSize.cs +++ b/src/UglyToad.PdfPig/Graphics/Operations/TextState/SetFontAndSize.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Graphics.Operations.TextState { - using System; using System.Globalization; using System.IO; using Tokens; diff --git a/src/UglyToad.PdfPig/Graphics/PdfPath.cs b/src/UglyToad.PdfPig/Graphics/PdfPath.cs index 7d9aa8f5f..0e6aec556 100644 --- a/src/UglyToad.PdfPig/Graphics/PdfPath.cs +++ b/src/UglyToad.PdfPig/Graphics/PdfPath.cs @@ -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; diff --git a/src/UglyToad.PdfPig/Graphics/ReflectionGraphicsStateOperationFactory.cs b/src/UglyToad.PdfPig/Graphics/ReflectionGraphicsStateOperationFactory.cs index 87b06dacd..023294a22 100644 --- a/src/UglyToad.PdfPig/Graphics/ReflectionGraphicsStateOperationFactory.cs +++ b/src/UglyToad.PdfPig/Graphics/ReflectionGraphicsStateOperationFactory.cs @@ -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; diff --git a/src/UglyToad.PdfPig/Graphics/XObjectContentRecord.cs b/src/UglyToad.PdfPig/Graphics/XObjectContentRecord.cs index f7cfa8eee..c43ff3067 100644 --- a/src/UglyToad.PdfPig/Graphics/XObjectContentRecord.cs +++ b/src/UglyToad.PdfPig/Graphics/XObjectContentRecord.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Graphics { - using System; using Colors; using Core; using PdfPig.Core; diff --git a/src/UglyToad.PdfPig/IO/RandomAccessBuffer.cs b/src/UglyToad.PdfPig/IO/RandomAccessBuffer.cs index b6f351b68..7c91ed481 100644 --- a/src/UglyToad.PdfPig/IO/RandomAccessBuffer.cs +++ b/src/UglyToad.PdfPig/IO/RandomAccessBuffer.cs @@ -2,8 +2,6 @@ namespace UglyToad.PdfPig.IO { - using System; - using System.Collections.Generic; using System.IO; internal class RandomAccessBuffer : IDisposable diff --git a/src/UglyToad.PdfPig/IO/StreamWrapper.cs b/src/UglyToad.PdfPig/IO/StreamWrapper.cs index d85395396..2cd892c4f 100644 --- a/src/UglyToad.PdfPig/IO/StreamWrapper.cs +++ b/src/UglyToad.PdfPig/IO/StreamWrapper.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.IO { - using System; using System.IO; internal class StreamWrapper : Stream diff --git a/src/UglyToad.PdfPig/Images/ColorSpaceDetailsByteConverter.cs b/src/UglyToad.PdfPig/Images/ColorSpaceDetailsByteConverter.cs index 55022b9a3..9e4b48873 100644 --- a/src/UglyToad.PdfPig/Images/ColorSpaceDetailsByteConverter.cs +++ b/src/UglyToad.PdfPig/Images/ColorSpaceDetailsByteConverter.cs @@ -2,8 +2,6 @@ { using Content; using Graphics.Colors; - using System; - using System.Linq; /// /// Utility for working with the bytes in s and converting according to their .s diff --git a/src/UglyToad.PdfPig/Images/JpegHandler.cs b/src/UglyToad.PdfPig/Images/JpegHandler.cs index 8e67b3932..d78ad0537 100644 --- a/src/UglyToad.PdfPig/Images/JpegHandler.cs +++ b/src/UglyToad.PdfPig/Images/JpegHandler.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Images { - using System; using System.IO; internal static class JpegHandler diff --git a/src/UglyToad.PdfPig/Images/Png/Adam7.cs b/src/UglyToad.PdfPig/Images/Png/Adam7.cs index 0d4e5d45e..1b8b83719 100644 --- a/src/UglyToad.PdfPig/Images/Png/Adam7.cs +++ b/src/UglyToad.PdfPig/Images/Png/Adam7.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Images.Png { - using System.Collections.Generic; - internal static class Adam7 { /// diff --git a/src/UglyToad.PdfPig/Images/Png/Adler32Checksum.cs b/src/UglyToad.PdfPig/Images/Png/Adler32Checksum.cs index 6e6c6aaf4..218aa33c2 100644 --- a/src/UglyToad.PdfPig/Images/Png/Adler32Checksum.cs +++ b/src/UglyToad.PdfPig/Images/Png/Adler32Checksum.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Images.Png { - using System; - /// /// Used to calculate the Adler-32 checksum used for ZLIB data in accordance with /// RFC 1950: ZLIB Compressed Data Format Specification. diff --git a/src/UglyToad.PdfPig/Images/Png/ChunkHeader.cs b/src/UglyToad.PdfPig/Images/Png/ChunkHeader.cs index 7ccb486c9..2a2c1572b 100644 --- a/src/UglyToad.PdfPig/Images/Png/ChunkHeader.cs +++ b/src/UglyToad.PdfPig/Images/Png/ChunkHeader.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Images.Png { - using System; - /// /// The header for a data chunk in a PNG file. /// diff --git a/src/UglyToad.PdfPig/Images/Png/ColorType.cs b/src/UglyToad.PdfPig/Images/Png/ColorType.cs index 9e0eb5fd3..b3395ac89 100644 --- a/src/UglyToad.PdfPig/Images/Png/ColorType.cs +++ b/src/UglyToad.PdfPig/Images/Png/ColorType.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Images.Png { - using System; - /// /// Describes the interpretation of the image data. /// diff --git a/src/UglyToad.PdfPig/Images/Png/Crc32.cs b/src/UglyToad.PdfPig/Images/Png/Crc32.cs index 04055bebb..0a660dd8c 100644 --- a/src/UglyToad.PdfPig/Images/Png/Crc32.cs +++ b/src/UglyToad.PdfPig/Images/Png/Crc32.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Images.Png { - using System; - /// /// 32-bit Cyclic Redundancy Code used by the PNG for checking the data is intact. /// diff --git a/src/UglyToad.PdfPig/Images/Png/Decoder.cs b/src/UglyToad.PdfPig/Images/Png/Decoder.cs index 202361011..31f44dcec 100644 --- a/src/UglyToad.PdfPig/Images/Png/Decoder.cs +++ b/src/UglyToad.PdfPig/Images/Png/Decoder.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Images.Png { - using System; - internal static class Decoder { public static (byte bytesPerPixel, byte samplesPerPixel) GetBytesAndSamplesPerPixel(ImageHeader header) diff --git a/src/UglyToad.PdfPig/Images/Png/HeaderValidationResult.cs b/src/UglyToad.PdfPig/Images/Png/HeaderValidationResult.cs index e4c12230f..08ac3a429 100644 --- a/src/UglyToad.PdfPig/Images/Png/HeaderValidationResult.cs +++ b/src/UglyToad.PdfPig/Images/Png/HeaderValidationResult.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Images.Png { - using System; - internal readonly struct HeaderValidationResult { public static ReadOnlySpan ExpectedHeader => [ diff --git a/src/UglyToad.PdfPig/Images/Png/ImageHeader.cs b/src/UglyToad.PdfPig/Images/Png/ImageHeader.cs index 94d56482d..0742a49cb 100644 --- a/src/UglyToad.PdfPig/Images/Png/ImageHeader.cs +++ b/src/UglyToad.PdfPig/Images/Png/ImageHeader.cs @@ -1,8 +1,5 @@ namespace UglyToad.PdfPig.Images.Png { - using System; - using System.Collections.Generic; - /// /// The high level information about the image. /// diff --git a/src/UglyToad.PdfPig/Images/Png/Palette.cs b/src/UglyToad.PdfPig/Images/Png/Palette.cs index d47f33bbd..1522d9278 100644 --- a/src/UglyToad.PdfPig/Images/Png/Palette.cs +++ b/src/UglyToad.PdfPig/Images/Png/Palette.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Images.Png { - using System; - internal sealed class Palette { public bool HasAlphaValues { get; private set; } diff --git a/src/UglyToad.PdfPig/Images/Png/Pixel.cs b/src/UglyToad.PdfPig/Images/Png/Pixel.cs index db4cc17a0..084ed7b41 100644 --- a/src/UglyToad.PdfPig/Images/Png/Pixel.cs +++ b/src/UglyToad.PdfPig/Images/Png/Pixel.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Images.Png { - using System; - /// /// A pixel in a image. /// diff --git a/src/UglyToad.PdfPig/Images/Png/Png.cs b/src/UglyToad.PdfPig/Images/Png/Png.cs index d64850e2e..a983c822b 100644 --- a/src/UglyToad.PdfPig/Images/Png/Png.cs +++ b/src/UglyToad.PdfPig/Images/Png/Png.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Images.Png { - using System; using System.IO; /// diff --git a/src/UglyToad.PdfPig/Images/Png/PngOpener.cs b/src/UglyToad.PdfPig/Images/Png/PngOpener.cs index 8cce79d6c..a2d737cee 100644 --- a/src/UglyToad.PdfPig/Images/Png/PngOpener.cs +++ b/src/UglyToad.PdfPig/Images/Png/PngOpener.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Images.Png { - using System; using System.Buffers.Binary; using System.IO; using System.IO.Compression; diff --git a/src/UglyToad.PdfPig/Images/Png/PngStreamWriteHelper.cs b/src/UglyToad.PdfPig/Images/Png/PngStreamWriteHelper.cs index f4e819aa1..ab0533c87 100644 --- a/src/UglyToad.PdfPig/Images/Png/PngStreamWriteHelper.cs +++ b/src/UglyToad.PdfPig/Images/Png/PngStreamWriteHelper.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Images.Png { - using System; using System.Buffers.Binary; using System.IO; diff --git a/src/UglyToad.PdfPig/Images/Png/RawPngData.cs b/src/UglyToad.PdfPig/Images/Png/RawPngData.cs index 18318f8ce..7a2d673c7 100644 --- a/src/UglyToad.PdfPig/Images/Png/RawPngData.cs +++ b/src/UglyToad.PdfPig/Images/Png/RawPngData.cs @@ -1,8 +1,6 @@ namespace UglyToad.PdfPig.Images.Png { - using System; - -/// + /// /// Provides convenience methods for indexing into a raw byte array to extract pixel values. /// internal sealed class RawPngData diff --git a/src/UglyToad.PdfPig/Images/Png/StreamHelper.cs b/src/UglyToad.PdfPig/Images/Png/StreamHelper.cs index f4dbea15f..1bbff8a5e 100644 --- a/src/UglyToad.PdfPig/Images/Png/StreamHelper.cs +++ b/src/UglyToad.PdfPig/Images/Png/StreamHelper.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Images.Png { - using System; using System.Buffers.Binary; using System.IO; diff --git a/src/UglyToad.PdfPig/Logging/ILog.cs b/src/UglyToad.PdfPig/Logging/ILog.cs index ef5ad8fb4..01399cc1e 100644 --- a/src/UglyToad.PdfPig/Logging/ILog.cs +++ b/src/UglyToad.PdfPig/Logging/ILog.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Logging { - using System; - /// /// Logs internal messages from the PDF parsing process. Consumers can provide their own implementation /// in the to intercept log messages. diff --git a/src/UglyToad.PdfPig/Outline/BookmarkNode.cs b/src/UglyToad.PdfPig/Outline/BookmarkNode.cs index 53753b820..060a109ac 100644 --- a/src/UglyToad.PdfPig/Outline/BookmarkNode.cs +++ b/src/UglyToad.PdfPig/Outline/BookmarkNode.cs @@ -1,8 +1,5 @@ namespace UglyToad.PdfPig.Outline { - using System; - using System.Collections.Generic; - /// /// A node in the (also known as outlines) of a PDF document. /// diff --git a/src/UglyToad.PdfPig/Outline/Bookmarks.cs b/src/UglyToad.PdfPig/Outline/Bookmarks.cs index 623c5da9e..c5cfbec1e 100644 --- a/src/UglyToad.PdfPig/Outline/Bookmarks.cs +++ b/src/UglyToad.PdfPig/Outline/Bookmarks.cs @@ -1,6 +1,4 @@ -using System.Collections.Generic; - -namespace UglyToad.PdfPig.Outline +namespace UglyToad.PdfPig.Outline { /// /// The bookmarks in a PDF document. diff --git a/src/UglyToad.PdfPig/Outline/BookmarksProvider.cs b/src/UglyToad.PdfPig/Outline/BookmarksProvider.cs index 9eb96c4e4..7c3ab67f5 100644 --- a/src/UglyToad.PdfPig/Outline/BookmarksProvider.cs +++ b/src/UglyToad.PdfPig/Outline/BookmarksProvider.cs @@ -5,7 +5,6 @@ using Destinations; using Logging; using Parser.Parts; - using System.Collections.Generic; using Core; using Tokenization.Scanner; using Tokens; diff --git a/src/UglyToad.PdfPig/Outline/Destinations/NamedDestinations.cs b/src/UglyToad.PdfPig/Outline/Destinations/NamedDestinations.cs index 0837e3889..fdda90537 100644 --- a/src/UglyToad.PdfPig/Outline/Destinations/NamedDestinations.cs +++ b/src/UglyToad.PdfPig/Outline/Destinations/NamedDestinations.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Outline.Destinations { - using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using Content; using Logging; diff --git a/src/UglyToad.PdfPig/Outline/Destinations/NamedDestinationsProvider.cs b/src/UglyToad.PdfPig/Outline/Destinations/NamedDestinationsProvider.cs index 9fab251d9..b4f1b248d 100644 --- a/src/UglyToad.PdfPig/Outline/Destinations/NamedDestinationsProvider.cs +++ b/src/UglyToad.PdfPig/Outline/Destinations/NamedDestinationsProvider.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Outline.Destinations { - using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using Content; using Logging; diff --git a/src/UglyToad.PdfPig/Outline/DocumentBookmarkNode.cs b/src/UglyToad.PdfPig/Outline/DocumentBookmarkNode.cs index 7cb9e6a24..39a554725 100644 --- a/src/UglyToad.PdfPig/Outline/DocumentBookmarkNode.cs +++ b/src/UglyToad.PdfPig/Outline/DocumentBookmarkNode.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Outline { - using System.Collections.Generic; using Destinations; /// diff --git a/src/UglyToad.PdfPig/Outline/EmbeddedBookmarkNode.cs b/src/UglyToad.PdfPig/Outline/EmbeddedBookmarkNode.cs index 7b2e86286..45b37b240 100644 --- a/src/UglyToad.PdfPig/Outline/EmbeddedBookmarkNode.cs +++ b/src/UglyToad.PdfPig/Outline/EmbeddedBookmarkNode.cs @@ -1,8 +1,6 @@ namespace UglyToad.PdfPig.Outline { using Destinations; - using System; - using System.Collections.Generic; /// /// diff --git a/src/UglyToad.PdfPig/Outline/ExternalBookmarkNode.cs b/src/UglyToad.PdfPig/Outline/ExternalBookmarkNode.cs index 3e98c2d5e..e3c266452 100644 --- a/src/UglyToad.PdfPig/Outline/ExternalBookmarkNode.cs +++ b/src/UglyToad.PdfPig/Outline/ExternalBookmarkNode.cs @@ -1,8 +1,6 @@ namespace UglyToad.PdfPig.Outline { using Destinations; - using System; - using System.Collections.Generic; /// /// diff --git a/src/UglyToad.PdfPig/Outline/UriBookmarkNode.cs b/src/UglyToad.PdfPig/Outline/UriBookmarkNode.cs index 11248cdf0..971d733b8 100644 --- a/src/UglyToad.PdfPig/Outline/UriBookmarkNode.cs +++ b/src/UglyToad.PdfPig/Outline/UriBookmarkNode.cs @@ -1,8 +1,5 @@ namespace UglyToad.PdfPig.Outline { - using System; - using System.Collections.Generic; - /// /// /// A node in the of a PDF document which corresponds diff --git a/src/UglyToad.PdfPig/Parser/CatalogFactory.cs b/src/UglyToad.PdfPig/Parser/CatalogFactory.cs index 8b2a35165..60efdc3c5 100644 --- a/src/UglyToad.PdfPig/Parser/CatalogFactory.cs +++ b/src/UglyToad.PdfPig/Parser/CatalogFactory.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Parser { - using System; using Content; using Core; using Logging; diff --git a/src/UglyToad.PdfPig/Parser/FileStructure/CrossReferenceObjectOffsetValidator.cs b/src/UglyToad.PdfPig/Parser/FileStructure/CrossReferenceObjectOffsetValidator.cs index 54eea31d0..8e7f4549f 100644 --- a/src/UglyToad.PdfPig/Parser/FileStructure/CrossReferenceObjectOffsetValidator.cs +++ b/src/UglyToad.PdfPig/Parser/FileStructure/CrossReferenceObjectOffsetValidator.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Parser.FileStructure { - using System; - using System.Collections.Generic; using Core; using CrossReference; using Logging; diff --git a/src/UglyToad.PdfPig/Parser/FileStructure/CrossReferenceParser.cs b/src/UglyToad.PdfPig/Parser/FileStructure/CrossReferenceParser.cs index 8541b53a4..1b2e105d4 100644 --- a/src/UglyToad.PdfPig/Parser/FileStructure/CrossReferenceParser.cs +++ b/src/UglyToad.PdfPig/Parser/FileStructure/CrossReferenceParser.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Parser.FileStructure { - using System; - using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using Core; using CrossReference; diff --git a/src/UglyToad.PdfPig/Parser/FileStructure/CrossReferenceTableParser.cs b/src/UglyToad.PdfPig/Parser/FileStructure/CrossReferenceTableParser.cs index 2f926880a..6c46e1c5d 100644 --- a/src/UglyToad.PdfPig/Parser/FileStructure/CrossReferenceTableParser.cs +++ b/src/UglyToad.PdfPig/Parser/FileStructure/CrossReferenceTableParser.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Parser.FileStructure { - using System; using System.Linq; using CrossReference; using Core; diff --git a/src/UglyToad.PdfPig/Parser/FileStructure/FileHeaderParser.cs b/src/UglyToad.PdfPig/Parser/FileStructure/FileHeaderParser.cs index 6b2ccb75d..24c96a526 100644 --- a/src/UglyToad.PdfPig/Parser/FileStructure/FileHeaderParser.cs +++ b/src/UglyToad.PdfPig/Parser/FileStructure/FileHeaderParser.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Parser.FileStructure { - using System; using System.Diagnostics.CodeAnalysis; using System.Globalization; using Content; diff --git a/src/UglyToad.PdfPig/Parser/FileStructure/FileTrailerParser.cs b/src/UglyToad.PdfPig/Parser/FileStructure/FileTrailerParser.cs index 761f9af96..0dd93514d 100644 --- a/src/UglyToad.PdfPig/Parser/FileStructure/FileTrailerParser.cs +++ b/src/UglyToad.PdfPig/Parser/FileStructure/FileTrailerParser.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Parser.FileStructure { - using System; - using System.Collections.Generic; using Core; using Tokenization.Scanner; using Tokens; diff --git a/src/UglyToad.PdfPig/Parser/FileStructure/XrefOffsetValidator.cs b/src/UglyToad.PdfPig/Parser/FileStructure/XrefOffsetValidator.cs index bd10b66cd..15b17e1a0 100644 --- a/src/UglyToad.PdfPig/Parser/FileStructure/XrefOffsetValidator.cs +++ b/src/UglyToad.PdfPig/Parser/FileStructure/XrefOffsetValidator.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Parser.FileStructure { - using System; - using System.Collections.Generic; using Core; using Logging; using Tokenization.Scanner; diff --git a/src/UglyToad.PdfPig/Parser/IPageContentParser.cs b/src/UglyToad.PdfPig/Parser/IPageContentParser.cs index 51db0f612..0466ef30e 100644 --- a/src/UglyToad.PdfPig/Parser/IPageContentParser.cs +++ b/src/UglyToad.PdfPig/Parser/IPageContentParser.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Parser { - using System.Collections.Generic; using Core; using Graphics.Operations; using Logging; diff --git a/src/UglyToad.PdfPig/Parser/PageContentParser.cs b/src/UglyToad.PdfPig/Parser/PageContentParser.cs index b518e6302..6a46fd57e 100644 --- a/src/UglyToad.PdfPig/Parser/PageContentParser.cs +++ b/src/UglyToad.PdfPig/Parser/PageContentParser.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Parser { - using System; - using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using Core; using Graphics; diff --git a/src/UglyToad.PdfPig/Parser/PageFactory.cs b/src/UglyToad.PdfPig/Parser/PageFactory.cs index 473c76a3f..0032b1d23 100644 --- a/src/UglyToad.PdfPig/Parser/PageFactory.cs +++ b/src/UglyToad.PdfPig/Parser/PageFactory.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Parser { - using System; - using System.Collections.Generic; using Annotations; using Content; using Core; diff --git a/src/UglyToad.PdfPig/Parser/ParsingCachingProviders.cs b/src/UglyToad.PdfPig/Parser/ParsingCachingProviders.cs index 420cb2a5f..c94b06c59 100644 --- a/src/UglyToad.PdfPig/Parser/ParsingCachingProviders.cs +++ b/src/UglyToad.PdfPig/Parser/ParsingCachingProviders.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Parser { - using System; using Content; /// diff --git a/src/UglyToad.PdfPig/Parser/Parts/BruteForceSearcher.cs b/src/UglyToad.PdfPig/Parser/Parts/BruteForceSearcher.cs index c767a74dd..39b0f6f95 100644 --- a/src/UglyToad.PdfPig/Parser/Parts/BruteForceSearcher.cs +++ b/src/UglyToad.PdfPig/Parser/Parts/BruteForceSearcher.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Parser.Parts { - using System; - using System.Collections.Generic; using System.Globalization; using System.Text; using Core; diff --git a/src/UglyToad.PdfPig/Parser/Parts/CrossReference/CrossReferenceStreamFieldSize.cs b/src/UglyToad.PdfPig/Parser/Parts/CrossReference/CrossReferenceStreamFieldSize.cs index dc698eed0..5f75d3f18 100644 --- a/src/UglyToad.PdfPig/Parser/Parts/CrossReference/CrossReferenceStreamFieldSize.cs +++ b/src/UglyToad.PdfPig/Parser/Parts/CrossReference/CrossReferenceStreamFieldSize.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Parser.Parts.CrossReference { - using System; using Core; using Tokens; using Util; diff --git a/src/UglyToad.PdfPig/Parser/Parts/CrossReference/CrossReferenceStreamParser.cs b/src/UglyToad.PdfPig/Parser/Parts/CrossReference/CrossReferenceStreamParser.cs index 19ff452f8..9bd9d3bfc 100644 --- a/src/UglyToad.PdfPig/Parser/Parts/CrossReference/CrossReferenceStreamParser.cs +++ b/src/UglyToad.PdfPig/Parser/Parts/CrossReference/CrossReferenceStreamParser.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Parser.Parts.CrossReference { - using System.Collections.Generic; using Core; using Filters; using PdfPig.CrossReference; diff --git a/src/UglyToad.PdfPig/Parser/Parts/CrossReference/TableSubsectionDefinition.cs b/src/UglyToad.PdfPig/Parser/Parts/CrossReference/TableSubsectionDefinition.cs index 93d0dcbd2..5b03aa0c4 100644 --- a/src/UglyToad.PdfPig/Parser/Parts/CrossReference/TableSubsectionDefinition.cs +++ b/src/UglyToad.PdfPig/Parser/Parts/CrossReference/TableSubsectionDefinition.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Parser.Parts.CrossReference { - using System; using System.Globalization; using Core; using Logging; diff --git a/src/UglyToad.PdfPig/Parser/Parts/NameTreeParser.cs b/src/UglyToad.PdfPig/Parser/Parts/NameTreeParser.cs index 8f338faef..97e156609 100644 --- a/src/UglyToad.PdfPig/Parser/Parts/NameTreeParser.cs +++ b/src/UglyToad.PdfPig/Parser/Parts/NameTreeParser.cs @@ -2,8 +2,6 @@ namespace UglyToad.PdfPig.Parser.Parts { - using System; - using System.Collections.Generic; using Tokenization.Scanner; using Tokens; diff --git a/src/UglyToad.PdfPig/Parser/Parts/ObjectHelper.cs b/src/UglyToad.PdfPig/Parser/Parts/ObjectHelper.cs index 5fc5b9ada..97524aac3 100644 --- a/src/UglyToad.PdfPig/Parser/Parts/ObjectHelper.cs +++ b/src/UglyToad.PdfPig/Parser/Parts/ObjectHelper.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Parser.Parts { - using System; using Core; internal static class ObjectHelper diff --git a/src/UglyToad.PdfPig/Parser/PdfDocumentFactory.cs b/src/UglyToad.PdfPig/Parser/PdfDocumentFactory.cs index 7e5d6ca1d..af1948e0c 100644 --- a/src/UglyToad.PdfPig/Parser/PdfDocumentFactory.cs +++ b/src/UglyToad.PdfPig/Parser/PdfDocumentFactory.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Parser { - using System; - using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.IO; using System.Linq; diff --git a/src/UglyToad.PdfPig/ParsingOptions.cs b/src/UglyToad.PdfPig/ParsingOptions.cs index d509bb00c..e23e0a084 100644 --- a/src/UglyToad.PdfPig/ParsingOptions.cs +++ b/src/UglyToad.PdfPig/ParsingOptions.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig { - using System.Collections.Generic; using Logging; /// diff --git a/src/UglyToad.PdfPig/PdfDocument.cs b/src/UglyToad.PdfPig/PdfDocument.cs index 0ecab4e2d..586e2c90d 100644 --- a/src/UglyToad.PdfPig/PdfDocument.cs +++ b/src/UglyToad.PdfPig/PdfDocument.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig { - using System; - using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.IO; using AcroForms; diff --git a/src/UglyToad.PdfPig/PdfExtensions.cs b/src/UglyToad.PdfPig/PdfExtensions.cs index 303c39907..8fcd99490 100644 --- a/src/UglyToad.PdfPig/PdfExtensions.cs +++ b/src/UglyToad.PdfPig/PdfExtensions.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig { - using System; - using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using Core; using Filters; diff --git a/src/UglyToad.PdfPig/PdfFonts/CharStringStack.cs b/src/UglyToad.PdfPig/PdfFonts/CharStringStack.cs index 3bd579bab..2e9b399d8 100644 --- a/src/UglyToad.PdfPig/PdfFonts/CharStringStack.cs +++ b/src/UglyToad.PdfPig/PdfFonts/CharStringStack.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.PdfFonts { - using System; - using System.Collections.Generic; using System.Globalization; using System.Linq; diff --git a/src/UglyToad.PdfPig/PdfFonts/CidFonts/CharacterIdentifierToGlyphIndexMap.cs b/src/UglyToad.PdfPig/PdfFonts/CidFonts/CharacterIdentifierToGlyphIndexMap.cs index 7cefecbfc..aeb1ee48b 100644 --- a/src/UglyToad.PdfPig/PdfFonts/CidFonts/CharacterIdentifierToGlyphIndexMap.cs +++ b/src/UglyToad.PdfPig/PdfFonts/CidFonts/CharacterIdentifierToGlyphIndexMap.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.PdfFonts.CidFonts { - using System; - /// /// 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. diff --git a/src/UglyToad.PdfPig/PdfFonts/CidFonts/ICidFont.cs b/src/UglyToad.PdfPig/PdfFonts/CidFonts/ICidFont.cs index 509c8b3d8..a7ef7aeb3 100644 --- a/src/UglyToad.PdfPig/PdfFonts/CidFonts/ICidFont.cs +++ b/src/UglyToad.PdfPig/PdfFonts/CidFonts/ICidFont.cs @@ -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; diff --git a/src/UglyToad.PdfPig/PdfFonts/CidFonts/ICidFontProgram.cs b/src/UglyToad.PdfPig/PdfFonts/CidFonts/ICidFontProgram.cs index 2638e92b1..274646692 100644 --- a/src/UglyToad.PdfPig/PdfFonts/CidFonts/ICidFontProgram.cs +++ b/src/UglyToad.PdfPig/PdfFonts/CidFonts/ICidFontProgram.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.PdfFonts.CidFonts { - using System; - using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using Core; diff --git a/src/UglyToad.PdfPig/PdfFonts/CidFonts/PdfCidCompactFontFormatFont.cs b/src/UglyToad.PdfPig/PdfFonts/CidFonts/PdfCidCompactFontFormatFont.cs index 1ab9c75f3..6123249ba 100644 --- a/src/UglyToad.PdfPig/PdfFonts/CidFonts/PdfCidCompactFontFormatFont.cs +++ b/src/UglyToad.PdfPig/PdfFonts/CidFonts/PdfCidCompactFontFormatFont.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.PdfFonts.CidFonts { - using System; - using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using Core; using Fonts; diff --git a/src/UglyToad.PdfPig/PdfFonts/CidFonts/PdfCidTrueTypeFont.cs b/src/UglyToad.PdfPig/PdfFonts/CidFonts/PdfCidTrueTypeFont.cs index 12c59deb5..2b3d4e79f 100644 --- a/src/UglyToad.PdfPig/PdfFonts/CidFonts/PdfCidTrueTypeFont.cs +++ b/src/UglyToad.PdfPig/PdfFonts/CidFonts/PdfCidTrueTypeFont.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.PdfFonts.CidFonts { - using System; - using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using Core; using Fonts.TrueType; diff --git a/src/UglyToad.PdfPig/PdfFonts/CidFonts/Type0CidFont.cs b/src/UglyToad.PdfPig/PdfFonts/CidFonts/Type0CidFont.cs index ff66b0316..bd5d8ce15 100644 --- a/src/UglyToad.PdfPig/PdfFonts/CidFonts/Type0CidFont.cs +++ b/src/UglyToad.PdfPig/PdfFonts/CidFonts/Type0CidFont.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.PdfFonts.CidFonts { - using System; - using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Linq; using Core; diff --git a/src/UglyToad.PdfPig/PdfFonts/CidFonts/Type2CidFont.cs b/src/UglyToad.PdfPig/PdfFonts/CidFonts/Type2CidFont.cs index 596e8c733..96176bbd3 100644 --- a/src/UglyToad.PdfPig/PdfFonts/CidFonts/Type2CidFont.cs +++ b/src/UglyToad.PdfPig/PdfFonts/CidFonts/Type2CidFont.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.PdfFonts.CidFonts { - using System; - using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Linq; using Core; diff --git a/src/UglyToad.PdfPig/PdfFonts/CidFonts/VerticalWritingMetrics.cs b/src/UglyToad.PdfPig/PdfFonts/CidFonts/VerticalWritingMetrics.cs index 4f5d6ddd4..5dde88e6c 100644 --- a/src/UglyToad.PdfPig/PdfFonts/CidFonts/VerticalWritingMetrics.cs +++ b/src/UglyToad.PdfPig/PdfFonts/CidFonts/VerticalWritingMetrics.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.PdfFonts.CidFonts { - using System.Collections.Generic; using Geometry; /// diff --git a/src/UglyToad.PdfPig/PdfFonts/Cmap/CMap.cs b/src/UglyToad.PdfPig/PdfFonts/Cmap/CMap.cs index ba631180f..df3e71db4 100644 --- a/src/UglyToad.PdfPig/PdfFonts/Cmap/CMap.cs +++ b/src/UglyToad.PdfPig/PdfFonts/Cmap/CMap.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.PdfFonts.Cmap { - using System; - using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Linq; using Core; diff --git a/src/UglyToad.PdfPig/PdfFonts/Cmap/CMapCache.cs b/src/UglyToad.PdfPig/PdfFonts/Cmap/CMapCache.cs index 6432bf07a..5e26b9c2c 100644 --- a/src/UglyToad.PdfPig/PdfFonts/Cmap/CMapCache.cs +++ b/src/UglyToad.PdfPig/PdfFonts/Cmap/CMapCache.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.PdfFonts.Cmap { - using System; - using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using Core; using Parser; diff --git a/src/UglyToad.PdfPig/PdfFonts/Cmap/CMapUtils.cs b/src/UglyToad.PdfPig/PdfFonts/Cmap/CMapUtils.cs index d5c0fd6fc..e7622af14 100644 --- a/src/UglyToad.PdfPig/PdfFonts/Cmap/CMapUtils.cs +++ b/src/UglyToad.PdfPig/PdfFonts/Cmap/CMapUtils.cs @@ -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 data) diff --git a/src/UglyToad.PdfPig/PdfFonts/Cmap/CharacterMapBuilder.cs b/src/UglyToad.PdfPig/PdfFonts/Cmap/CharacterMapBuilder.cs index 5fcbfea27..f37267cad 100644 --- a/src/UglyToad.PdfPig/PdfFonts/Cmap/CharacterMapBuilder.cs +++ b/src/UglyToad.PdfPig/PdfFonts/Cmap/CharacterMapBuilder.cs @@ -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; /// /// A mutable class used when parsing and generating a . diff --git a/src/UglyToad.PdfPig/PdfFonts/Cmap/CidRange.cs b/src/UglyToad.PdfPig/PdfFonts/Cmap/CidRange.cs index ea7355045..5848228ae 100644 --- a/src/UglyToad.PdfPig/PdfFonts/Cmap/CidRange.cs +++ b/src/UglyToad.PdfPig/PdfFonts/Cmap/CidRange.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.PdfFonts.Cmap { - using System; - /// /// Associates the beginning and end of a range of character codes with the starting CID for the range. /// diff --git a/src/UglyToad.PdfPig/PdfFonts/Cmap/CodespaceRange.cs b/src/UglyToad.PdfPig/PdfFonts/Cmap/CodespaceRange.cs index 73d67ca1c..5222233b6 100644 --- a/src/UglyToad.PdfPig/PdfFonts/Cmap/CodespaceRange.cs +++ b/src/UglyToad.PdfPig/PdfFonts/Cmap/CodespaceRange.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.PdfFonts.Cmap { - using System; - /// /// A codespace range is specified by a pair of codes of some particular length giving the lower and upper bounds of that range. /// diff --git a/src/UglyToad.PdfPig/PdfFonts/Composite/ToUnicodeCMap.cs b/src/UglyToad.PdfPig/PdfFonts/Composite/ToUnicodeCMap.cs index c114b0734..d1a84ba59 100644 --- a/src/UglyToad.PdfPig/PdfFonts/Composite/ToUnicodeCMap.cs +++ b/src/UglyToad.PdfPig/PdfFonts/Composite/ToUnicodeCMap.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.PdfFonts.Composite { - using System; using System.Diagnostics.CodeAnalysis; using Cmap; using Core; diff --git a/src/UglyToad.PdfPig/PdfFonts/Composite/Type0Font.cs b/src/UglyToad.PdfPig/PdfFonts/Composite/Type0Font.cs index cf3fd5079..b4b00337e 100644 --- a/src/UglyToad.PdfPig/PdfFonts/Composite/Type0Font.cs +++ b/src/UglyToad.PdfPig/PdfFonts/Composite/Type0Font.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.PdfFonts.Composite { - using System; - using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using CidFonts; using Cmap; diff --git a/src/UglyToad.PdfPig/PdfFonts/FontDescriptorFlags.cs b/src/UglyToad.PdfPig/PdfFonts/FontDescriptorFlags.cs index cecdcf630..3106eb422 100644 --- a/src/UglyToad.PdfPig/PdfFonts/FontDescriptorFlags.cs +++ b/src/UglyToad.PdfPig/PdfFonts/FontDescriptorFlags.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.PdfFonts { - using System; - /// /// Specifies various characteristics of a font. /// diff --git a/src/UglyToad.PdfPig/PdfFonts/FontFactory.cs b/src/UglyToad.PdfPig/PdfFonts/FontFactory.cs index 7114d1a72..e725ea676 100644 --- a/src/UglyToad.PdfPig/PdfFonts/FontFactory.cs +++ b/src/UglyToad.PdfPig/PdfFonts/FontFactory.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.PdfFonts { - using System; - using System.Collections.Generic; using Logging; using Parser.Handlers; using Tokens; diff --git a/src/UglyToad.PdfPig/PdfFonts/IFont.cs b/src/UglyToad.PdfPig/PdfFonts/IFont.cs index 05fd82453..a187a573a 100644 --- a/src/UglyToad.PdfPig/PdfFonts/IFont.cs +++ b/src/UglyToad.PdfPig/PdfFonts/IFont.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.PdfFonts { - using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using Core; using Tokens; diff --git a/src/UglyToad.PdfPig/PdfFonts/Parser/CMapParser.cs b/src/UglyToad.PdfPig/PdfFonts/Parser/CMapParser.cs index c434754f6..458e8d3fa 100644 --- a/src/UglyToad.PdfPig/PdfFonts/Parser/CMapParser.cs +++ b/src/UglyToad.PdfPig/PdfFonts/Parser/CMapParser.cs @@ -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; diff --git a/src/UglyToad.PdfPig/PdfFonts/Parser/EncodingReader.cs b/src/UglyToad.PdfPig/PdfFonts/Parser/EncodingReader.cs index 0835ee7bf..d29361512 100644 --- a/src/UglyToad.PdfPig/PdfFonts/Parser/EncodingReader.cs +++ b/src/UglyToad.PdfPig/PdfFonts/Parser/EncodingReader.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.PdfFonts.Parser { - using System; - using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using Fonts; using Fonts.Encodings; diff --git a/src/UglyToad.PdfPig/PdfFonts/Parser/Handlers/TrueTypeFontHandler.cs b/src/UglyToad.PdfPig/PdfFonts/Parser/Handlers/TrueTypeFontHandler.cs index de309e585..bbfce5032 100644 --- a/src/UglyToad.PdfPig/PdfFonts/Parser/Handlers/TrueTypeFontHandler.cs +++ b/src/UglyToad.PdfPig/PdfFonts/Parser/Handlers/TrueTypeFontHandler.cs @@ -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; diff --git a/src/UglyToad.PdfPig/PdfFonts/Parser/Handlers/Type0FontHandler.cs b/src/UglyToad.PdfPig/PdfFonts/Parser/Handlers/Type0FontHandler.cs index 14b75c933..0b715b47e 100644 --- a/src/UglyToad.PdfPig/PdfFonts/Parser/Handlers/Type0FontHandler.cs +++ b/src/UglyToad.PdfPig/PdfFonts/Parser/Handlers/Type0FontHandler.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.PdfFonts.Parser.Handlers { - using System; using System.Diagnostics.CodeAnalysis; using CidFonts; using Cmap; diff --git a/src/UglyToad.PdfPig/PdfFonts/Parser/Handlers/Type1FontHandler.cs b/src/UglyToad.PdfPig/PdfFonts/Parser/Handlers/Type1FontHandler.cs index 8d9cfd79a..a894f915c 100644 --- a/src/UglyToad.PdfPig/PdfFonts/Parser/Handlers/Type1FontHandler.cs +++ b/src/UglyToad.PdfPig/PdfFonts/Parser/Handlers/Type1FontHandler.cs @@ -11,7 +11,6 @@ using Fonts.Type1.Parser; using PdfPig.Parser.Parts; using Simple; - using System; using Tokenization.Scanner; using Tokens; diff --git a/src/UglyToad.PdfPig/PdfFonts/Parser/Handlers/Type3FontHandler.cs b/src/UglyToad.PdfPig/PdfFonts/Parser/Handlers/Type3FontHandler.cs index 9e215b006..e5928a2ae 100644 --- a/src/UglyToad.PdfPig/PdfFonts/Parser/Handlers/Type3FontHandler.cs +++ b/src/UglyToad.PdfPig/PdfFonts/Parser/Handlers/Type3FontHandler.cs @@ -7,7 +7,6 @@ using Fonts.Encodings; using PdfPig.Parser.Parts; using Simple; - using System; using Tokenization.Scanner; using Tokens; using Util; diff --git a/src/UglyToad.PdfPig/PdfFonts/Parser/Parts/BaseFontCharacterParser.cs b/src/UglyToad.PdfPig/PdfFonts/Parser/Parts/BaseFontCharacterParser.cs index 63ab72e66..295616cd1 100644 --- a/src/UglyToad.PdfPig/PdfFonts/Parser/Parts/BaseFontCharacterParser.cs +++ b/src/UglyToad.PdfPig/PdfFonts/Parser/Parts/BaseFontCharacterParser.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.PdfFonts.Parser.Parts { - using System; using Cmap; using Tokenization.Scanner; using Tokens; diff --git a/src/UglyToad.PdfPig/PdfFonts/Parser/Parts/BaseFontRangeParser.cs b/src/UglyToad.PdfPig/PdfFonts/Parser/Parts/BaseFontRangeParser.cs index 92bfe130e..0556d1356 100644 --- a/src/UglyToad.PdfPig/PdfFonts/Parser/Parts/BaseFontRangeParser.cs +++ b/src/UglyToad.PdfPig/PdfFonts/Parser/Parts/BaseFontRangeParser.cs @@ -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; diff --git a/src/UglyToad.PdfPig/PdfFonts/Parser/Parts/CidCharacterParser.cs b/src/UglyToad.PdfPig/PdfFonts/Parser/Parts/CidCharacterParser.cs index 4f885d57d..d3c06da7c 100644 --- a/src/UglyToad.PdfPig/PdfFonts/Parser/Parts/CidCharacterParser.cs +++ b/src/UglyToad.PdfPig/PdfFonts/Parser/Parts/CidCharacterParser.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.PdfFonts.Parser.Parts { - using System; - using System.Collections.Generic; using Cmap; using Tokenization.Scanner; using Tokens; diff --git a/src/UglyToad.PdfPig/PdfFonts/Parser/Parts/CidFontFactory.cs b/src/UglyToad.PdfPig/PdfFonts/Parser/Parts/CidFontFactory.cs index dfc0167ef..6c180f7d0 100644 --- a/src/UglyToad.PdfPig/PdfFonts/Parser/Parts/CidFontFactory.cs +++ b/src/UglyToad.PdfPig/PdfFonts/Parser/Parts/CidFontFactory.cs @@ -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 diff --git a/src/UglyToad.PdfPig/PdfFonts/Parser/Parts/CodespaceRangeParser.cs b/src/UglyToad.PdfPig/PdfFonts/Parser/Parts/CodespaceRangeParser.cs index f7c784b23..cc114ac14 100644 --- a/src/UglyToad.PdfPig/PdfFonts/Parser/Parts/CodespaceRangeParser.cs +++ b/src/UglyToad.PdfPig/PdfFonts/Parser/Parts/CodespaceRangeParser.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.PdfFonts.Parser.Parts { - using System; - using System.Collections.Generic; using Cmap; using Tokenization.Scanner; using Tokens; diff --git a/src/UglyToad.PdfPig/PdfFonts/Parser/Parts/FontDescriptorFactory.cs b/src/UglyToad.PdfPig/PdfFonts/Parser/Parts/FontDescriptorFactory.cs index cc7ed9548..74224f93f 100644 --- a/src/UglyToad.PdfPig/PdfFonts/Parser/Parts/FontDescriptorFactory.cs +++ b/src/UglyToad.PdfPig/PdfFonts/Parser/Parts/FontDescriptorFactory.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.PdfFonts.Parser.Parts { - using System; using Core; using Tokenization.Scanner; using Tokens; diff --git a/src/UglyToad.PdfPig/PdfFonts/Simple/TrueTypeSimpleFont.cs b/src/UglyToad.PdfPig/PdfFonts/Simple/TrueTypeSimpleFont.cs index 13e4162d9..ee1a91997 100644 --- a/src/UglyToad.PdfPig/PdfFonts/Simple/TrueTypeSimpleFont.cs +++ b/src/UglyToad.PdfPig/PdfFonts/Simple/TrueTypeSimpleFont.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.PdfFonts.Simple { - using System; - using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Linq; using Cmap; diff --git a/src/UglyToad.PdfPig/PdfFonts/Simple/TrueTypeStandard14FallbackSimpleFont.cs b/src/UglyToad.PdfPig/PdfFonts/Simple/TrueTypeStandard14FallbackSimpleFont.cs index 0b3ad1475..3dc0b6359 100644 --- a/src/UglyToad.PdfPig/PdfFonts/Simple/TrueTypeStandard14FallbackSimpleFont.cs +++ b/src/UglyToad.PdfPig/PdfFonts/Simple/TrueTypeStandard14FallbackSimpleFont.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.PdfFonts.Simple { - using System; - using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Linq; using Core; diff --git a/src/UglyToad.PdfPig/PdfFonts/Simple/Type1FontSimple.cs b/src/UglyToad.PdfPig/PdfFonts/Simple/Type1FontSimple.cs index 04f4e6042..57ecba817 100644 --- a/src/UglyToad.PdfPig/PdfFonts/Simple/Type1FontSimple.cs +++ b/src/UglyToad.PdfPig/PdfFonts/Simple/Type1FontSimple.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.PdfFonts.Simple { - using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Linq; using Cmap; diff --git a/src/UglyToad.PdfPig/PdfFonts/Simple/Type1Standard14Font.cs b/src/UglyToad.PdfPig/PdfFonts/Simple/Type1Standard14Font.cs index 51316f814..18893a1b3 100644 --- a/src/UglyToad.PdfPig/PdfFonts/Simple/Type1Standard14Font.cs +++ b/src/UglyToad.PdfPig/PdfFonts/Simple/Type1Standard14Font.cs @@ -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; diff --git a/src/UglyToad.PdfPig/PdfFonts/Simple/Type3Font.cs b/src/UglyToad.PdfPig/PdfFonts/Simple/Type3Font.cs index f3097b54e..c855f89da 100644 --- a/src/UglyToad.PdfPig/PdfFonts/Simple/Type3Font.cs +++ b/src/UglyToad.PdfPig/PdfFonts/Simple/Type3Font.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.PdfFonts.Simple { - using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using Cmap; using Composite; diff --git a/src/UglyToad.PdfPig/Structure.cs b/src/UglyToad.PdfPig/Structure.cs index 794b50b57..05fcb49bf 100644 --- a/src/UglyToad.PdfPig/Structure.cs +++ b/src/UglyToad.PdfPig/Structure.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig { - using System; using Content; using Core; using CrossReference; diff --git a/src/UglyToad.PdfPig/Tokenization/Scanner/IPdfTokenScanner.cs b/src/UglyToad.PdfPig/Tokenization/Scanner/IPdfTokenScanner.cs index 5ba7269c5..4ceb711d1 100644 --- a/src/UglyToad.PdfPig/Tokenization/Scanner/IPdfTokenScanner.cs +++ b/src/UglyToad.PdfPig/Tokenization/Scanner/IPdfTokenScanner.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Tokenization.Scanner { - using System; using Core; using Tokens; diff --git a/src/UglyToad.PdfPig/Tokenization/Scanner/ObjectLocationProvider.cs b/src/UglyToad.PdfPig/Tokenization/Scanner/ObjectLocationProvider.cs index 29e6c474e..5097db09f 100644 --- a/src/UglyToad.PdfPig/Tokenization/Scanner/ObjectLocationProvider.cs +++ b/src/UglyToad.PdfPig/Tokenization/Scanner/ObjectLocationProvider.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Tokenization.Scanner { - using System; - using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using Core; using CrossReference; diff --git a/src/UglyToad.PdfPig/Tokenization/Scanner/PdfTokenScanner.cs b/src/UglyToad.PdfPig/Tokenization/Scanner/PdfTokenScanner.cs index 56b8608e5..46b0d25cd 100644 --- a/src/UglyToad.PdfPig/Tokenization/Scanner/PdfTokenScanner.cs +++ b/src/UglyToad.PdfPig/Tokenization/Scanner/PdfTokenScanner.cs @@ -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; diff --git a/src/UglyToad.PdfPig/Tokenization/Scanner/PossibleStreamEndLocation.cs b/src/UglyToad.PdfPig/Tokenization/Scanner/PossibleStreamEndLocation.cs index 6a5bb7c30..c0546ef04 100644 --- a/src/UglyToad.PdfPig/Tokenization/Scanner/PossibleStreamEndLocation.cs +++ b/src/UglyToad.PdfPig/Tokenization/Scanner/PossibleStreamEndLocation.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Tokenization.Scanner { - using System; using Tokens; /// diff --git a/src/UglyToad.PdfPig/Util/Adler32Checksum.cs b/src/UglyToad.PdfPig/Util/Adler32Checksum.cs index cc03286c9..5f8bb5c6e 100644 --- a/src/UglyToad.PdfPig/Util/Adler32Checksum.cs +++ b/src/UglyToad.PdfPig/Util/Adler32Checksum.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Util { - using System; - /// /// Used to calculate the Adler-32 checksum used for ZLIB data in accordance with /// RFC 1950: ZLIB Compressed Data Format Specification. diff --git a/src/UglyToad.PdfPig/Util/ColorSpaceDetailsParser.cs b/src/UglyToad.PdfPig/Util/ColorSpaceDetailsParser.cs index b8c08e18c..a201edbfa 100644 --- a/src/UglyToad.PdfPig/Util/ColorSpaceDetailsParser.cs +++ b/src/UglyToad.PdfPig/Util/ColorSpaceDetailsParser.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Util { - using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Linq; using Content; diff --git a/src/UglyToad.PdfPig/Util/DateFormatHelper.cs b/src/UglyToad.PdfPig/Util/DateFormatHelper.cs index 8a3f66bf4..b1961ca40 100644 --- a/src/UglyToad.PdfPig/Util/DateFormatHelper.cs +++ b/src/UglyToad.PdfPig/Util/DateFormatHelper.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Util { - using System; using System.Globalization; /// diff --git a/src/UglyToad.PdfPig/Util/DefaultWordExtractor.cs b/src/UglyToad.PdfPig/Util/DefaultWordExtractor.cs index 44a90996c..0301d7b3f 100644 --- a/src/UglyToad.PdfPig/Util/DefaultWordExtractor.cs +++ b/src/UglyToad.PdfPig/Util/DefaultWordExtractor.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Util { - using System; - using System.Collections.Generic; using System.Linq; using Content; diff --git a/src/UglyToad.PdfPig/Util/Diacritics.cs b/src/UglyToad.PdfPig/Util/Diacritics.cs index d67e8633a..fa0f802e8 100644 --- a/src/UglyToad.PdfPig/Util/Diacritics.cs +++ b/src/UglyToad.PdfPig/Util/Diacritics.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Util { - using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Globalization; diff --git a/src/UglyToad.PdfPig/Util/DictionaryTokenExtensions.cs b/src/UglyToad.PdfPig/Util/DictionaryTokenExtensions.cs index 67ec33f9a..66ce3c1a2 100644 --- a/src/UglyToad.PdfPig/Util/DictionaryTokenExtensions.cs +++ b/src/UglyToad.PdfPig/Util/DictionaryTokenExtensions.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Util { - using System; using System.Diagnostics.CodeAnalysis; using Core; using Parser.Parts; diff --git a/src/UglyToad.PdfPig/Util/EnumerableExtensions.cs b/src/UglyToad.PdfPig/Util/EnumerableExtensions.cs index 1d56d6bda..6221d5c52 100644 --- a/src/UglyToad.PdfPig/Util/EnumerableExtensions.cs +++ b/src/UglyToad.PdfPig/Util/EnumerableExtensions.cs @@ -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 ToRecursiveOrderList(this IEnumerable collection, diff --git a/src/UglyToad.PdfPig/Util/Hex.cs b/src/UglyToad.PdfPig/Util/Hex.cs index 3a01904e1..bf6aa84dd 100644 --- a/src/UglyToad.PdfPig/Util/Hex.cs +++ b/src/UglyToad.PdfPig/Util/Hex.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Util { - using System; - /** * Utility functions for hex encoding. * diff --git a/src/UglyToad.PdfPig/Util/IWordExtractor.cs b/src/UglyToad.PdfPig/Util/IWordExtractor.cs index 35969169a..7eca3df56 100644 --- a/src/UglyToad.PdfPig/Util/IWordExtractor.cs +++ b/src/UglyToad.PdfPig/Util/IWordExtractor.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Util { - using System.Collections.Generic; using Content; /// diff --git a/src/UglyToad.PdfPig/Util/InternalStringExtensions.cs b/src/UglyToad.PdfPig/Util/InternalStringExtensions.cs index 8381efa47..d8b9edb17 100644 --- a/src/UglyToad.PdfPig/Util/InternalStringExtensions.cs +++ b/src/UglyToad.PdfPig/Util/InternalStringExtensions.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Util { - using System; - internal static class InternalStringExtensions { public static bool StartsWithOffset(this string value, ReadOnlySpan start, int offset) diff --git a/src/UglyToad.PdfPig/Util/Matrix3x3.cs b/src/UglyToad.PdfPig/Util/Matrix3x3.cs index be59e56a2..de42cc0f8 100644 --- a/src/UglyToad.PdfPig/Util/Matrix3x3.cs +++ b/src/UglyToad.PdfPig/Util/Matrix3x3.cs @@ -1,6 +1,4 @@ -using System; -using System.Collections; -using System.Collections.Generic; +using System.Collections; namespace UglyToad.PdfPig.Util { diff --git a/src/UglyToad.PdfPig/Util/PatternParser.cs b/src/UglyToad.PdfPig/Util/PatternParser.cs index 0988cd08a..6c462b177 100644 --- a/src/UglyToad.PdfPig/Util/PatternParser.cs +++ b/src/UglyToad.PdfPig/Util/PatternParser.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Util { - using System; using System.Linq; using UglyToad.PdfPig.Content; using UglyToad.PdfPig.Core; diff --git a/src/UglyToad.PdfPig/Util/PdfFunctionParser.cs b/src/UglyToad.PdfPig/Util/PdfFunctionParser.cs index 51b0ac4ba..6df6d587a 100644 --- a/src/UglyToad.PdfPig/Util/PdfFunctionParser.cs +++ b/src/UglyToad.PdfPig/Util/PdfFunctionParser.cs @@ -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; diff --git a/src/UglyToad.PdfPig/Util/ShadingParser.cs b/src/UglyToad.PdfPig/Util/ShadingParser.cs index 5e59a204d..5dc7e7c3c 100644 --- a/src/UglyToad.PdfPig/Util/ShadingParser.cs +++ b/src/UglyToad.PdfPig/Util/ShadingParser.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Util { - using System; using System.Linq; using UglyToad.PdfPig.Content; using UglyToad.PdfPig.Core; diff --git a/src/UglyToad.PdfPig/Util/StackDictionary.cs b/src/UglyToad.PdfPig/Util/StackDictionary.cs index 4b91e06ce..22c3cb201 100644 --- a/src/UglyToad.PdfPig/Util/StackDictionary.cs +++ b/src/UglyToad.PdfPig/Util/StackDictionary.cs @@ -1,8 +1,6 @@ // ReSharper disable InconsistentNaming namespace UglyToad.PdfPig.Util { - using System; - using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; internal class StackDictionary diff --git a/src/UglyToad.PdfPig/Writer/Colors/OutputIntentsFactory.cs b/src/UglyToad.PdfPig/Writer/Colors/OutputIntentsFactory.cs index f2c48955b..41ee17468 100644 --- a/src/UglyToad.PdfPig/Writer/Colors/OutputIntentsFactory.cs +++ b/src/UglyToad.PdfPig/Writer/Colors/OutputIntentsFactory.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Writer.Colors { - using System; - using System.Collections.Generic; using Tokens; internal static class OutputIntentsFactory diff --git a/src/UglyToad.PdfPig/Writer/Colors/ProfileStreamReader.cs b/src/UglyToad.PdfPig/Writer/Colors/ProfileStreamReader.cs index 489f78ede..23aa9165f 100644 --- a/src/UglyToad.PdfPig/Writer/Colors/ProfileStreamReader.cs +++ b/src/UglyToad.PdfPig/Writer/Colors/ProfileStreamReader.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Writer.Colors { - using System; using System.IO; using System.Linq; using PdfFonts.Parser; diff --git a/src/UglyToad.PdfPig/Writer/DataCompresser.cs b/src/UglyToad.PdfPig/Writer/DataCompresser.cs index e143ab3ba..ec1205799 100644 --- a/src/UglyToad.PdfPig/Writer/DataCompresser.cs +++ b/src/UglyToad.PdfPig/Writer/DataCompresser.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Writer { - using System.Collections.Generic; using System.IO; using System.Linq; using Filters; diff --git a/src/UglyToad.PdfPig/Writer/Fonts/Standard14WritingFont.cs b/src/UglyToad.PdfPig/Writer/Fonts/Standard14WritingFont.cs index 99bedacc0..ab372ff65 100644 --- a/src/UglyToad.PdfPig/Writer/Fonts/Standard14WritingFont.cs +++ b/src/UglyToad.PdfPig/Writer/Fonts/Standard14WritingFont.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Writer.Fonts { - using System; - using System.Collections.Generic; using System.Diagnostics; using System.Linq; using Core; diff --git a/src/UglyToad.PdfPig/Writer/Fonts/ToUnicodeCMapBuilder.cs b/src/UglyToad.PdfPig/Writer/Fonts/ToUnicodeCMapBuilder.cs index ba95df81f..623176fab 100644 --- a/src/UglyToad.PdfPig/Writer/Fonts/ToUnicodeCMapBuilder.cs +++ b/src/UglyToad.PdfPig/Writer/Fonts/ToUnicodeCMapBuilder.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Writer.Fonts { - using System; - using System.Collections.Generic; using System.IO; using Graphics.Operations; using Tokens; diff --git a/src/UglyToad.PdfPig/Writer/Fonts/TrueTypeWritingFont.cs b/src/UglyToad.PdfPig/Writer/Fonts/TrueTypeWritingFont.cs index 5b7941fc9..4b7f7a48f 100644 --- a/src/UglyToad.PdfPig/Writer/Fonts/TrueTypeWritingFont.cs +++ b/src/UglyToad.PdfPig/Writer/Fonts/TrueTypeWritingFont.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Writer.Fonts { - using System; - using System.Collections.Generic; using System.Linq; using Core; using PdfFonts; diff --git a/src/UglyToad.PdfPig/Writer/IPdfStreamWriter.cs b/src/UglyToad.PdfPig/Writer/IPdfStreamWriter.cs index 9755fc743..be50a98ba 100644 --- a/src/UglyToad.PdfPig/Writer/IPdfStreamWriter.cs +++ b/src/UglyToad.PdfPig/Writer/IPdfStreamWriter.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Writer { - using System; using System.IO; using Tokens; diff --git a/src/UglyToad.PdfPig/Writer/ITokenWriter.cs b/src/UglyToad.PdfPig/Writer/ITokenWriter.cs index 4b9f449fc..7a83993fa 100644 --- a/src/UglyToad.PdfPig/Writer/ITokenWriter.cs +++ b/src/UglyToad.PdfPig/Writer/ITokenWriter.cs @@ -1,8 +1,7 @@ namespace UglyToad.PdfPig.Writer { - using Core; - using System.Collections.Generic; using System.IO; + using Core; using Tokens; /// diff --git a/src/UglyToad.PdfPig/Writer/NoTextTokenWriter.cs b/src/UglyToad.PdfPig/Writer/NoTextTokenWriter.cs index 712f1171f..36eefea1d 100644 --- a/src/UglyToad.PdfPig/Writer/NoTextTokenWriter.cs +++ b/src/UglyToad.PdfPig/Writer/NoTextTokenWriter.cs @@ -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; diff --git a/src/UglyToad.PdfPig/Writer/PdfA1ARuleBuilder.cs b/src/UglyToad.PdfPig/Writer/PdfA1ARuleBuilder.cs index 438478b94..10716f583 100644 --- a/src/UglyToad.PdfPig/Writer/PdfA1ARuleBuilder.cs +++ b/src/UglyToad.PdfPig/Writer/PdfA1ARuleBuilder.cs @@ -1,5 +1,4 @@ -using System.Collections.Generic; -using UglyToad.PdfPig.Tokens; +using UglyToad.PdfPig.Tokens; namespace UglyToad.PdfPig.Writer { diff --git a/src/UglyToad.PdfPig/Writer/PdfABaselineRuleBuilder.cs b/src/UglyToad.PdfPig/Writer/PdfABaselineRuleBuilder.cs index 7137b5f42..127239784 100644 --- a/src/UglyToad.PdfPig/Writer/PdfABaselineRuleBuilder.cs +++ b/src/UglyToad.PdfPig/Writer/PdfABaselineRuleBuilder.cs @@ -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; diff --git a/src/UglyToad.PdfPig/Writer/PdfDedupStreamWriter.cs b/src/UglyToad.PdfPig/Writer/PdfDedupStreamWriter.cs index 688b5880c..47bb8f8d1 100644 --- a/src/UglyToad.PdfPig/Writer/PdfDedupStreamWriter.cs +++ b/src/UglyToad.PdfPig/Writer/PdfDedupStreamWriter.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Writer { - using System; - using System.Collections.Generic; using System.IO; using Tokens; diff --git a/src/UglyToad.PdfPig/Writer/PdfDocumentBuilder.cs b/src/UglyToad.PdfPig/Writer/PdfDocumentBuilder.cs index d332d5168..26c008787 100644 --- a/src/UglyToad.PdfPig/Writer/PdfDocumentBuilder.cs +++ b/src/UglyToad.PdfPig/Writer/PdfDocumentBuilder.cs @@ -1,8 +1,6 @@  namespace UglyToad.PdfPig.Writer { - using System; - using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.CompilerServices; diff --git a/src/UglyToad.PdfPig/Writer/PdfMerger.cs b/src/UglyToad.PdfPig/Writer/PdfMerger.cs index 97510d95e..32bd62354 100644 --- a/src/UglyToad.PdfPig/Writer/PdfMerger.cs +++ b/src/UglyToad.PdfPig/Writer/PdfMerger.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Writer { - using System; - using System.Collections.Generic; using System.IO; using Filters; using Logging; diff --git a/src/UglyToad.PdfPig/Writer/PdfPageBuilder.cs b/src/UglyToad.PdfPig/Writer/PdfPageBuilder.cs index fa99a38bf..b20acfe7c 100644 --- a/src/UglyToad.PdfPig/Writer/PdfPageBuilder.cs +++ b/src/UglyToad.PdfPig/Writer/PdfPageBuilder.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Writer { - using System; - using System.Collections.Generic; using System.IO; using System.Linq; using Content; diff --git a/src/UglyToad.PdfPig/Writer/PdfStreamWriter.cs b/src/UglyToad.PdfPig/Writer/PdfStreamWriter.cs index c1c360643..2b65f8ea4 100644 --- a/src/UglyToad.PdfPig/Writer/PdfStreamWriter.cs +++ b/src/UglyToad.PdfPig/Writer/PdfStreamWriter.cs @@ -2,8 +2,6 @@ { using Core; using Graphics.Operations; - using System; - using System.Collections.Generic; using System.Globalization; using System.IO; using Tokens; diff --git a/src/UglyToad.PdfPig/Writer/PdfTextRemover.cs b/src/UglyToad.PdfPig/Writer/PdfTextRemover.cs index d6e205521..2207dc75f 100644 --- a/src/UglyToad.PdfPig/Writer/PdfTextRemover.cs +++ b/src/UglyToad.PdfPig/Writer/PdfTextRemover.cs @@ -1,6 +1,4 @@ -using System; -using System.Collections.Generic; -using System.IO; +using System.IO; namespace UglyToad.PdfPig.Writer { diff --git a/src/UglyToad.PdfPig/Writer/TokenWriter.cs b/src/UglyToad.PdfPig/Writer/TokenWriter.cs index 25a5b7195..2873c286b 100644 --- a/src/UglyToad.PdfPig/Writer/TokenWriter.cs +++ b/src/UglyToad.PdfPig/Writer/TokenWriter.cs @@ -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; diff --git a/src/UglyToad.PdfPig/Writer/WriterUtil.cs b/src/UglyToad.PdfPig/Writer/WriterUtil.cs index 52cbe4b4d..7db3c7ce0 100644 --- a/src/UglyToad.PdfPig/Writer/WriterUtil.cs +++ b/src/UglyToad.PdfPig/Writer/WriterUtil.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Writer { - using System; - using System.Collections.Generic; using System.Diagnostics; using System.Linq; using Content; diff --git a/src/UglyToad.PdfPig/Writer/Xmp/XmpWriter.cs b/src/UglyToad.PdfPig/Writer/Xmp/XmpWriter.cs index 824b3b5b6..4ecf4793c 100644 --- a/src/UglyToad.PdfPig/Writer/Xmp/XmpWriter.cs +++ b/src/UglyToad.PdfPig/Writer/Xmp/XmpWriter.cs @@ -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; diff --git a/src/UglyToad.PdfPig/XObjects/XObjectFactory.cs b/src/UglyToad.PdfPig/XObjects/XObjectFactory.cs index dd3fc64ae..9ab6fd1ac 100644 --- a/src/UglyToad.PdfPig/XObjects/XObjectFactory.cs +++ b/src/UglyToad.PdfPig/XObjects/XObjectFactory.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.XObjects { - using System; - using System.Collections.Generic; using System.Linq; using Content; using Core; diff --git a/src/UglyToad.PdfPig/XObjects/XObjectImage.cs b/src/UglyToad.PdfPig/XObjects/XObjectImage.cs index 09ebf4e79..f5482aa72 100644 --- a/src/UglyToad.PdfPig/XObjects/XObjectImage.cs +++ b/src/UglyToad.PdfPig/XObjects/XObjectImage.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.XObjects { - using System; - using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using Content; using Core;