Skip to content

Commit

Permalink
Use global usings for System headers.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ottermandias committed Jan 8, 2024
1 parent d62d7e3 commit a5c33a6
Show file tree
Hide file tree
Showing 140 changed files with 141 additions and 472 deletions.
3 changes: 1 addition & 2 deletions Glamourer/Api/GlamourerIpc.ApiVersions.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using Dalamud.Plugin;
using Dalamud.Plugin;
using Penumbra.Api.Helpers;

namespace Glamourer.Api;
Expand Down
5 changes: 1 addition & 4 deletions Glamourer/Api/GlamourerIpc.Apply.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Dalamud.Game.ClientState.Objects.Types;
using Dalamud.Game.ClientState.Objects.Types;
using Dalamud.Plugin;
using Glamourer.Designs;
using Glamourer.Events;
Expand Down
4 changes: 1 addition & 3 deletions Glamourer/Api/GlamourerIpc.Data.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Linq;
using Dalamud.Plugin;
using Dalamud.Plugin;
using Penumbra.Api.Helpers;

namespace Glamourer.Api;
Expand Down
3 changes: 1 addition & 2 deletions Glamourer/Api/GlamourerIpc.Events.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using Glamourer.Events;
using Glamourer.Events;
using Glamourer.Interop.Structs;
using Glamourer.State;
using Penumbra.Api.Helpers;
Expand Down
4 changes: 1 addition & 3 deletions Glamourer/Api/GlamourerIpc.GetCustomization.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Collections.Generic;
using System.Linq;
using Dalamud.Game.ClientState.Objects.Types;
using Dalamud.Game.ClientState.Objects.Types;
using Dalamud.Plugin;
using Penumbra.Api.Helpers;
using Penumbra.GameData.Actors;
Expand Down
3 changes: 1 addition & 2 deletions Glamourer/Api/GlamourerIpc.Revert.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Collections.Generic;
using Dalamud.Game.ClientState.Objects.Types;
using Dalamud.Game.ClientState.Objects.Types;
using Dalamud.Plugin;
using Glamourer.Events;
using Penumbra.Api.Helpers;
Expand Down
3 changes: 1 addition & 2 deletions Glamourer/Api/GlamourerIpc.Set.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Linq;
using Dalamud.Game.ClientState.Objects.Types;
using Dalamud.Game.ClientState.Objects.Types;
using Dalamud.Plugin;
using Glamourer.Events;
using Glamourer.Services;
Expand Down
3 changes: 0 additions & 3 deletions Glamourer/Api/GlamourerIpc.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
using Dalamud.Game.ClientState.Objects.Types;
using Dalamud.Plugin;
using System;
using System.Collections.Generic;
using System.Linq;
using Glamourer.Automation;
using Glamourer.Designs;
using Glamourer.Events;
Expand Down
3 changes: 1 addition & 2 deletions Glamourer/Automation/AutoDesign.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using Glamourer.Designs;
using Glamourer.Designs;
using Glamourer.GameData;
using Glamourer.Interop.Structs;
using Glamourer.State;
Expand Down
6 changes: 1 addition & 5 deletions Glamourer/Automation/AutoDesignApplier.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using Dalamud.Plugin.Services;
using Dalamud.Plugin.Services;
using FFXIVClientStructs.FFXIV.Client.UI.Misc;
using Glamourer.Designs;
using Glamourer.Events;
Expand Down
8 changes: 1 addition & 7 deletions Glamourer/Automation/AutoDesignManager.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
using Dalamud.Game.ClientState.Objects.Enums;
using Dalamud.Game.ClientState.Objects.Enums;
using Dalamud.Interface.Internal.Notifications;
using Glamourer.Designs;
using Glamourer.Events;
Expand Down
3 changes: 1 addition & 2 deletions Glamourer/Automation/AutoDesignSet.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Collections.Generic;
using Newtonsoft.Json.Linq;
using Newtonsoft.Json.Linq;
using Penumbra.GameData.Actors;

