Skip to content

Commit e5f6cfb

Browse files
author
Alex Usbergo
committed
unused initializers
1 parent 314f613 commit e5f6cfb

File tree

3 files changed

+1
-28
lines changed

3 files changed

+1
-28
lines changed

Render/ComponentView.swift

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -160,18 +160,6 @@ public class FlexboxComponentView: BaseComponentView {
160160
/// This class define a view fragment as a composition of 'ComponentType' objects.
161161
public class ComponentView: FlexboxComponentView {
162162

163-
public required init() {
164-
super.init()
165-
}
166-
167-
public override init(frame: CGRect) {
168-
super.init(frame: frame)
169-
}
170-
171-
required public init?(coder aDecoder: NSCoder) {
172-
super.init(coder: aDecoder)
173-
}
174-
175163
/// Render the component.
176164
/// - parameter size: The bounding box for this component. The default will determine the intrinsic content
177165
/// size for this component.
@@ -241,21 +229,6 @@ public class ComponentView: FlexboxComponentView {
241229
/// view configuration/view layout is not).
242230
public class StaticComponentView: FlexboxComponentView {
243231

244-
public required init() {
245-
super.init()
246-
self.initalizeComponent()
247-
}
248-
249-
public override init(frame: CGRect) {
250-
super.init(frame: frame)
251-
self.initalizeComponent()
252-
}
253-
254-
required public init?(coder aDecoder: NSCoder) {
255-
super.init(coder: aDecoder)
256-
self.initalizeComponent()
257-
}
258-
259232
public override func initalizeComponent() {
260233
super.initalizeComponent()
261234
self._root = self.construct()

RenderTodoDemo/RenderTodoDemo/AlbumComponentView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ extension Album: ComponentStateTypeUniquing {
1919
}
2020
}
2121

22-
class AlbumComponentView: ComponentView {
22+
class AlbumComponentView: StaticComponentView {
2323

2424
// If the component is used as list item it should be registered
2525
// as prototype for the infra.

0 commit comments

Comments
 (0)