Skip to content

Commit aa9ac5b

Browse files
committed
Remove deprecated class variables
1 parent 65563dd commit aa9ac5b

1 file changed

Lines changed: 0 additions & 19 deletions

File tree

src/layoutparser/elements.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -384,8 +384,6 @@ class Interval(BaseCoordElement):
384384

385385
_name = "interval"
386386
_features = ["start", "end", "axis", "canvas_height", "canvas_width"]
387-
name = "_interval"
388-
feature_names = ["x_1", "y_1", "x_2", "y_2", "height", "width"]
389387

390388
def __init__(self, start, end, axis, canvas_height=None, canvas_width=None):
391389

@@ -712,8 +710,6 @@ class Rectangle(BaseCoordElement):
712710

713711
_name = "rectangle"
714712
_features = ["x_1", "y_1", "x_2", "y_2"]
715-
name = "_rectangle"
716-
feature_names = ["x_1", "y_1", "x_2", "y_2"]
717713

718714
def __init__(self, x_1, y_1, x_2, y_2):
719715

@@ -981,19 +977,6 @@ class Quadrilateral(BaseCoordElement):
981977

982978
_name = "quadrilateral"
983979
_features = ["points", "height", "width"]
984-
name = "_quadrilateral"
985-
feature_names = [
986-
"p11",
987-
"p12",
988-
"p21",
989-
"p22",
990-
"p31",
991-
"p32",
992-
"p41",
993-
"p42",
994-
"height",
995-
"width",
996-
]
997980

998981
def __init__(self, points, height=None, width=None):
999982

@@ -1343,8 +1326,6 @@ class TextBlock(BaseLayoutElement):
13431326

13441327
_name = "textblock"
13451328
_features = ["text", "id", "type", "parent", "next", "score"]
1346-
name = "_textblock"
1347-
feature_names = ["text", "id", "type", "parent", "next", "score"]
13481329

13491330
def __init__(
13501331
self, block, text=None, id=None, type=None, parent=None, next=None, score=None

0 commit comments

Comments
 (0)