namespace Glamourer.Automation;
Expand Down
4 changes: 1 addition & 3 deletions Glamourer/Automation/FixedDesignMigrator.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Collections.Generic;
using System.Linq;
using Dalamud.Interface.Internal.Notifications;
using Dalamud.Interface.Internal.Notifications;
using Glamourer.Designs;
using Glamourer.Interop;
using Newtonsoft.Json.Linq;
Expand Down
6 changes: 1 addition & 5 deletions Glamourer/Configuration.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Dalamud.Configuration;
using Dalamud.Configuration;
using Dalamud.Game.ClientState.Keys;
using Dalamud.Interface.Internal.Notifications;
using Glamourer.Designs;
Expand Down
6 changes: 1 addition & 5 deletions Glamourer/Designs/Design.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Dalamud.Interface.Internal.Notifications;
using Dalamud.Interface.Internal.Notifications;
using Glamourer.Interop.Penumbra;
using Glamourer.Services;
using Newtonsoft.Json;
Expand Down
4 changes: 0 additions & 4 deletions Glamourer/Designs/DesignBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
using OtterGui.Classes;
using Penumbra.GameData.Enums;
using Penumbra.GameData.Structs;
using System;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using System.Numerics;
using Penumbra.GameData.DataContainers;

namespace Glamourer.Designs;
Expand Down
3 changes: 1 addition & 2 deletions Glamourer/Designs/DesignBase64Migration.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using Glamourer.Services;
using Glamourer.Services;
using OtterGui;
using Penumbra.GameData.DataContainers;
using Penumbra.GameData.Enums;
Expand Down
5 changes: 0 additions & 5 deletions Glamourer/Designs/DesignColors.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Numerics;
using Dalamud.Interface;
using Dalamud.Interface.Internal.Notifications;
using Dalamud.Interface.Utility.Raii;
Expand Down
6 changes: 1 addition & 5 deletions Glamourer/Designs/DesignConverter.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
using Glamourer.GameData;
using Glamourer.GameData;
using Glamourer.Services;
using Glamourer.State;
using Glamourer.Utility;
Expand Down
4 changes: 1 addition & 3 deletions Glamourer/Designs/DesignData.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Runtime.CompilerServices;
using Glamourer.GameData;
using Glamourer.GameData;
using Glamourer.Services;
using OtterGui.Classes;
using Penumbra.GameData.Enums;
Expand Down
8 changes: 1 addition & 7 deletions Glamourer/Designs/DesignFileSystem.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
using Dalamud.Interface.Internal.Notifications;
using Dalamud.Interface.Internal.Notifications;
using Glamourer.Events;
using Glamourer.Services;
using Newtonsoft.Json;
Expand Down
13 changes: 1 addition & 12 deletions Glamourer/Designs/DesignManager.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Security.Cryptography;
using System.Threading;
using System.Threading.Tasks;
using Dalamud.Utility;
using Dalamud.Utility;
using Glamourer.Events;
using Glamourer.GameData;
using Glamourer.Interop.Penumbra;
Expand All @@ -20,7 +10,6 @@
using Penumbra.GameData.DataContainers;
using Penumbra.GameData.Enums;
using Penumbra.GameData.Structs;
using static Glamourer.State.ActorState;

namespace Glamourer.Designs;

Expand Down
4 changes: 1 addition & 3 deletions Glamourer/EphemeralConfig.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.IO;
using Dalamud.Interface.Internal.Notifications;
using Dalamud.Interface.Internal.Notifications;
using Glamourer.Gui;
using Glamourer.Services;
using Newtonsoft.Json;
Expand Down
4 changes: 1 addition & 3 deletions Glamourer/Events/GPoseService.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Collections.Concurrent;
using Dalamud.Plugin.Services;
using Dalamud.Plugin.Services;
using OtterGui.Classes;

namespace Glamourer.Events;
Expand Down
1 change: 0 additions & 1 deletion Glamourer/Events/ObjectUnlocked.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using OtterGui.Classes;

namespace Glamourer.Events;
Expand Down
1 change: 0 additions & 1 deletion Glamourer/Events/SlotUpdating.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using Glamourer.Interop.Structs;
using OtterGui.Classes;
using Penumbra.GameData.Enums;
Expand Down
5 changes: 1 addition & 4 deletions Glamourer/GameData/ColorParameters.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System;
using System.Collections;
using System.Collections.Generic;
using Dalamud.Plugin.Services;
using Dalamud.Plugin.Services;
using Penumbra.String.Functions;

namespace Glamourer.GameData;
Expand Down
4 changes: 1 addition & 3 deletions Glamourer/GameData/CustomizeData.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Runtime.InteropServices;
using Penumbra.GameData.Enums;
using Penumbra.GameData.Enums;
using Penumbra.GameData.Structs;

