Browse Source

Cleaned up using statements

MarcinZiabek 4 years ago
parent
commit
e4203838cb

+ 0 - 1
QuestPDF.Examples/Engine/ExampleTestBase.cs

@@ -4,7 +4,6 @@ using System.IO;
 using System.Linq;
 using System.Linq;
 using System.Reflection;
 using System.Reflection;
 using NUnit.Framework;
 using NUnit.Framework;
-using QuestPDF.Drawing;
 using QuestPDF.Elements;
 using QuestPDF.Elements;
 using QuestPDF.Fluent;
 using QuestPDF.Fluent;
 using QuestPDF.Infrastructure;
 using QuestPDF.Infrastructure;

+ 0 - 1
QuestPDF.Examples/FrameExample.cs

@@ -1,4 +1,3 @@
-using System.Linq;
 using QuestPDF.Examples.Engine;
 using QuestPDF.Examples.Engine;
 using QuestPDF.Fluent;
 using QuestPDF.Fluent;
 using QuestPDF.Helpers;
 using QuestPDF.Helpers;

+ 0 - 1
QuestPDF.ReportSample/DataSource.cs

@@ -2,7 +2,6 @@ using System;
 using System.Collections.Generic;
 using System.Collections.Generic;
 using System.Linq;
 using System.Linq;
 using QuestPDF.Helpers;
 using QuestPDF.Helpers;
