From dc5790eae78e8ef7de33699b14da288fd2b569d0 Mon Sep 17 00:00:00 2001 From: "Tristan B. Velloza Kildaire" Date: Sun, 8 Oct 2023 17:11:12 +0200 Subject: [PATCH] Command - Removed requirement to pass `byte[]` to us - Removed commented-out method Test - Removed up-call --- source/davinci/base/components.d | 6 ++---- source/davinci/c2s/test.d | 1 - 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/source/davinci/base/components.d b/source/davinci/base/components.d index 68538b6..c276ef4 100644 --- a/source/davinci/base/components.d +++ b/source/davinci/base/components.d @@ -29,9 +29,9 @@ public abstract class Command { private byte[] data; - this(byte[] data) + this() { - this.data = data; + } /** @@ -46,8 +46,6 @@ public abstract class Command this.data = data; } - // public abstract byte[] encode(); - /** * Returns the bianry data of this * command diff --git a/source/davinci/c2s/test.d b/source/davinci/c2s/test.d index 53dc0d6..68524b0 100644 --- a/source/davinci/c2s/test.d +++ b/source/davinci/c2s/test.d @@ -10,7 +10,6 @@ public final class NopMessage : Command this() { registerClass!(typeof(this)); - super(cast(byte[])pack(this)); } public string getTestField()