From 0254f0cb21e6d5a14438dca243506e3fad7e3e73 Mon Sep 17 00:00:00 2001 From: Raymond Date: Wed, 11 Aug 2021 09:18:27 -0400 Subject: [PATCH] Remove ClientState.PropertyChanged and Fody --- Dalamud/Dalamud.csproj | 3 - Dalamud/FodyWeavers.xml | 4 -- Dalamud/FodyWeavers.xsd | 74 ------------------------- Dalamud/Game/ClientState/ClientState.cs | 11 +--- 4 files changed, 1 insertion(+), 91 deletions(-) delete mode 100644 Dalamud/FodyWeavers.xml delete mode 100644 Dalamud/FodyWeavers.xsd diff --git a/Dalamud/Dalamud.csproj b/Dalamud/Dalamud.csproj index 040fccca1..db9755052 100644 --- a/Dalamud/Dalamud.csproj +++ b/Dalamud/Dalamud.csproj @@ -68,9 +68,6 @@ - - all - diff --git a/Dalamud/FodyWeavers.xml b/Dalamud/FodyWeavers.xml deleted file mode 100644 index 4e68ed1a8..000000000 --- a/Dalamud/FodyWeavers.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/Dalamud/FodyWeavers.xsd b/Dalamud/FodyWeavers.xsd deleted file mode 100644 index 69dbe488c..000000000 --- a/Dalamud/FodyWeavers.xsd +++ /dev/null @@ -1,74 +0,0 @@ - - - - - - - - - - - Used to control if the On_PropertyName_Changed feature is enabled. - - - - - Used to control if the Dependent properties feature is enabled. - - - - - Used to control if the IsChanged property feature is enabled. - - - - - Used to change the name of the method that fires the notify event. This is a string that accepts multiple values in a comma separated form. - - - - - Used to control if equality checks should be inserted. If false, equality checking will be disabled for the project. - - - - - Used to control if equality checks should use the Equals method resolved from the base class. - - - - - Used to control if equality checks should use the static Equals method resolved from the base class. - - - - - Used to turn off build warnings from this weaver. - - - - - Used to turn off build warnings about mismatched On_PropertyName_Changed methods. - - - - - - - - 'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed. - - - - - A comma-separated list of error codes that can be safely ignored in assembly verification. - - - - - 'false' to turn off automatic generation of the XML Schema file. - - - - - \ No newline at end of file diff --git a/Dalamud/Game/ClientState/ClientState.cs b/Dalamud/Game/ClientState/ClientState.cs index acfb704a5..43bff6a92 100644 --- a/Dalamud/Game/ClientState/ClientState.cs +++ b/Dalamud/Game/ClientState/ClientState.cs @@ -1,6 +1,4 @@ using System; -using System.ComponentModel; -using System.Linq; using System.Runtime.InteropServices; using Dalamud.Game.ClientState.Buddy; @@ -21,7 +19,7 @@ namespace Dalamud.Game.ClientState /// /// This class represents the state of the game client at the time of access. /// - public sealed class ClientState : INotifyPropertyChanged, IDisposable + public sealed class ClientState : IDisposable { private readonly Dalamud dalamud; private readonly ClientStateAddressResolver address; @@ -75,13 +73,6 @@ namespace Dalamud.Game.ClientState [UnmanagedFunctionPointer(CallingConvention.ThisCall)] private delegate IntPtr SetupTerritoryTypeDelegate(IntPtr manager, ushort terriType); - /// - /// Event that fires when a property changes. - /// -#pragma warning disable CS0067 - public event PropertyChangedEventHandler PropertyChanged; -#pragma warning restore - /// /// Event that gets fired when the current Territory changes. ///