Skip to content

Commit

Permalink
Remove unused using statements. (#1313)
Browse files Browse the repository at this point in the history
Signed-off-by: Rafael Camara <[email protected]>
  • Loading branch information
RafaelJCamara authored Oct 24, 2024
1 parent 94b97e2 commit c61b15d
Show file tree
Hide file tree
Showing 61 changed files with 22 additions and 152 deletions.
5 changes: 0 additions & 5 deletions examples/AspNetCore/GrpcServiceSample/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@
// limitations under the License.
// ------------------------------------------------------------------------

using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Server.Kestrel.Core;
using Microsoft.Extensions.Hosting;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
using Dapr.Client;
using Dapr.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using System.Collections.Generic;
using System;

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using System.Threading;
using System.Collections.Generic;
using System.Threading.Tasks;
using ControllerSample;
using Dapr;
Expand Down
1 change: 0 additions & 1 deletion examples/Client/ConfigurationApi/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using Dapr.Client;
using Dapr.Extensions.Configuration;
using System.Collections.Generic;
using System.Threading;

namespace ConfigurationApi
{
Expand Down
5 changes: 1 addition & 4 deletions examples/Client/ConfigurationApi/Startup.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
using System;
using Dapr.AspNetCore;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Primitives;

namespace ConfigurationApi
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System;
using System.Linq;
using System.Text;
using System;
using System.Linq;
using System.Text.Json;
using System.Threading.Tasks;
using Dapr;
Expand Down
3 changes: 1 addition & 2 deletions examples/Client/DistributedLock/Model/StateData.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
namespace DistributedLock.Model
namespace DistributedLock.Model
{
#nullable enable
public class StateData
Expand Down
5 changes: 0 additions & 5 deletions examples/Client/DistributedLock/Program.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;

namespace DistributedLock
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

using System;
using System.Net.Http.Json;
using System.Text.Json;
using System.Threading;
using System.Threading.Tasks;
using Dapr.Client;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Dapr.Client;
using Dapr.Workflow;
using Dapr.Workflow;
using Microsoft.Extensions.Logging;

namespace WorkflowConsoleApp.Activities
Expand Down
5 changes: 0 additions & 5 deletions src/Dapr.Actors/Communication/ActorInvokeException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,7 @@
namespace Dapr.Actors
{
using System;
using System.Globalization;
using System.IO;
using System.Runtime.Serialization;
using System.Text;
using System.Xml;
using Dapr.Actors.Resources;
using Microsoft.Extensions.Logging;

/// <summary>
Expand Down
3 changes: 0 additions & 3 deletions src/Dapr.Actors/Communication/ActorInvokeExceptionData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,9 @@

namespace Dapr.Actors
{
using System;
using System.IO;
using System.Runtime.Serialization;
using System.Xml;
using Dapr.Actors;
using Microsoft.Extensions.Logging;

[DataContract(Name = "ActorInvokeExceptionData", Namespace = Constants.Namespace)]
internal class ActorInvokeExceptionData
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ namespace Dapr.Actors.Communication
using System.IO;
using System.Text.Json;
using System.Threading.Tasks;
using System.Xml;

/// <summary>
/// This is the implmentation for <see cref="IActorMessageBodySerializationProvider"/>used by remoting service and client during
Expand Down
1 change: 0 additions & 1 deletion src/Dapr.Actors/Runtime/ActorStateManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
// ------------------------------------------------------------------------

using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Globalization;
using System.Threading;
Expand Down
3 changes: 0 additions & 3 deletions src/Dapr.Actors/Runtime/DefaultActorActivatorFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@
// limitations under the License.
// ------------------------------------------------------------------------

using System;
using System.Threading.Tasks;

namespace Dapr.Actors.Runtime
{
/// <summary>
Expand Down
1 change: 0 additions & 1 deletion src/Dapr.Actors/Runtime/DefaultActorTimerManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
using System.Text.Json;
using System.Threading.Tasks;
using System.IO;
using System.Text;

namespace Dapr.Actors.Runtime
{
Expand Down
1 change: 0 additions & 1 deletion src/Dapr.Actors/Runtime/IActorStateManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ namespace Dapr.Actors.Runtime
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using Dapr.Actors.Communication;

/// <summary>
/// Represents an interface that exposes methods to manage state of an <see cref="Dapr.Actors.Runtime.Actor" />.
Expand Down
1 change: 0 additions & 1 deletion src/Dapr.AspNetCore/DaprAuthenticationBuilderExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
// ------------------------------------------------------------------------

using System;
using Dapr;
using Dapr.AspNetCore;

namespace Microsoft.AspNetCore.Authentication
Expand Down
2 changes: 0 additions & 2 deletions src/Dapr.AspNetCore/DaprMvcBuilderExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ namespace Microsoft.Extensions.DependencyInjection
{
using System;
using System.Linq;
using System.Text.Json;
using Dapr;
using Dapr.AspNetCore;
using Dapr.Client;
using Microsoft.AspNetCore.Mvc;
Expand Down
1 change: 0 additions & 1 deletion src/Dapr.AspNetCore/FromStateAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
namespace Microsoft.AspNetCore.Mvc
{
using System;
using System.ComponentModel;
using Dapr;
using Microsoft.AspNetCore.Mvc.ModelBinding;

Expand Down
2 changes: 0 additions & 2 deletions src/Dapr.Client/InvocationInterceptor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
// limitations under the License.
// ------------------------------------------------------------------------

using System;
using System.Threading.Tasks;
using Grpc.Core;
using Grpc.Core.Interceptors;

Expand Down
3 changes: 0 additions & 3 deletions src/Dapr.Client/StartWorkflowResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@
// limitations under the License.
// ------------------------------------------------------------------------

using System;
using System.Collections.Generic;

namespace Dapr.Client
{
/// <summary>
Expand Down
4 changes: 0 additions & 4 deletions src/Dapr.Client/StateOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@

namespace Dapr.Client
{
using System;
using System.Collections.Generic;
using System.Text;

/// <summary>
/// Options when perfroming state operations with Dapr.
/// </summary>
Expand Down
2 changes: 0 additions & 2 deletions src/Dapr.Client/StateTransactionRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
namespace Dapr.Client
{
using System.Collections.Generic;
using System.Threading;
using Dapr.Client;

/// <summary>
/// Represents a single request in in a StateTransaction.
Expand Down
3 changes: 1 addition & 2 deletions src/Dapr.Client/SubscribeConfigurationResponse.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Collections.Generic;
using System.Collections.Generic;

namespace Dapr.Client
{
Expand Down
2 changes: 0 additions & 2 deletions src/Dapr.Client/UnlockResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
// limitations under the License.
// ------------------------------------------------------------------------

using System.Collections.Generic;

namespace Dapr.Client
{
/// <summary>
Expand Down
3 changes: 1 addition & 2 deletions src/Dapr.Client/UnsubscribeConfigurationResponse.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
namespace Dapr.Client
namespace Dapr.Client
{
/// <summary>
/// Response from an Unsubscribe Configuration call.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

using System;
using System.Collections.Generic;
using System.Threading;
using Dapr.Client;
using Microsoft.Extensions.Configuration;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
using Microsoft.Extensions.Configuration;
using Dapr.Extensions.Configuration.DaprSecretStore;
using System.Linq;
using System.Threading;

namespace Dapr.Extensions.Configuration
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

using System;
using System.Collections.Generic;
using System.Threading;
using Dapr.Client;
using Microsoft.Extensions.Configuration;

Expand Down
1 change: 0 additions & 1 deletion src/Dapr.Workflow/WorkflowLoggingService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

namespace Dapr.Workflow
{
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
namespace Dapr.Actors.AspNetCore.IntegrationTest
{
using Dapr.Actors.AspNetCore.IntegrationTest.App;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc.Testing;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@

using System;
using System.Threading.Tasks;
using Dapr.Actors.Client;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging.Abstractions;
using Xunit;

namespace Dapr.Actors.Runtime
Expand Down
1 change: 0 additions & 1 deletion test/Dapr.Actors.Test/ActorCodeBuilderTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

namespace Dapr.Actors.Test
{
using System.Threading;
using System.Threading.Tasks;
using Dapr.Actors.Builder;
using Dapr.Actors.Communication;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ namespace Dapr.Actors.Test
{
using System;
using System.IO;
using Dapr.Actors.Communication;
using FluentAssertions;
using Xunit;

Expand Down
4 changes: 0 additions & 4 deletions test/Dapr.Actors.Test/ActorProxyOptionsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@
namespace Dapr.Actors.Client
{
using System;
using System.Text.Json;
using Dapr.Actors.Builder;
using Dapr.Actors.Client;
using Dapr.Actors.Test;
using FluentAssertions;
using Xunit;

Expand Down
7 changes: 0 additions & 7 deletions test/Dapr.Actors.Test/ActorStateManagerTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,10 @@
namespace Dapr.Actors.Test
{
using System;
using System.Globalization;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Security;
using System.Security.Authentication;
using System.Text.Json;
using System.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using FluentAssertions;
using Xunit;
using Dapr.Actors.Communication;
using Dapr.Actors.Runtime;
Expand Down
2 changes: 0 additions & 2 deletions test/Dapr.Actors.Test/ActorUnitTestTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
using System.Collections.Generic;
using System.Text.Json;
using System.Threading.Tasks;
using Dapr.Actors.Client;
using Dapr.Actors.Runtime;
using Microsoft.Extensions.Logging.Abstractions;
using Moq;
using Xunit;

Expand Down
2 changes: 0 additions & 2 deletions test/Dapr.Actors.Test/DaprFormatTimeSpanTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ namespace Dapr.Actors.Test
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Text.Json;
using System.Threading.Tasks;
using Dapr.Actors.Runtime;
using Newtonsoft.Json;
Expand Down
2 changes: 0 additions & 2 deletions test/Dapr.Actors.Test/DaprHttpInteractorTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,11 @@ namespace Dapr.Actors.Test
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Security;
using System.Security.Authentication;
using System.Text.Json;
using System.Threading.Tasks;
using FluentAssertions;
using Xunit;
using Dapr.Actors.Communication;

/// <summary>
/// Contains tests for DaprHttpInteractor.
Expand Down
7 changes: 0 additions & 7 deletions test/Dapr.Actors.Test/DaprStateProviderTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,10 @@
namespace Dapr.Actors.Test
{
using System;
using System.Globalization;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Security;
using System.Security.Authentication;
using System.Text.Json;
using System.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using FluentAssertions;
using Xunit;
using Dapr.Actors.Communication;
using Dapr.Actors.Runtime;
Expand Down
Loading

0 comments on commit c61b15d

Please sign in to comment.