Skip to content

Commit 31ca217

Browse files
Egor MartsynkovskyUbuntu
authored andcommitted
Remove ToDo
DEVSIX-6452
1 parent 517e37a commit 31ca217

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

layout/src/main/java/com/itextpdf/layout/renderer/AbstractRenderer.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,6 @@ public <T1> T1 getProperty(int key) {
331331
if (modelElement != null && ((property = modelElement.<T1>getProperty(key)) != null || modelElement.hasProperty(key))) {
332332
return (T1) property;
333333
}
334-
// TODO in some situations we will want to check inheritance with additional info, such as parent and descendant.
335334
if (parent != null && Property.isPropertyInherited(key) && (property = parent.<T1>getProperty(key)) != null) {
336335
return (T1) property;
337336
}
@@ -1718,7 +1717,6 @@ protected Float retrieveUnitValue(float baseValue, int property, boolean pointOn
17181717
if (value != null) {
17191718
if (value.getUnitType() == UnitValue.PERCENT) {
17201719
// during mathematical operations the precision can be lost, so avoiding them if possible (100 / 100 == 1) is a good practice
1721-
// TODO Maybe decrease the result value by AbstractRenderer.EPS ?
17221720
return value.getValue() != 100 ? baseValue * value.getValue() / 100 : baseValue;
17231721
} else {
17241722
assert value.getUnitType() == UnitValue.POINT;

0 commit comments

Comments
 (0)