Skip to content

Commit

Permalink
Remove unused Usings (#2375)
Browse files Browse the repository at this point in the history
* remove unused usings

* reorder

* remove one that got added
  • Loading branch information
krschau authored Mar 22, 2024
1 parent 4fe92fa commit c1cdcc7
Show file tree
Hide file tree
Showing 155 changed files with 0 additions and 474 deletions.
3 changes: 0 additions & 3 deletions HyperVExtension/src/DevSetupAgent/DevAgentService.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using HyperVExtension.Telemetry;
using Microsoft.Windows.AppLifecycle;

namespace HyperVExtension.DevSetupAgent;

/// <summary>
Expand Down
4 changes: 0 additions & 4 deletions HyperVExtension/src/DevSetupAgent/HostRegistryChannel.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System.Diagnostics.PerformanceData;
using System.Runtime.InteropServices;
using System.Text;
using DevHome.Logging;
using HyperVExtension.HostGuestCommunication;
using Microsoft.UI.Xaml.Controls;
using Microsoft.Win32;
using Windows.Foundation.Collections;

namespace HyperVExtension.DevSetupAgent;

Expand Down
4 changes: 0 additions & 4 deletions HyperVExtension/src/DevSetupAgent/IHostExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;

namespace HyperVExtension.DevSetupAgent;

public static class IHostExtensions
Expand Down
2 changes: 0 additions & 2 deletions HyperVExtension/src/DevSetupAgent/IRequestManager.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using HyperVExtension.DevSetupAgent;

namespace HyperVExtension.DevSetupAgent;

/// <summary>
Expand Down
1 change: 0 additions & 1 deletion HyperVExtension/src/DevSetupAgent/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

using System.Runtime.InteropServices;
using HyperVExtension.DevSetupAgent;
using Microsoft.Windows.DevHome.DevSetupEngine;
using Windows.Win32;
using Windows.Win32.Security;
using Windows.Win32.System.Com;
Expand Down
6 changes: 0 additions & 6 deletions HyperVExtension/src/DevSetupAgent/RegistryWatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,8 @@
// Licensed under the MIT License.

using System.ComponentModel;
using System.Reflection;
using System.Reflection.Emit;
using System.Runtime.InteropServices;
using DevHome.Logging;
using Microsoft.Extensions.Logging;
using Microsoft.VisualBasic;
using Microsoft.Win32;
using Windows.Devices.Geolocation;
using Windows.Win32;
using Windows.Win32.Foundation;
using Windows.Win32.System.Registry;
Expand Down
2 changes: 0 additions & 2 deletions HyperVExtension/src/DevSetupAgent/RequestManager.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using static System.Reflection.Metadata.BlobBuilder;

namespace HyperVExtension.DevSetupAgent;

/// <summary>
Expand Down
2 changes: 0 additions & 2 deletions HyperVExtension/src/DevSetupAgent/Requests/AckRequest.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System.Text.Json.Nodes;

namespace HyperVExtension.DevSetupAgent;

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// Licensed under the MIT License.

using System.Runtime.InteropServices;
using System.Text.Json.Nodes;
using Microsoft.Windows.DevHome.DevSetupEngine;
using Windows.Win32;
using Windows.Win32.System.Com;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System.Text.Json.Nodes;

namespace HyperVExtension.DevSetupAgent;

/// <summary>
Expand Down
2 changes: 0 additions & 2 deletions HyperVExtension/src/DevSetupAgent/Requests/ErrorRequest.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System.Text.Json.Nodes;

namespace HyperVExtension.DevSetupAgent;

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System.Text.Json.Nodes;

namespace HyperVExtension.DevSetupAgent;

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System.Text.Json.Nodes;

namespace HyperVExtension.DevSetupAgent;

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System;
using System.Diagnostics;
using System.Security.Principal;
using System.Text.Json.Nodes;
using Windows.Win32;
using Windows.Win32.Foundation;
using Windows.Win32.Security.Authentication.Identity;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System.Runtime.Serialization;

namespace HyperVExtension.DevSetupAgent;

internal sealed class NtStatusException : Exception
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// Licensed under the MIT License.

using System.Text.Json;
using System.Text.Json.Nodes;
using HyperVExtension.HostGuestCommunication;
using Microsoft.Windows.DevHome.DevSetupEngine;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System.Text.Json;

namespace HyperVExtension.DevSetupAgent;

internal sealed class TooManyRequestsResponse : ResponseBase
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System;
using System.Collections.Generic;
using System.Reflection.Metadata;
using System.Runtime.InteropServices;
using Windows.Win32.Foundation;
using WinRT;
Expand Down
1 change: 0 additions & 1 deletion HyperVExtension/src/DevSetupEngine/IHostExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System;
using Microsoft.Management.Configuration;

namespace HyperVExtension.DevSetupEngine;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Text;
using System.Text.Json.Serialization;
using Windows.Foundation.Collections;

namespace HyperVExtension.HostGuestCommunication;

// Helper class to convert from the DevSetupEngine COM types to the .NET types and use them
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System;
using System.Collections.Generic;
using Microsoft.Extensions.DependencyInjection;

namespace HyperVExtension.HostGuestCommunication;

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Win32;

namespace HyperVExtension.HostGuestCommunication;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,10 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System.ComponentModel;
using System.Globalization;
using System.Runtime.InteropServices;
using System.Runtime.InteropServices.WindowsRuntime;
using System.Threading;
using HyperVExtension.HostGuestCommunication;
using HyperVExtension.Models;
using HyperVExtension.Providers;
using Microsoft.Windows.DevHome.SDK;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.Storage;
using Windows.Storage.Streams;
using Windows.Win32.Foundation;
using SDK = Microsoft.Windows.DevHome.SDK;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System.Globalization;
using System.Linq;
using System.Management;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading;
using System.Xml;
using System.Xml.Linq;
using System.Xml.XPath;
using HyperVExtension.HostGuestCommunication;
using HyperVExtension.Providers;
using Microsoft.Win32;

namespace HyperVExtension.CommunicationWithGuest;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System.Globalization;
using System.Linq;
using System.Management;
using System.Runtime.InteropServices;
using System.Threading;
using System.Xml;
using System.Xml.Linq;
using System.Xml.XPath;
using HyperVExtension.Providers;
using Microsoft.Win32;

namespace HyperVExtension.CommunicationWithGuest;

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System.Text.Json.Nodes;
using HyperVExtension.CommunicationWithGuest;

namespace HyperVExtension.CommunicationWithGuest;

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System.Text.Json;
using System.Text.Json.Nodes;
using HyperVExtension.Providers;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System.Globalization;
using System.Management;
using System.Management.Automation;
using System.Web.Services.Description;
using HyperVExtension.Providers;
using Windows.Win32.Foundation;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System.Globalization;
using Microsoft.Windows.DevHome.SDK;

namespace HyperVExtension.Exceptions;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HyperVExtension.Exceptions;

public class HyperVAdminGroupException : HyperVManagerException
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HyperVExtension.Exceptions;

public class HyperVManagerException : Exception
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HyperVExtension.Exceptions;

public class HyperVModuleNotLoadedException : HyperVManagerException
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System.Globalization;

namespace HyperVExtension.Helpers;

internal sealed class AdaptiveCardActionPayload
Expand Down
2 changes: 0 additions & 2 deletions HyperVExtension/src/HyperVExtension/Helpers/Json.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System.IO;
using System.Text;
using System.Text.Json;
using System.Text.Json.Serialization;
using System.Threading.Tasks;

namespace HyperVExtension.Helpers;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System;
using System.Data;
using System.Globalization;
using System.Management.Automation;
using System.Runtime.InteropServices.WindowsRuntime;
using System.Text;
using System.Threading;
using HyperVExtension.Common;
using HyperVExtension.Common.Extensions;
using HyperVExtension.CommunicationWithGuest;
Expand Down
Loading

0 comments on commit c1cdcc7

Please sign in to comment.