Skip to content

Commit 596a48f

Browse files
ars18wrwiText-CI
authored andcommitted
Remove unnecessary TODOs
There is no issue in having an additional check just in case, even if the situations literally cannot happen DEVSIX-6522 Autoported commit. Original commit hash: [517e37afe]
1 parent f57a1a1 commit 596a48f

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

itext/itext.io/itext/io/font/woff2/Woff2Dec.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,7 +1102,6 @@ private static void ReadWoff2Header(byte[] data, int length, Woff2Dec.Woff2Heade
11021102
throw new FontCompressionException(FontCompressionException.READ_HEADER_FAILED);
11031103
}
11041104
src_offset = Round.Round4(meta_offset + meta_length);
1105-
//TODO literary can't happen
11061105
if (src_offset > int.MaxValue) {
11071106
throw new FontCompressionException(FontCompressionException.READ_HEADER_FAILED);
11081107
}
@@ -1112,7 +1111,6 @@ private static void ReadWoff2Header(byte[] data, int length, Woff2Dec.Woff2Heade
11121111
throw new FontCompressionException(FontCompressionException.READ_HEADER_FAILED);
11131112
}
11141113
src_offset = Round.Round4(priv_offset + priv_length);
1115-
//TODO literary can't happen
11161114
if (src_offset > int.MaxValue) {
11171115
throw new FontCompressionException(FontCompressionException.READ_HEADER_FAILED);
11181116
}

port-hash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
c1c77e2f6d1a6c792a190fac137df693c2616ee4
1+
517e37afe61c39f6862def5761354e3a093124bd

0 commit comments

Comments
 (0)