From c8b50d9e80fea5abbbf30cb878716bb25715e0ff Mon Sep 17 00:00:00 2001 From: X Code Date: Thu, 23 Dec 2021 17:30:18 -0800 Subject: [PATCH] Remove abstract class StyledNode --- lib/src/models/documents/nodes/node.dart | 34 ------------------------ 1 file changed, 34 deletions(-) diff --git a/lib/src/models/documents/nodes/node.dart b/lib/src/models/documents/nodes/node.dart index 8863138a..6805a3be 100644 --- a/lib/src/models/documents/nodes/node.dart +++ b/lib/src/models/documents/nodes/node.dart @@ -120,40 +120,6 @@ abstract class Node extends LinkedListEntry { /// abstract methods end } -/// An interface for document nodes with style. -abstract class StyledNode implements Node { - /// Style of this node. - @override - Style get style; -} - -/// Mixin used by nodes that wish to implement [StyledNode] interface. -abstract class StyledNodeMixin implements StyledNode { - @override - Style get style => _style; - @override - Style _style = Style(); - - /// Applies style [attribute] to this node. - @override - void applyAttribute(Attribute attribute) { - _style = _style.merge(attribute); - } - - /// Applies new style [value] to this node. Provided [value] is merged - /// into current style. - @override - void applyStyle(Style value) { - _style = _style.mergeAll(value); - } - - /// Clears style of this node. - @override - void clearStyle() { - _style = Style(); - } -} - /// Root node of document tree. class Root extends Container> { @override