From cae3e807ccc457a03b0b369750de3e9dae1b3553 Mon Sep 17 00:00:00 2001 From: indigo-san Date: Sat, 5 Aug 2023 21:38:11 +0900 Subject: [PATCH] =?UTF-8?q?PropertyFlags=E3=82=92=E5=89=8A=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Beutl.Core/PropertyFlags.cs | 12 ------------ src/Beutl.Engine/Animation/KeyFrame.cs | 13 ------------- 2 files changed, 25 deletions(-) delete mode 100644 src/Beutl.Core/PropertyFlags.cs diff --git a/src/Beutl.Core/PropertyFlags.cs b/src/Beutl.Core/PropertyFlags.cs deleted file mode 100644 index 0713686ab..000000000 --- a/src/Beutl.Core/PropertyFlags.cs +++ /dev/null @@ -1,12 +0,0 @@ -namespace Beutl; - -[Flags] -public enum PropertyFlags -{ - None = 0, - Styleable = 1, - Designable = 1 << 1, - NotifyChanged = 1 << 2, - Animatable = 1 << 3, - All = Styleable | Designable | NotifyChanged | Animatable -} diff --git a/src/Beutl.Engine/Animation/KeyFrame.cs b/src/Beutl.Engine/Animation/KeyFrame.cs index 6816441f1..5b3b845c0 100644 --- a/src/Beutl.Engine/Animation/KeyFrame.cs +++ b/src/Beutl.Engine/Animation/KeyFrame.cs @@ -9,10 +9,8 @@ public class KeyFrame : CoreObject { public static readonly CoreProperty EasingProperty; public static readonly CoreProperty KeyTimeProperty; - //public static readonly CoreProperty DurationProperty; private Easing _easing; private TimeSpan _keyTime; - //private TimeSpan _duration; protected KeyFrame() { @@ -29,11 +27,6 @@ static KeyFrame() KeyTimeProperty = ConfigureProperty(nameof(KeyTime)) .Accessor(o => o.KeyTime, (o, v) => o.KeyTime = v) .Register(); - - //DurationProperty = ConfigureProperty(nameof(Duration)) - // .Accessor(o => o.Duration, (o, v) => o.Duration = v) - // .PropertyFlags(PropertyFlags.NotifyChanged) - // .Register(); } [NotAutoSerialized] @@ -49,12 +42,6 @@ public TimeSpan KeyTime set => SetAndRaise(KeyTimeProperty, ref _keyTime, value); } - //public TimeSpan Duration - //{ - // get => _duration; - // protected set => SetAndRaise(DurationProperty, ref _duration, value); - //} - internal virtual CoreProperty? Property { get; set; } public override void WriteToJson(JsonObject json)