Skip to content

Commit f1fcca9

Browse files
committed
refactor: size can not be null
1 parent 138518a commit f1fcca9

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

PdfSharpCore/Drawing/XGraphics.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,6 @@ public sealed class XGraphics : IDisposable
123123
}
124124
XGraphics(XSize size, XGraphicsUnit pageUnit, XPageDirection pageDirection)
125125
{
126-
if (size == null)
127-
throw new ArgumentNullException("size");
128-
129-
130126
_gsStack = new GraphicsStateStack(this);
131127
_pageSizePoints = new XSize(size.Width, size.Height);
132128
switch (pageUnit)

0 commit comments

Comments
 (0)