35
35
*/
36
36
class CategoryTree
37
37
{
38
- /**
39
- * In depth we need to calculate only children nodes, so the first wrapped node should be ignored
40
- */
41
- private const DEPTH_OFFSET = 1 ;
42
-
43
38
/**
44
39
* @var CollectionFactory
45
40
*/
@@ -55,11 +50,6 @@ class CategoryTree
55
50
*/
56
51
private $ depthCalculator ;
57
52
58
- /**
59
- * @var LevelCalculator
60
- */
61
- private $ levelCalculator ;
62
-
63
53
/**
64
54
* @var MetadataPool
65
55
*/
@@ -74,22 +64,19 @@ class CategoryTree
74
64
* @param CollectionFactory $collectionFactory
75
65
* @param AttributesJoiner $attributesJoiner
76
66
* @param DepthCalculator $depthCalculator
77
- * @param LevelCalculator $levelCalculator
78
67
* @param MetadataPool $metadata
79
68
* @param CollectionProcessorInterface $collectionProcessor
80
69
*/
81
70
public function __construct (
82
71
CollectionFactory $ collectionFactory ,
83
72
AttributesJoiner $ attributesJoiner ,
84
73
DepthCalculator $ depthCalculator ,
85
- LevelCalculator $ levelCalculator ,
86
74
MetadataPool $ metadata ,
87
75
CollectionProcessorInterface $ collectionProcessor
88
76
) {
89
77
$ this ->collectionFactory = $ collectionFactory ;
90
78
$ this ->attributesJoiner = $ attributesJoiner ;
91
79
$ this ->depthCalculator = $ depthCalculator ;
92
- $ this ->levelCalculator = $ levelCalculator ;
93
80
$ this ->metadata = $ metadata ;
94
81
$ this ->collectionProcessor = $ collectionProcessor ;
95
82
}
0 commit comments