Skip to content

Commit

Permalink
Remove extra usings (#55)
Browse files Browse the repository at this point in the history
* Remove extra usings

* readd serilog
  • Loading branch information
adamhathcock authored Jul 30, 2024
1 parent e79716c commit 787ad92
Show file tree
Hide file tree
Showing 110 changed files with 21 additions and 318 deletions.
3 changes: 0 additions & 3 deletions src/Speckle.Core/Api/Exceptions.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using System;
using System.Collections.Generic;
using System.Linq;
using GraphQL;
using Speckle.Core.Logging;

Expand Down
6 changes: 0 additions & 6 deletions src/Speckle.Core/Api/GraphQL/Client.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Dynamic;
using System.Linq;
using System.Net.Http;
using System.Net.WebSockets;
using System.Reflection;
using System.Threading;
using System.Threading.Tasks;
using GraphQL;
using GraphQL.Client.Http;
using Polly;
Expand Down
4 changes: 0 additions & 4 deletions src/Speckle.Core/Api/GraphQL/GraphQLHttpClientExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using GraphQL;
using GraphQL.Client.Http;
using Speckle.Core.Api.GraphQL.Models;
using Speckle.Core.Api.GraphQL.Models.Responses;

namespace Speckle.Core.Api.GraphQL;
Expand Down
5 changes: 1 addition & 4 deletions src/Speckle.Core/Api/GraphQL/ISpeckleGraphQLClient.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System;
using System.Threading;
using System.Threading.Tasks;
using GraphQL;
using GraphQL;

namespace Speckle.Core.Api.GraphQL;

Expand Down
4 changes: 1 addition & 3 deletions src/Speckle.Core/Api/GraphQL/Inputs/CommentInputs.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Collections.Generic;

namespace Speckle.Core.Api.GraphQL.Inputs;
namespace Speckle.Core.Api.GraphQL.Inputs;

public sealed record CreateCommentInput(
CommentContentInput content,
Expand Down
4 changes: 1 addition & 3 deletions src/Speckle.Core/Api/GraphQL/Inputs/ModelInputs.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Collections.Generic;

namespace Speckle.Core.Api.GraphQL.Inputs;
namespace Speckle.Core.Api.GraphQL.Inputs;

public sealed record CreateModelInput(string name, string? description, string projectId);

Expand Down
3 changes: 1 addition & 2 deletions src/Speckle.Core/Api/GraphQL/Inputs/ProjectInputs.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Collections.Generic;
using Speckle.Core.Api.GraphQL.Enums;
using Speckle.Core.Api.GraphQL.Enums;

namespace Speckle.Core.Api.GraphQL.Inputs;

Expand Down
4 changes: 1 addition & 3 deletions src/Speckle.Core/Api/GraphQL/Inputs/VersionInputs.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Collections.Generic;

namespace Speckle.Core.Api.GraphQL.Inputs;
namespace Speckle.Core.Api.GraphQL.Inputs;

public sealed record UpdateVersionInput(string versionId, string? message);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using GraphQL;

namespace Speckle.Core.Api;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using GraphQL;
using Speckle.Core.Api.GraphQL.Resources;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using System;
using System.Threading;
using System.Threading.Tasks;
using GraphQL;
using Speckle.Core.Api.GraphQL.Resources;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using GraphQL;
using Speckle.Core.Api.GraphQL.Resources;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System.Threading;
using System.Threading.Tasks;
using GraphQL;

namespace Speckle.Core.Api;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System;
using System.Text.RegularExpressions;
using System.Threading;
using System.Threading.Tasks;
using GraphQL;
using Speckle.Core.Api.GraphQL.Models.Responses;
using Speckle.Core.Logging;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
#nullable disable
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using GraphQL;
using Speckle.Core.Api.GraphQL.Models;
using Speckle.Core.Api.GraphQL.Models.Responses;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using Speckle.Core.Api.GraphQL.Models;
using Speckle.Core.Api.GraphQL.Resources;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#nullable disable
using System;
using GraphQL;
using Speckle.Core.Api.SubscriptionModels;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#nullable disable
using System;
using GraphQL;
using Speckle.Core.Api.SubscriptionModels;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#nullable disable
using System;
using GraphQL;
using Speckle.Core.Api.SubscriptionModels;

Expand Down
2 changes: 0 additions & 2 deletions src/Speckle.Core/Api/GraphQL/Legacy/LegacyGraphQLModels.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#nullable disable
using System;
using System.Collections.Generic;
using Speckle.Core.Api.GraphQL.Enums;
using Speckle.Core.Api.GraphQL.Models;

Expand Down
2 changes: 0 additions & 2 deletions src/Speckle.Core/Api/GraphQL/Legacy/Manager.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#nullable disable
using System;
using System.Collections.Generic;
using System.Text.Json.Serialization;

namespace Speckle.Core.Api.GraphQL;
Expand Down
3 changes: 0 additions & 3 deletions src/Speckle.Core/Api/GraphQL/Legacy/SubscriptionModels.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
#nullable disable
using System;
using System.Collections.Generic;

namespace Speckle.Core.Api.SubscriptionModels;

#region streams
Expand Down
4 changes: 1 addition & 3 deletions src/Speckle.Core/Api/GraphQL/Models/Collections.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Collections.Generic;

namespace Speckle.Core.Api.GraphQL.Models;
namespace Speckle.Core.Api.GraphQL.Models;

public class ResourceCollection<T>
{
Expand Down
3 changes: 0 additions & 3 deletions src/Speckle.Core/Api/GraphQL/Models/Comment.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#nullable disable

using System;
using System.Collections.Generic;

namespace Speckle.Core.Api.GraphQL.Models;

public sealed class Comment
Expand Down
1 change: 0 additions & 1 deletion src/Speckle.Core/Api/GraphQL/Models/FileUpload.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#nullable disable

using System;
using Speckle.Core.Api.GraphQL.Enums;

namespace Speckle.Core.Api.GraphQL.Models;
Expand Down
3 changes: 0 additions & 3 deletions src/Speckle.Core/Api/GraphQL/Models/Model.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
#nullable disable
using System;
using System.Collections.Generic;

namespace Speckle.Core.Api.GraphQL.Models;

public sealed class Model
Expand Down
3 changes: 0 additions & 3 deletions src/Speckle.Core/Api/GraphQL/Models/ModelsTreeItem.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#nullable disable

using System;
using System.Collections.Generic;

namespace Speckle.Core.Api.GraphQL.Models;

public sealed class ModelsTreeItem
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#nullable disable
using System;

namespace Speckle.Core.Api.GraphQL.Models;

public sealed class PendingStreamCollaborator
Expand Down
2 changes: 0 additions & 2 deletions src/Speckle.Core/Api/GraphQL/Models/Project.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#nullable disable
using System;
using System.Collections.Generic;
using Speckle.Core.Api.GraphQL.Enums;

namespace Speckle.Core.Api.GraphQL.Models;
Expand Down
1 change: 0 additions & 1 deletion src/Speckle.Core/Api/GraphQL/Models/ServerInfo.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#nullable disable
using System;
using System.Runtime.InteropServices;

namespace Speckle.Core.Api.GraphQL.Models;
Expand Down
3 changes: 1 addition & 2 deletions src/Speckle.Core/Api/GraphQL/Models/SubscriptionMessages.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using Speckle.Core.Api.GraphQL.Enums;
using Speckle.Core.Api.GraphQL.Enums;
using Speckle.Newtonsoft.Json;

namespace Speckle.Core.Api.GraphQL.Models;
Expand Down
3 changes: 0 additions & 3 deletions src/Speckle.Core/Api/GraphQL/Models/User.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
#nullable disable
using System;
using System.Collections.Generic;

namespace Speckle.Core.Api.GraphQL.Models;

public abstract class UserBase
Expand Down
2 changes: 0 additions & 2 deletions src/Speckle.Core/Api/GraphQL/Models/Version.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#nullable disable

using System;

namespace Speckle.Core.Api.GraphQL.Models;

public sealed class Version
Expand Down
2 changes: 0 additions & 2 deletions src/Speckle.Core/Api/GraphQL/Models/ViewerResourceGroup.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#nullable disable

using System.Collections.Generic;

namespace Speckle.Core.Api.GraphQL.Models;

public class ViewerResourceGroup
Expand Down
5 changes: 1 addition & 4 deletions src/Speckle.Core/Api/GraphQL/Resources/ActiveUserResource.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using GraphQL;
using GraphQL;
using Speckle.Core.Api.GraphQL.Inputs;
using Speckle.Core.Api.GraphQL.Models;
using Speckle.Core.Api.GraphQL.Models.Responses;
Expand Down
4 changes: 1 addition & 3 deletions src/Speckle.Core/Api/GraphQL/Resources/CommentResource.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Threading;
using System.Threading.Tasks;
using GraphQL;
using GraphQL;
using Speckle.Core.Api.GraphQL.Inputs;
using Speckle.Core.Api.GraphQL.Models;
using Speckle.Core.Api.GraphQL.Models.Responses;
Expand Down
4 changes: 1 addition & 3 deletions src/Speckle.Core/Api/GraphQL/Resources/ModelResource.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Threading;
using System.Threading.Tasks;
using GraphQL;
using GraphQL;
using Speckle.Core.Api.GraphQL.Inputs;
using Speckle.Core.Api.GraphQL.Models;
using Speckle.Core.Api.GraphQL.Models.Responses;
Expand Down
4 changes: 1 addition & 3 deletions src/Speckle.Core/Api/GraphQL/Resources/OtherUserResource.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Threading;
using System.Threading.Tasks;
using GraphQL;
using GraphQL;
using Speckle.Core.Api.GraphQL.Models;
using Speckle.Core.Api.GraphQL.Models.Responses;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Threading;
using System.Threading.Tasks;
using GraphQL;
using GraphQL;
using Speckle.Core.Api.GraphQL.Inputs;
using Speckle.Core.Api.GraphQL.Models;
using Speckle.Core.Api.GraphQL.Models.Responses;
Expand Down
4 changes: 1 addition & 3 deletions src/Speckle.Core/Api/GraphQL/Resources/ProjectResource.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Threading;
using System.Threading.Tasks;
using GraphQL;
using GraphQL;
using Speckle.Core.Api.GraphQL.Inputs;
using Speckle.Core.Api.GraphQL.Models;
using Speckle.Core.Api.GraphQL.Models.Responses;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System;
using System.Collections.Generic;
using GraphQL;
using Speckle.Core.Api.GraphQL.Inputs;
using Speckle.Core.Api.GraphQL.Models;
Expand Down
4 changes: 1 addition & 3 deletions src/Speckle.Core/Api/GraphQL/Resources/VersionResource.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Threading;
using System.Threading.Tasks;
using GraphQL;
using GraphQL;
using Speckle.Core.Api.GraphQL.Inputs;
using Speckle.Core.Api.GraphQL.Models;
using Speckle.Core.Api.GraphQL.Models.Responses;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#nullable disable

using System;
using System.Linq;
using System.Reflection;
using GraphQL.Client.Abstractions.Utilities;
using Speckle.Newtonsoft.Json;
Expand Down
3 changes: 0 additions & 3 deletions src/Speckle.Core/Api/GraphQL/Serializer/MapConverter.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#nullable disable
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using GraphQL;
using Speckle.Newtonsoft.Json;
using Speckle.Newtonsoft.Json.Linq;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
#nullable disable
using System;
using System.IO;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using GraphQL;
using GraphQL.Client.Abstractions;
using GraphQL.Client.Abstractions.Websocket;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Collections.Concurrent;
using System.Diagnostics;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Serilog.Context;
using Speckle.Core.Logging;
using Speckle.Core.Models;
Expand Down
5 changes: 0 additions & 5 deletions src/Speckle.Core/Api/Operations/Operations.Receive.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Serilog.Context;
using Speckle.Core.Logging;
using Speckle.Core.Models;
Expand Down
7 changes: 1 addition & 6 deletions src/Speckle.Core/Api/Operations/Operations.Send.Obsolete.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Collections.Concurrent;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Serilog.Context;
using Speckle.Core.Logging;
using Speckle.Core.Models;
Expand Down
Loading

0 comments on commit 787ad92

Please sign in to comment.