Cleanup using statements

This commit is contained in:
Jason Nelson 2024-05-03 12:34:58 -07:00
parent da44e1a540
commit 1db3c65de3
269 changed files with 36 additions and 484 deletions

View File

@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.AcroForms
{
using System;
using System.Collections.Generic;
using System.Linq;
using Core;
using Fields;

View File

@ -1,8 +1,7 @@
namespace UglyToad.PdfPig.AcroForms
{
using System.Collections.Generic;
using System.Linq;
using UglyToad.PdfPig.AcroForms.Fields;
using Fields;
/// <summary>
/// Extensions for AcroForm.

View File

@ -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;

View File

@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.AcroForms.Fields
{
using System;
/// <summary>
/// Flags specifying various characteristics of a button type field in an <see cref="AcroFieldBase"/>.
/// </summary>

View File

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

View File

@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.AcroForms.Fields
{
using System;
/// <summary>
/// Flags specifying various characteristics of a choice type field in an <see cref="AcroFieldBase"/>.
/// </summary>

View File

@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.AcroForms.Fields
{
using System;
using System.Collections.Generic;
using Core;
using Tokens;

View File

@ -1,7 +1,6 @@
namespace UglyToad.PdfPig.AcroForms.Fields
{
using Core;
using System;
using Tokens;
/// <summary>

View File

@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.AcroForms.Fields
{
using System;
using System.Collections.Generic;
using Core;
using Tokens;

View File

@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.AcroForms.Fields
{
using System;
using System.Collections.Generic;
using Tokens;
/// <inheritdoc />

View File

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

View File

@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.AcroForms.Fields
{
using System;
/// <summary>
/// Flags specifying various characteristics of a text type field in an <see cref="AcroFieldBase"/>.
/// </summary>

View File

@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.AcroForms
{
using System;
/// <summary>
/// Specifies document level characteristics for any signature fields in the document's <see cref="AcroForm"/>.
/// </summary>
@ -12,6 +10,7 @@
/// The document contains at least one signature field.
/// </summary>
SignaturesExist = 1 << 0,
/// <summary>
/// The document contains signatures which may be invalidated if the file is saved
/// in a way which alters its previous content rather than simply appending new content.

View File

@ -1,7 +1,5 @@
namespace UglyToad.PdfPig
{
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using Content;
using Core;

View File

@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Annotations
{
using System;
using System.Collections.Generic;
using Core;
using Actions;
using Tokens;

View File

@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Annotations
{
using System.Collections.Generic;
/// <summary>
/// A border for a PDF <see cref="Annotation"/> object.
/// </summary>

View File

@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Annotations
{
using System;
/// <summary>
/// Specifies characteristics of an annotation in a PDF or FDF document.
/// </summary>

View File

@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Annotations
{
using System;
using System.Collections.Generic;
using System.Linq;
using Actions;
using Core;

View File

@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Annotations
{
using System;
using System.Collections.Generic;
using Tokens;
/// <summary>

View File

@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Annotations
{
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using Tokenization.Scanner;
using Tokens;

View File

@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Annotations
{
using System.Collections.Generic;
using System.Linq;
using Content;
using Core;

View File

@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Annotations
{
using System;
using System.Collections.Generic;
using Core;
/// <summary>

View File

@ -1,10 +1,8 @@
namespace UglyToad.PdfPig.Content
{
using System;
using System.Collections.Generic;
using Core;
using Graphics;
using Tokens;
using UglyToad.PdfPig.Graphics;
/// <inheritdoc />
/// <summary>

View File

@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Content
{
using System;
using System.Collections.Generic;
using Core;
using Filters;
using Geometry;

View File

@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Content
{
using System;
using Outline.Destinations;
using Tokens;

View File

@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Content
{
using System;
using System.Collections.Generic;
using System.Text;
using Tokens;
using Util;

View File

@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Content
{
using System;
using System.Collections.Generic;
using Tokens;
/// <summary>

View File

@ -1,8 +1,6 @@
namespace UglyToad.PdfPig.Content
{
using System;
internal class HeaderVersion
internal sealed class HeaderVersion
{
public double Version { get; }

View File

@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Content
{
using System;
using System.Collections.Generic;
using Annotations;
using Core;

View File

@ -1,12 +1,10 @@
namespace UglyToad.PdfPig.Content
{
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using Core;
using Graphics.Colors;
using Graphics.Core;
using UglyToad.PdfPig.Tokens;
using Tokens;
using XObjects;
/// <summary>

View File

@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Content
{
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using Graphics.Colors;
using PdfFonts;

View File

@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Content
{
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using Core;
using Filters;

View File

@ -1,9 +1,7 @@
namespace UglyToad.PdfPig.Content
{
using System;
using System.Collections.Generic;
using Graphics;
using Tokens;
using UglyToad.PdfPig.Graphics;
/// <summary>
/// A marked content element can be used to provide application specific data in the

View File

@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Content
{
using System;
using Core;
/// <summary>

View File

@ -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

View File

@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Content
{
using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
using Annotations;

View File

@ -4,8 +4,6 @@
using Filters;
using Graphics;
using Graphics.Operations;
using System;
using System.Collections.Generic;
using Tokenization.Scanner;
using XObjects;

View File

@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Content
{
using System;
using System.Globalization;
/// <summary>

View File

@ -1,9 +1,7 @@
namespace UglyToad.PdfPig.Content
{
using System.Collections.Generic;
using System.Linq;
using Core;
using System;
/// <summary>
/// The corresponding named size of the <see cref="Page"/>.

View File

@ -2,7 +2,6 @@
namespace UglyToad.PdfPig.Content
{
using System.Collections.Generic;
using Tokens;
/// <summary>

View File

@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Content
{
using System;
using System.Collections.Generic;
using Core;
using Tokens;

View File

@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Content
{
using System;
using System.Collections.Generic;
using Core;
using Filters;
using Outline.Destinations;

View File

@ -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;

View File

@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Content
{
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using Core;
using Graphics.Colors;

View File

@ -1,10 +1,8 @@
namespace UglyToad.PdfPig.Content
{
using Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Core;
/// <summary>
/// A word.

View File

@ -2,7 +2,6 @@
{
using Core;
using Filters;
using System;
using System.Xml.Linq;
using Tokenization.Scanner;
using Tokens;

View File

@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.CrossReference
{
using System;
using System.Collections.Generic;
using Core;
/// <summary>

View File

@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.CrossReference
{
using System;
using System.Collections.Generic;
using System.Linq;
using Core;
using Logging;

View File

@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.CrossReference
{
using System.Collections.Generic;
using Core;
using Tokens;

View File

@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.CrossReference
{
using System.Collections.Generic;
using Core;
using Tokens;

View File

@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.CrossReference
{
using System;
using System.Collections.Generic;
using Core;
using Tokens;
using Util;

View File

@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Encryption
{
using System;
using System.IO;
using System.Security.Cryptography;

View File

@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Encryption
{
using System;
using Exceptions;
using Tokens;

View File

@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Encryption
{
using System;
using System.Diagnostics.CodeAnalysis;
using Exceptions;
using Tokens;

View File

@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Encryption
{
using System;
using System.Linq;
using Core;
using Tokenization.Scanner;
using Tokens;

View File

@ -2,8 +2,6 @@
namespace UglyToad.PdfPig.Encryption
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Security.Cryptography;

View File

@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Encryption
{
using System;
internal static class RC4
{
public static byte[] Encrypt(ReadOnlySpan<byte> key, ReadOnlySpan<byte> data)

View File

@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Encryption
{
using System;
[Flags]
internal enum UserAccessPermissions : long
{

View File

@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Exceptions
{
using System;
#if !NET
using System.Runtime.Serialization;
#endif

View File

@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Filters
{
using System;
using System.Collections.Generic;
using Core;
using Tokens;

View File

@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Filters
{
using System;
using Core;
using Tokens;

View File

@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Filters
{
using System;
internal ref struct BitStream
{
private readonly ReadOnlySpan<byte> data;

View File

@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Filters
{
using System;
using System.IO;
using Tokens;
using Util;

View File

@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Filters
{
using System;
using System.IO;
using IO;

View File

@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Filters
{
using System;
using Tokens;
internal class DctDecodeFilter : IFilter

View File

@ -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
{

View File

@ -1,11 +1,9 @@
namespace UglyToad.PdfPig.Filters
{
using System;
using System.Collections.Generic;
using System.Linq;
using Core;
using Tokens;
using UglyToad.PdfPig.Util;
using Util;
/// <inheritdoc />
/// <summary>

View File

@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Filters
{
using System;
using System.Collections.Generic;
using System.Linq;
using Core;
using Parser.Parts;

View File

@ -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;

View File

@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Filters
{
using System;
using Tokens;
/// <summary>

View File

@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Filters
{
using System.Collections.Generic;
using Tokenization.Scanner;
using Tokens;

View File

@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Filters
{
using System;
using Tokens;
internal sealed class Jbig2DecodeFilter : IFilter

View File

@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Filters
{
using System;
using Tokens;
internal class JpxDecodeFilter : IFilter

View File

@ -2,8 +2,6 @@
namespace UglyToad.PdfPig.Filters
{
using System;
using System.Collections.Generic;
using Tokens;
using Util;

View File

@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Filters
{
using System;
using System.Collections.Generic;
using System.IO;
using IO;

View File

@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Filters
{
using System;
using Tokens;
using UglyToad.PdfPig.Core;

View File

@ -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
{

View File

@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Functions
{
using System;
using UglyToad.PdfPig.Tokens;
/// <summary>

View File

@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Functions
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using UglyToad.PdfPig.Core;

View File

@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Functions
{
using System;
using System.Linq;
using UglyToad.PdfPig.Core;
using UglyToad.PdfPig.Functions.Type4;

View File

@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Functions.Type4
{
using System;
/// <summary>
/// Provides the arithmetic operators such as "add" and "sub".
/// </summary>

View File

@ -1,8 +1,5 @@
namespace UglyToad.PdfPig.Functions.Type4
{
using System;
using System.Collections.Generic;
internal sealed class BitwiseOperators
{
private BitwiseOperators()

View File

@ -1,8 +1,5 @@
namespace UglyToad.PdfPig.Functions.Type4
{
using System;
using System.Collections.Generic;
/// <summary>
/// Provides the conditional operators such as "if" and "ifelse".
/// </summary>

View File

@ -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

View File

@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Functions.Type4
{
using System;
using System.Collections.Generic;
using System.Linq;
internal sealed class InstructionSequence

View File

@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Functions.Type4
{
using System.Collections.Generic;
using System.Globalization;
/// <summary>

View File

@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Functions.Type4
{
using System.Collections.Generic;
/// <summary>
/// This class provides all the supported operators.
/// </summary>

View File

@ -1,8 +1,5 @@
namespace UglyToad.PdfPig.Functions.Type4
{
using System;
using System.Collections.Generic;
/// <summary>
/// Provides the relational operators such as "eq" and "le".
/// </summary>

View File

@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Functions.Type4
{
using System;
using System.Collections.Generic;
using System.Linq;
/// <summary>

View File

@ -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 ...

View File

@ -77,8 +77,6 @@
namespace UglyToad.PdfPig.Geometry.ClipperLibrary
{
using System.Collections.Generic;
internal class ClipperBase
{
internal const double Horizontal = -3.4E+38;

View File

@ -71,8 +71,6 @@
*******************************************************************************/
namespace UglyToad.PdfPig.Geometry.ClipperLibrary
{
using System;
internal class ClipperException : Exception
{
public ClipperException(string description) : base(description)

View File

@ -74,8 +74,6 @@
namespace UglyToad.PdfPig.Geometry.ClipperLibrary
{
using System.Collections.Generic;
internal class ClipperIntersectNode
{
internal ClipperTEdge Edge1;

View File

@ -71,9 +71,6 @@
*******************************************************************************/
namespace UglyToad.PdfPig.Geometry.ClipperLibrary
{
using System;
using System.Collections.Generic;
internal class ClipperOffset
{
private const double DefArcTolerance = 0.25;

View File

@ -74,8 +74,6 @@
namespace UglyToad.PdfPig.Geometry.ClipperLibrary
{
using System.Collections.Generic;
internal class ClipperPolyTree : ClipperPolyNode
{
internal List<ClipperPolyNode> AllPolys = new List<ClipperPolyNode>();

View File

@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Geometry
{
using System;
using System.Collections.Generic;
using System.Linq;
using ClipperLibrary;
using Core;

View File

@ -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;

View File

@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Geometry
{
using System;
using Core;
internal readonly struct PdfVector

View File

@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Geometry
{
using System;
using System.Globalization;
/// <summary>

View File

@ -0,0 +1,2 @@
global using System;
global using System.Collections.Generic;

Some files were not shown because too many files have changed in this diff Show More