diff --git a/Ooui/Button.cs b/Ooui/Button.cs index 4102dcd..e11da52 100644 --- a/Ooui/Button.cs +++ b/Ooui/Button.cs @@ -7,7 +7,6 @@ namespace Ooui { public class Button : FormControl { - ButtonType typ = ButtonType.Submit; public ButtonType Type { get => GetAttribute ("type", ButtonType.Submit); set => SetAttributeProperty ("type", value); diff --git a/Ooui/Element.cs b/Ooui/Element.cs index cbd1430..5e21649 100644 --- a/Ooui/Element.cs +++ b/Ooui/Element.cs @@ -20,7 +20,6 @@ namespace Ooui set => SetAttributeProperty ("title", value); } - bool hidden = false; public bool IsHidden { get => GetBooleanAttribute ("hidden"); set => SetBooleanAttributeProperty ("hidden", value); diff --git a/Ooui/Form.cs b/Ooui/Form.cs index 897a319..89aca0e 100644 --- a/Ooui/Form.cs +++ b/Ooui/Form.cs @@ -4,7 +4,6 @@ namespace Ooui { public class Form : Element { - string action = ""; public string Action { get => GetStringAttribute ("action", ""); set => SetAttributeProperty ("action", value ?? ""); diff --git a/Ooui/FormControl.cs b/Ooui/FormControl.cs index 461b301..16f3901 100644 --- a/Ooui/FormControl.cs +++ b/Ooui/FormControl.cs @@ -9,7 +9,6 @@ namespace Ooui set => SetAttributeProperty ("name", value); } - bool isDisabled = false; public bool IsDisabled { get => GetBooleanAttribute ("disabled"); set => SetBooleanAttributeProperty ("disabled", value); diff --git a/Ooui/Ooui.csproj b/Ooui/Ooui.csproj index 5305768..36171bb 100644 --- a/Ooui/Ooui.csproj +++ b/Ooui/Ooui.csproj @@ -9,6 +9,7 @@ https://github.com/praeclarum/Ooui/blob/master/LICENSE https://github.com/praeclarum/Ooui.git netstandard2.0 + true diff --git a/Ooui/TextArea.cs b/Ooui/TextArea.cs index e6864b2..8f0a075 100644 --- a/Ooui/TextArea.cs +++ b/Ooui/TextArea.cs @@ -25,7 +25,6 @@ namespace Ooui set => SetAttributeProperty ("rows", value); } - int cols = 20; public int Columns { get => GetAttribute ("cols", 20); set => SetAttributeProperty ("cols", value); diff --git a/Ooui/WebSocketSession.cs b/Ooui/WebSocketSession.cs index 7dcb27c..7b40e4d 100644 --- a/Ooui/WebSocketSession.cs +++ b/Ooui/WebSocketSession.cs @@ -115,50 +115,6 @@ namespace Ooui } } - void QueueStateMessagesLocked (EventTarget target) - { - if (target == null) return; - var created = false; - foreach (var m in target.StateMessages) { - if (m.MessageType == MessageType.Create) { - createdIds.Add (m.TargetId); - created = true; - } - if (created) { - QueueMessageLocked (m); - } - } - } - - void QueueMessageLocked (Message message) - { - // - // Make sure all the referenced objects have been created - // - if (!createdIds.Contains (message.TargetId)) { - QueueStateMessagesLocked (element.GetElementById (message.TargetId)); - } - if (message.Value is EventTarget ve) { - if (!createdIds.Contains (ve.Id)) { - QueueStateMessagesLocked (ve); - } - } - else if (message.Value is Array a) { - for (var i = 0; i < a.Length; i++) { - // Console.WriteLine ($"A{i} = {a.GetValue(i)}"); - if (a.GetValue (i) is EventTarget e && !createdIds.Contains (e.Id)) { - QueueStateMessagesLocked (e); - } - } - } - - // - // Add it to the queue - // - //Console.WriteLine ($"QM {message.MessageType} {message.TargetId} {message.Key} {message.Value}"); - queuedMessages.Add (message); - } - protected override void QueueMessage (Message message) { base.QueueMessage (message);