Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup using statements #828

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/AcroForms/AcroForm.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.AcroForms
{
using System;
using System.Collections.Generic;
using System.Linq;
using Core;
using Fields;
Expand Down
3 changes: 1 addition & 2 deletions src/UglyToad.PdfPig/AcroForms/AcroFormExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
namespace UglyToad.PdfPig.AcroForms
{
using System.Collections.Generic;
using System.Linq;
using UglyToad.PdfPig.AcroForms.Fields;
using Fields;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

namespace UglyToad.PdfPig.Content
Expand Down Expand Up @@ -151,7 +149,7 @@
/// </summary>
public override string ToString()
{
return $"{Type} - {Name} [{string.Join(",", Intent)}]: {MarkedContent?.ToString()}";

Check warning on line 152 in src/UglyToad.PdfPig/Content/OptionalContentGroupElement.cs

View workflow job for this annotation

GitHub Actions / build

Possible null reference argument for parameter 'values' in 'string string.Join(string? separator, IEnumerable<string?> values)'.

Check warning on line 152 in src/UglyToad.PdfPig/Content/OptionalContentGroupElement.cs

View workflow job for this annotation

GitHub Actions / build

Possible null reference argument for parameter 'values' in 'string string.Join(string? separator, IEnumerable<string?> values)'.
}
}
}
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Content/Page.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Content
{
using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
using Annotations;
Expand Down
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig/Content/PageContent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
using Filters;
using Graphics;
using Graphics.Operations;
using System;
using System.Collections.Generic;
using Tokenization.Scanner;
using XObjects;

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

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

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

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

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

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

/// <summary>
/// A word.
Expand Down
Loading
Loading