Skip to content

Commit

Permalink
Cleanup: Unused using statements
Browse files Browse the repository at this point in the history
  • Loading branch information
niemyjski committed Apr 27, 2023
1 parent 704d6e4 commit 177c9cc
Show file tree
Hide file tree
Showing 72 changed files with 50 additions and 141 deletions.
3 changes: 1 addition & 2 deletions samples/Exceptionless.SampleAspNetCore/Program.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Hosting;

namespace Exceptionless.SampleAspNetCore {
Expand Down
3 changes: 1 addition & 2 deletions samples/Exceptionless.SampleAspNetCore/Startup.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
Expand Down
1 change: 0 additions & 1 deletion samples/Exceptionless.SampleConsole/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
using Exceptionless.SampleConsole.Plugins;
using NLog;
using NLog.Config;
using NLog.Fluent;
using LogLevel = Exceptionless.Logging.LogLevel;

// example of setting an attribute value in config.
Expand Down
1 change: 0 additions & 1 deletion samples/Exceptionless.SampleLambda/Function.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System;
using System.Threading.Tasks;
using Amazon.Lambda.Core;
using Exceptionless;

// Assembly attribute to enable the Lambda function's JSON input to be converted into a .NET class.
[assembly: LambdaSerializer(typeof(Amazon.Lambda.Serialization.SystemTextJson.DefaultLambdaJsonSerializer))]
Expand Down
1 change: 0 additions & 1 deletion samples/Exceptionless.SampleLambdaAspNetCore/Program.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Hosting;

Expand Down
2 changes: 0 additions & 2 deletions samples/Exceptionless.SampleLambdaAspNetCore/Startup.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System;
using Exceptionless;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
Expand Down
3 changes: 1 addition & 2 deletions samples/Exceptionless.SampleMvc/App_Start/BundleConfig.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Web;
using System.Web.Optimization;
using System.Web.Optimization;

namespace Exceptionless.SampleMvc {
public class BundleConfig
Expand Down
3 changes: 1 addition & 2 deletions samples/Exceptionless.SampleMvc/App_Start/FilterConfig.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Web.Mvc;
using System.Web.Mvc;

namespace Exceptionless.SampleMvc {
public class FilterConfig {
Expand Down
3 changes: 1 addition & 2 deletions samples/Exceptionless.SampleMvc/App_Start/RouteConfig.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Web.Mvc;
using System.Web.Mvc;
using System.Web.Routing;

namespace Exceptionless.SampleMvc {
Expand Down
3 changes: 1 addition & 2 deletions samples/Exceptionless.SampleMvc/App_Start/WebApiConfig.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Web.Http;
using System.Web.Http;

namespace Exceptionless.SampleMvc.App_Start {
public static class WebApiConfig {
Expand Down
3 changes: 1 addition & 2 deletions samples/Exceptionless.SampleMvc/Global.asax
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
<%@ Application Codebehind="Global.asax.cs" Inherits="Exceptionless.SampleMvc.MvcApplication" Language="C#" %>
<%@ Import Namespace="System" %>
<%@ Application Codebehind="Global.asax.cs" Inherits="Exceptionless.SampleMvc.MvcApplication" Language="C#" %>
3 changes: 1 addition & 2 deletions samples/Exceptionless.SampleMvc/Global.asax.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Web;
using System.Web;
using System.Web.Http;
using System.Web.Mvc;
using System.Web.Optimization;
Expand Down
1 change: 0 additions & 1 deletion samples/Exceptionless.SampleMvc/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following
Expand Down
3 changes: 1 addition & 2 deletions samples/Exceptionless.SampleWcf/IService1.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Runtime.Serialization;
using System.Runtime.Serialization;
using System.ServiceModel;

namespace Exceptionless.SampleWcf {
Expand Down
1 change: 0 additions & 1 deletion samples/Exceptionless.SampleWeb/Default.aspx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Exceptionless.SampleWeb._Default" %>
<%@ Import Namespace="System" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Expand Down
1 change: 0 additions & 1 deletion samples/Exceptionless.SampleWeb/Default2.aspx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default2.aspx.cs" Inherits="Exceptionless.SampleWeb.Default2" %>
<%@ Import Namespace="System" %>

<!DOCTYPE html>

Expand Down
3 changes: 1 addition & 2 deletions samples/Exceptionless.SampleWeb/Global.asax
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
<%@ Application CodeBehind="Global.asax.cs" Inherits="Exceptionless.SampleWeb.Global" Language="C#" %>
<%@ Import Namespace="System" %>
<%@ Application CodeBehind="Global.asax.cs" Inherits="Exceptionless.SampleWeb.Global" Language="C#" %>
3 changes: 1 addition & 2 deletions samples/Exceptionless.SampleWpf/App.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Windows;
using System.Windows;

namespace Exceptionless.SampleWpf {
public partial class App : Application {
Expand Down
3 changes: 1 addition & 2 deletions samples/Exceptionless.SampleWpf/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Windows;
using System.Windows;
using Exceptionless.Configuration;

[assembly: ThemeInfo(ResourceDictionaryLocation.None, ResourceDictionaryLocation.SourceAssembly)]
Expand Down
1 change: 0 additions & 1 deletion src/Exceptionless/Dependency/TinyIoC.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ namespace TinyIoC
{
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Reflection;

Expand Down
1 change: 0 additions & 1 deletion src/Exceptionless/Events/EventSubmittedEventArgs.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using Exceptionless.Models;
using Exceptionless.Plugins;

Expand Down
1 change: 0 additions & 1 deletion src/Exceptionless/Events/EventSubmittingEventArgs.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using Exceptionless.Plugins;
using Exceptionless.Models;

Expand Down
4 changes: 1 addition & 3 deletions src/Exceptionless/Extensions/CollectionEqualityExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Collections.Generic;

namespace Exceptionless {
internal static class CollectionEqualityExtensions {
Expand Down
3 changes: 1 addition & 2 deletions src/Exceptionless/Extensions/EnumerableExtensions.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 Exceptionless.Extensions {
internal static class EnumerableExtensions {
Expand Down
3 changes: 1 addition & 2 deletions src/Exceptionless/Extensions/EventBuilderExtensions.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;
using Exceptionless.Models.Data;
using Exceptionless.Plugins.Default;

Expand Down
3 changes: 1 addition & 2 deletions src/Exceptionless/Extensions/HttpClientExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Net.Http;
using System.Net.Http;
using System.Net.Http.Headers;
using Exceptionless.Submission.Net;

Expand Down
4 changes: 1 addition & 3 deletions src/Exceptionless/Extensions/JsonSerializerExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;

namespace Exceptionless.Extensions {
namespace Exceptionless.Extensions {
public static class JsonSerializerExtensions {
public static T Deserialize<T>(this IJsonSerializer serializer, string json) {
return (T)serializer.Deserialize(json, typeof(T));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;

namespace Exceptionless {
namespace Exceptionless {
internal class DefaultLastReferenceIdManager : ILastReferenceIdManager {
private string _lastReferenceId;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;

namespace Exceptionless {
namespace Exceptionless {
public interface ILastReferenceIdManager {
/// <summary>
/// Gets the last event id that was submitted to the server.
Expand Down
4 changes: 1 addition & 3 deletions src/Exceptionless/Models/Client/ClientConfiguration.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;

namespace Exceptionless.Models {
namespace Exceptionless.Models {
public class ClientConfiguration {
public ClientConfiguration() {
Settings = new SettingsDictionary();
Expand Down
2 changes: 0 additions & 2 deletions src/Exceptionless/Models/Client/Data/EnvironmentInfo.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System;

namespace Exceptionless.Models.Data {
public class EnvironmentInfo : IData {
public EnvironmentInfo() {
Expand Down
4 changes: 1 addition & 3 deletions src/Exceptionless/Models/Client/Data/Error.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;

namespace Exceptionless.Models.Data {
namespace Exceptionless.Models.Data {
public class Error : InnerError {
public Error() {
Modules = new ModuleCollection();
Expand Down
4 changes: 1 addition & 3 deletions src/Exceptionless/Models/Client/Data/InnerError.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;

namespace Exceptionless.Models.Data {
namespace Exceptionless.Models.Data {
public class InnerError : IData {
public InnerError() {
Data = new DataDictionary();
Expand Down
4 changes: 1 addition & 3 deletions src/Exceptionless/Models/Client/Data/Parameter.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;

namespace Exceptionless.Models.Data {
namespace Exceptionless.Models.Data {
public class Parameter : IData {
public Parameter() {
Data = new DataDictionary();
Expand Down
4 changes: 1 addition & 3 deletions src/Exceptionless/Models/Client/Data/SimpleError.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;

namespace Exceptionless.Models.Data {
namespace Exceptionless.Models.Data {
public class SimpleError : SimpleInnerError {
public SimpleError() {
Modules = new ModuleCollection();
Expand Down
4 changes: 1 addition & 3 deletions src/Exceptionless/Models/Client/Data/SimpleInnerError.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;

namespace Exceptionless.Models.Data {
namespace Exceptionless.Models.Data {
public class SimpleInnerError : IData {
public SimpleInnerError() {
Data = new DataDictionary();
Expand Down
4 changes: 1 addition & 3 deletions src/Exceptionless/Models/Client/Data/StackFrame.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;

namespace Exceptionless.Models.Data {
namespace Exceptionless.Models.Data {
public class StackFrame : Method {
public string FileName { get; set; }
public int LineNumber { get; set; }
Expand Down
3 changes: 1 addition & 2 deletions src/Exceptionless/Models/Collections/GenericArguments.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Collections.ObjectModel;
using System.Collections.ObjectModel;

namespace Exceptionless.Models {
public class GenericArguments : Collection<string> {}
Expand Down
3 changes: 1 addition & 2 deletions src/Exceptionless/Models/Collections/ParameterCollection.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Collections.ObjectModel;
using System.Collections.ObjectModel;
using Exceptionless.Models.Data;

namespace Exceptionless.Models {
Expand Down
3 changes: 1 addition & 2 deletions src/Exceptionless/Models/Collections/StackFrameCollection.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Collections.ObjectModel;
using System.Collections.ObjectModel;
using Exceptionless.Models.Data;

namespace Exceptionless.Models {
Expand Down
4 changes: 1 addition & 3 deletions src/Exceptionless/Models/Interfaces/IData.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;

namespace Exceptionless.Models {
namespace Exceptionless.Models {
public interface IData {
DataDictionary Data { get; set; }
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;

namespace Exceptionless.Plugins.Default {
namespace Exceptionless.Plugins.Default {
[Priority(15)]
public class ConfigurationDefaultsPlugin : IEventPlugin {
public void Run(EventPluginContext context) {
Expand Down
3 changes: 1 addition & 2 deletions src/Exceptionless/Plugins/EventPluginContext.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using Exceptionless.Dependency;
using Exceptionless.Dependency;
using Exceptionless.Logging;
using Exceptionless.Models;

Expand Down
4 changes: 1 addition & 3 deletions src/Exceptionless/Plugins/IEventPlugin.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;

namespace Exceptionless.Plugins {
namespace Exceptionless.Plugins {
public interface IEventPlugin {
/// <summary>
/// Runs the plugin.
Expand Down
1 change: 0 additions & 1 deletion src/Exceptionless/Serializer/DefaultJsonSerializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
using Exceptionless.Extensions;
using Exceptionless.Json;
using Exceptionless.Json.Converters;
using Exceptionless.Json.Linq;
using Exceptionless.Json.Serialization;

namespace Exceptionless.Serializer {
Expand Down
1 change: 0 additions & 1 deletion src/Exceptionless/Serializer/JsonTextWriterWithDepth.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using System.IO;
using Exceptionless.Json;

Expand Down
2 changes: 0 additions & 2 deletions src/Exceptionless/Serializer/JsonTextWriterWithExclusions.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System;
using System.Collections.Generic;
using System.IO;
using Exceptionless.Extensions;

Expand Down
3 changes: 1 addition & 2 deletions src/Exceptionless/Services/IEnvironmentInfoCollector.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using Exceptionless.Models.Data;
using Exceptionless.Models.Data;

namespace Exceptionless.Services {
public interface IEnvironmentInfoCollector {
Expand Down
2 changes: 0 additions & 2 deletions src/Exceptionless/Storage/FolderObjectStorage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
using System.Collections.Generic;
using System.IO;
using Exceptionless.Dependency;
using Exceptionless.Extensions;
using Exceptionless.Models;
using Exceptionless.Utility;

namespace Exceptionless.Storage {
Expand Down
3 changes: 1 addition & 2 deletions src/Exceptionless/Submission/ISubmissionClient.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;
using System.Threading.Tasks;
using Exceptionless.Models;
using Exceptionless.Models.Data;
Expand Down
4 changes: 1 addition & 3 deletions src/Exceptionless/Submission/Net/ExceptionlessHeaders.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;

namespace Exceptionless.Submission.Net {
namespace Exceptionless.Submission.Net {
public static class ExceptionlessHeaders {
public const string Bearer = "Bearer";
public const string LegacyConfigurationVersion = "v";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Reflection;
using System.Reflection;
using System.Runtime.InteropServices;

[assembly: ComVisible(false)]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Reflection;
using System.Reflection;
using System.Runtime.InteropServices;

[assembly: ComVisible(false)]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Reflection;
using System.Reflection;
using System.Runtime.InteropServices;

[assembly: ComVisible(false)]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using Exceptionless;
using log4net.Appender;
using log4net.Core;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Exceptionless;
using Exceptionless.Logging;
using log4net.Core;

Expand Down
Loading

0 comments on commit 177c9cc

Please sign in to comment.