-using QuestPDF.ReportSample.Layouts;
 
 
 namespace QuestPDF.ReportSample
 namespace QuestPDF.ReportSample
 {
 {

+ 0 - 1
QuestPDF.ReportSample/Helpers.cs

@@ -1,6 +1,5 @@
 using System;
 using System;
 using System.IO;
 using System.IO;
-using QuestPDF.ReportSample.Layouts;
 using SkiaSharp;
 using SkiaSharp;
 
 
 namespace QuestPDF.ReportSample
 namespace QuestPDF.ReportSample

+ 0 - 1
QuestPDF.ReportSample/Layouts/Helpers.cs

@@ -1,5 +1,4 @@
 using System;
 using System;
-using System.Drawing;
 using QuestPDF.Fluent;
 using QuestPDF.Fluent;
 using QuestPDF.Helpers;
 using QuestPDF.Helpers;
 using QuestPDF.Infrastructure;
 using QuestPDF.Infrastructure;

+ 0 - 2
QuestPDF.ReportSample/Layouts/SectionTemplate.cs

@@ -1,5 +1,3 @@
-using System;
-using System.Linq;
 using QuestPDF.Fluent;
 using QuestPDF.Fluent;
 using QuestPDF.Helpers;
 using QuestPDF.Helpers;
 using QuestPDF.Infrastructure;
 using QuestPDF.Infrastructure;

+ 1 - 3
QuestPDF.ReportSample/Layouts/TableOfContentsTemplate.cs

@@ -1,6 +1,4 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
+using System.Collections.Generic;
 using QuestPDF.Fluent;
 using QuestPDF.Fluent;
 using QuestPDF.Infrastructure;
 using QuestPDF.Infrastructure;
 
 

+ 0 - 1
QuestPDF.ReportSample/Tests.cs

@@ -4,7 +4,6 @@ using System.IO;
 using System.Linq;
 using System.Linq;
 using NUnit.Framework;
 using NUnit.Framework;
 using QuestPDF.Fluent;
 using QuestPDF.Fluent;
-using QuestPDF.Infrastructure;
 using QuestPDF.ReportSample.Layouts;
 using QuestPDF.ReportSample.Layouts;
 
 
 namespace QuestPDF.ReportSample
 namespace QuestPDF.ReportSample

+ 1 - 2
QuestPDF.UnitTests/AspectRatioTests.cs

@@ -1,5 +1,4 @@
-using Moq;
-using NUnit.Framework;
+using NUnit.Framework;
 using QuestPDF.Drawing.SpacePlan;
 using QuestPDF.Drawing.SpacePlan;
 using QuestPDF.Elements;
 using QuestPDF.Elements;
 using QuestPDF.Infrastructure;
 using QuestPDF.Infrastructure;

+ 1 - 2
QuestPDF.UnitTests/DynamicImageTests.cs

@@ -1,5 +1,4 @@
-using System;
-using FluentAssertions;
+using FluentAssertions;
 using NUnit.Framework;
 using NUnit.Framework;
 using QuestPDF.Drawing.SpacePlan;
 using QuestPDF.Drawing.SpacePlan;
 using QuestPDF.Elements;
 using QuestPDF.Elements;

+ 1 - 4
QuestPDF.UnitTests/GridTests.cs

@@ -1,10 +1,7 @@
-using System;
-using FluentAssertions;
-using FluentAssertions.Equivalency;
+using FluentAssertions;
 using NUnit.Framework;
 using NUnit.Framework;
 using QuestPDF.Elements;
 using QuestPDF.Elements;
 using QuestPDF.Fluent;
 using QuestPDF.Fluent;
-using QuestPDF.Infrastructure;
 using QuestPDF.UnitTests.TestEngine;
 using QuestPDF.UnitTests.TestEngine;
 
 
 namespace QuestPDF.UnitTests
 namespace QuestPDF.UnitTests

+ 1 - 3
QuestPDF.UnitTests/ImageTests.cs

@@ -1,6 +1,4 @@
-using Moq;
-using NUnit.Framework;
-using QuestPDF.Drawing;
+using NUnit.Framework;
 using QuestPDF.Drawing.SpacePlan;
 using QuestPDF.Drawing.SpacePlan;
 using QuestPDF.Elements;
 using QuestPDF.Elements;
 using QuestPDF.Fluent;
 using QuestPDF.Fluent;

+ 1 - 3
QuestPDF.UnitTests/PaddingTests.cs

@@ -1,6 +1,4 @@
-using FluentAssertions;
-using Moq;
-using NUnit.Framework;
+using NUnit.Framework;
 using QuestPDF.Drawing.SpacePlan;
 using QuestPDF.Drawing.SpacePlan;
 using QuestPDF.Elements;
 using QuestPDF.Elements;
 using QuestPDF.Infrastructure;
 using QuestPDF.Infrastructure;

+ 1 - 2
QuestPDF.UnitTests/PageBreakTests.cs

@@ -1,5 +1,4 @@
-using FluentAssertions;
-using NUnit.Framework;
+using NUnit.Framework;
 using QuestPDF.Drawing.SpacePlan;
 using QuestPDF.Drawing.SpacePlan;
 using QuestPDF.Elements;
 using QuestPDF.Elements;
 using QuestPDF.Infrastructure;
 using QuestPDF.Infrastructure;

+ 1 - 4
QuestPDF.UnitTests/RowTests.cs

@@ -1,11 +1,8 @@
-using System;
-using System.Collections.Generic;
+using System.Collections.Generic;
 using FluentAssertions;
 using FluentAssertions;
-using FluentAssertions.Equivalency;
 using NUnit.Framework;
 using NUnit.Framework;
 using QuestPDF.Elements;
 using QuestPDF.Elements;
 using QuestPDF.Fluent;
 using QuestPDF.Fluent;
-using QuestPDF.Infrastructure;
 using QuestPDF.UnitTests.TestEngine;
 using QuestPDF.UnitTests.TestEngine;
 
 
 namespace QuestPDF.UnitTests
 namespace QuestPDF.UnitTests

+ 1 - 3
QuestPDF.UnitTests/StackTests.cs

@@ -1,7 +1,5 @@
-using System;
-using System.Collections.Generic;
+using System.Collections.Generic;
 using FluentAssertions;
 using FluentAssertions;
-using FluentAssertions.Equivalency;
 using NUnit.Framework;
 using NUnit.Framework;
 using QuestPDF.Drawing.SpacePlan;
 using QuestPDF.Drawing.SpacePlan;
 using QuestPDF.Elements;
 using QuestPDF.Elements;

+ 0 - 1
QuestPDF/Drawing/CanvasCache.cs

@@ -7,7 +7,6 @@ namespace QuestPDF.Drawing
 {
 {
     internal static class CanvasCache
     internal static class CanvasCache
     {
     {
-        private static ConcurrentDictionary<string, SKTypeface> Fonts = new ConcurrentDictionary<string, SKTypeface>();
         private static ConcurrentDictionary<string, SKPaint> Paints = new ConcurrentDictionary<string, SKPaint>();
         private static ConcurrentDictionary<string, SKPaint> Paints = new ConcurrentDictionary<string, SKPaint>();
         private static ConcurrentDictionary<string, SKPaint> ColorPaint = new ConcurrentDictionary<string, SKPaint>();
         private static ConcurrentDictionary<string, SKPaint> ColorPaint = new ConcurrentDictionary<string, SKPaint>();
 
 

+ 0 - 1
QuestPDF/Drawing/DocumentGenerator.cs

@@ -3,7 +3,6 @@ using System.Collections.Generic;
 using System.IO;
 using System.IO;
 using QuestPDF.Drawing.Exceptions;
 using QuestPDF.Drawing.Exceptions;
 using QuestPDF.Drawing.SpacePlan;
 using QuestPDF.Drawing.SpacePlan;
-using QuestPDF.Elements;
 using QuestPDF.Fluent;
 using QuestPDF.Fluent;
 using QuestPDF.Helpers;
 using QuestPDF.Helpers;
 using QuestPDF.Infrastructure;
 using QuestPDF.Infrastructure;

+ 1 - 3
QuestPDF/Elements/Canvas.cs

@@ -1,6 +1,4 @@
-using System;
-using QuestPDF.Drawing.SpacePlan;
-using QuestPDF.Helpers;
+using QuestPDF.Drawing.SpacePlan;
 using QuestPDF.Infrastructure;
 using QuestPDF.Infrastructure;
 using SkiaSharp;
 using SkiaSharp;
 
 

+ 0 - 1
QuestPDF/Elements/Decoration.cs

@@ -1,5 +1,4 @@
 using System;
 using System;
-using System.Collections.Generic;
 using QuestPDF.Drawing.SpacePlan;
 using QuestPDF.Drawing.SpacePlan;
 using QuestPDF.Infrastructure;
 using QuestPDF.Infrastructure;
 
 

+ 1 - 2
QuestPDF/Elements/ExternalLink.cs

@@ -1,5 +1,4 @@
-using QuestPDF.Drawing.SpacePlan;
-using QuestPDF.Infrastructure;
+using QuestPDF.Infrastructure;
 
 
 namespace QuestPDF.Elements
 namespace QuestPDF.Elements
 {
 {

+ 1 - 2
QuestPDF/Elements/InternalLink.cs

@@ -1,5 +1,4 @@
-using QuestPDF.Drawing.SpacePlan;
-using QuestPDF.Infrastructure;
+using QuestPDF.Infrastructure;
 
 
 namespace QuestPDF.Elements
 namespace QuestPDF.Elements
 {
 {

+ 1 - 3
QuestPDF/Elements/InternalLocation.cs

@@ -1,6 +1,4 @@
-using System;
-using QuestPDF.Drawing.SpacePlan;
-using QuestPDF.Infrastructure;
+using QuestPDF.Infrastructure;
 
 
 namespace QuestPDF.Elements
 namespace QuestPDF.Elements
 {
 {

+ 0 - 2
QuestPDF/Elements/Page.cs

@@ -1,5 +1,3 @@
-using System;
-using QuestPDF.Drawing.SpacePlan;
 using QuestPDF.Fluent;
 using QuestPDF.Fluent;
 using QuestPDF.Infrastructure;
 using QuestPDF.Infrastructure;
 
 

+ 0 - 2
QuestPDF/Elements/Section.cs

@@ -1,5 +1,3 @@
-using System;
-using QuestPDF.Drawing.SpacePlan;
 using QuestPDF.Fluent;
 using QuestPDF.Fluent;
 using QuestPDF.Infrastructure;
 using QuestPDF.Infrastructure;
 
 

+ 0 - 3
QuestPDF/Fluent/ElementExtensions.cs

@@ -1,10 +1,7 @@
 using System;
 using System;
-using System.IO;
-using QuestPDF.Drawing;
 using QuestPDF.Drawing.Exceptions;
 using QuestPDF.Drawing.Exceptions;
 using QuestPDF.Elements;
 using QuestPDF.Elements;
 using QuestPDF.Infrastructure;
 using QuestPDF.Infrastructure;
-using SkiaSharp;
 
 
 namespace QuestPDF.Fluent
 namespace QuestPDF.Fluent
 {
 {

+ 0 - 1
QuestPDF/Fluent/GridExtensions.cs

@@ -1,5 +1,4 @@
 using System;
 using System;
-using System.Collections.Generic;
 using QuestPDF.Elements;
 using QuestPDF.Elements;
 using QuestPDF.Infrastructure;
 using QuestPDF.Infrastructure;
 
 

+ 1 - 4
QuestPDF/Infrastructure/TextStyle.cs

@@ -1,7 +1,4 @@
-using System;
-using QuestPDF.Elements;
-
-namespace QuestPDF.Infrastructure
+namespace QuestPDF.Infrastructure
 {
 {
     public class TextStyle
     public class TextStyle
     {
     {