namespace Glamourer.GameData;
Expand Down
7 changes: 1 addition & 6 deletions Glamourer/GameData/CustomizeManager.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
using Dalamud.Interface.Internal;
using Dalamud.Interface.Internal;
using Dalamud.Plugin.Services;
using OtterGui.Classes;
using OtterGui.Services;
Expand Down
5 changes: 1 addition & 4 deletions Glamourer/GameData/CustomizeParameterData.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System;
using System.Numerics;
using System.Runtime.CompilerServices;
using FFXIVClientStructs.FFXIV.Shader;
using FFXIVClientStructs.FFXIV.Shader;

namespace Glamourer.GameData;

Expand Down
7 changes: 1 addition & 6 deletions Glamourer/GameData/CustomizeParameterFlag.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;

namespace Glamourer.GameData;
namespace Glamourer.GameData;

[Flags]
public enum CustomizeParameterFlag : ushort
Expand Down
6 changes: 1 addition & 5 deletions Glamourer/GameData/CustomizeSet.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using OtterGui;
using OtterGui;
using Penumbra.GameData.Enums;
using Penumbra.GameData.Structs;

Expand Down
6 changes: 1 addition & 5 deletions Glamourer/GameData/CustomizeSetFactory.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using Dalamud;
using Dalamud;
using Dalamud.Plugin.Services;
using Dalamud.Utility;
using Lumina.Excel;
Expand Down
7 changes: 1 addition & 6 deletions Glamourer/GameData/NpcCustomizeSet.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
using Dalamud.Plugin.Services;
using Dalamud.Plugin.Services;
using Dalamud.Utility;
using FFXIVClientStructs.FFXIV.Client.Game.Object;
using Lumina.Excel.GeneratedSheets;
Expand Down
4 changes: 1 addition & 3 deletions Glamourer/GameData/NpcData.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Text;
using FFXIVClientStructs.FFXIV.Client.Game.Object;
using FFXIVClientStructs.FFXIV.Client.Game.Object;
using Penumbra.GameData.Structs;

namespace Glamourer.GameData;
Expand Down
3 changes: 1 addition & 2 deletions Glamourer/Glamourer.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Reflection;
using Dalamud.Plugin;
using Dalamud.Plugin;
using Glamourer.Api;
using Glamourer.Gui;
using Glamourer.Interop;
Expand Down
19 changes: 19 additions & 0 deletions Glamourer/GlobalUsings.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
global using System;
global using System.Collections;
global using System.Collections.Concurrent;
global using System.Collections.Generic;
global using System.Diagnostics;
global using System.Diagnostics.CodeAnalysis;
global using System.Globalization;
global using System.IO;
global using System.IO.Compression;
global using System.Linq;
global using System.Numerics;
global using System.Reflection;
global using System.Runtime.CompilerServices;
global using System.Runtime.InteropServices;
global using System.Security.Cryptography;
global using System.Text;
global using System.Text.RegularExpressions;
global using System.Threading;
global using System.Threading.Tasks;
1 change: 0 additions & 1 deletion Glamourer/Gui/Colors.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System.Collections.Generic;
using ImGuiNET;

namespace Glamourer.Gui;
Expand Down
3 changes: 1 addition & 2 deletions Glamourer/Gui/Customization/CustomizationDrawer.Color.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Numerics;
using Dalamud.Interface;
using Dalamud.Interface;
using Dalamud.Interface.Utility;
using Glamourer.GameData;
using ImGuiNET;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System;
using System.Linq;
using System.Numerics;
using Dalamud.Interface;
using Dalamud.Interface;
using ImGuiNET;
using OtterGui;
using OtterGui.Raii;
Expand Down
4 changes: 1 addition & 3 deletions Glamourer/Gui/Customization/CustomizationDrawer.Icon.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Numerics;
using Glamourer.GameData;
using Glamourer.GameData;
using ImGuiNET;
using OtterGui;
using OtterGui.Raii;
Expand Down
4 changes: 1 addition & 3 deletions Glamourer/Gui/Customization/CustomizationDrawer.Simple.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Numerics;
using ImGuiNET;
using ImGuiNET;
using OtterGui;
using OtterGui.Raii;
using Penumbra.GameData.Enums;
Expand Down
5 changes: 1 addition & 4 deletions Glamourer/Gui/Customization/CustomizationDrawer.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System;
using System.Numerics;
using System.Reflection;
using Dalamud.Interface.Internal;
using Dalamud.Interface.Internal;
using Dalamud.Interface.Utility;
using Dalamud.Plugin;
using Glamourer.GameData;
Expand Down
Loading

0 comments on commit a5c33a6

Please sign in to comment.