Skip to content

Commit

Permalink
Remove unused imports (actions#2126)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoannaaKL authored Sep 15, 2022
1 parent 6cdd272 commit 3a1c897
Show file tree
Hide file tree
Showing 34 changed files with 23 additions and 80 deletions.
1 change: 0 additions & 1 deletion src/Runner.Common/Logging.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using GitHub.Runner.Common.Util;
using System;
using System.IO;

Expand Down
2 changes: 1 addition & 1 deletion src/Runner.Common/ProcessInvoker.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using GitHub.Runner.Common.Util;
using GitHub.Runner.Common.Util;
using GitHub.Runner.Sdk;
using System;
using System.Collections.Generic;
Expand Down
5 changes: 1 addition & 4 deletions src/Runner.Common/RunServer.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using System;
using System.Threading;
using System.Threading.Tasks;
using GitHub.DistributedTask.Pipelines;
using GitHub.DistributedTask.WebApi;
using GitHub.Runner.Common.Util;
using GitHub.Runner.Sdk;
using GitHub.Services.Common;
using GitHub.Services.WebApi;
Expand Down
3 changes: 1 addition & 2 deletions src/Runner.Common/RunnerServer.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
using GitHub.DistributedTask.WebApi;
using GitHub.DistributedTask.WebApi;
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using GitHub.Runner.Common.Util;
using GitHub.Services.WebApi;
using GitHub.Services.Common;
using GitHub.Runner.Sdk;
Expand Down
3 changes: 1 addition & 2 deletions src/Runner.Common/ThrottlingReportHandler.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using GitHub.Runner.Common.Util;
using GitHub.Runner.Sdk;
using GitHub.Services.Common.Internal;

Expand Down
1 change: 0 additions & 1 deletion src/Runner.Common/TraceManager.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using GitHub.Runner.Common.Util;
using System;
using System.Collections.Concurrent;
using System.Diagnostics;
Expand Down
2 changes: 0 additions & 2 deletions src/Runner.Common/Tracing.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@

using GitHub.Runner.Common.Util;
using Newtonsoft.Json;
using System;
using System.Diagnostics;
Expand Down
5 changes: 1 addition & 4 deletions src/Runner.Common/Util/VarUtil.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 GitHub.Runner.Sdk;
using System;

namespace GitHub.Runner.Common.Util
{
Expand Down
3 changes: 1 addition & 2 deletions src/Runner.Listener/Checks/GitCheck.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Threading;
using System.Threading.Tasks;
using GitHub.Runner.Common;
Expand Down Expand Up @@ -168,4 +167,4 @@ await processInvoker.ExecuteAsync(
return result;
}
}
}
}
3 changes: 1 addition & 2 deletions src/Runner.Listener/Checks/NodeJsCheck.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Threading;
using System.Threading.Tasks;
using GitHub.Runner.Common;
Expand Down Expand Up @@ -179,4 +178,4 @@ await processInvoker.ExecuteAsync(
return result;
}
}
}
}
1 change: 0 additions & 1 deletion src/Runner.Listener/CommandSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using GitHub.DistributedTask.Logging;
using GitHub.Runner.Common;
using GitHub.Runner.Sdk;

Expand Down
10 changes: 5 additions & 5 deletions src/Runner.Listener/Configuration/PromptManager.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using GitHub.Runner.Common;
using GitHub.Runner.Common.Util;
using GitHub.Runner.Sdk;
using System;

Expand Down Expand Up @@ -72,7 +71,7 @@ public string ReadValue(
{
return defaultValue;
}
else if (isOptional)
else if (isOptional)
{
return string.Empty;
}
Expand All @@ -87,11 +86,12 @@ public string ReadValue(
// Write the message prompt.
_terminal.Write($"{description} ");

if(!string.IsNullOrEmpty(defaultValue))
if (!string.IsNullOrEmpty(defaultValue))
{
_terminal.Write($"[press Enter for {defaultValue}] ");
}
else if (isOptional){
else if (isOptional)
{
_terminal.Write($"[press Enter to skip] ");
}

Expand All @@ -112,7 +112,7 @@ public string ReadValue(
return string.Empty;
}
}

// Return the value if it is not empty and it is valid.
// Otherwise try the loop again.
if (!string.IsNullOrEmpty(value))
Expand Down
1 change: 0 additions & 1 deletion src/Runner.Listener/Configuration/RSAFileKeyManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using System.IO;
using System.Security.Cryptography;
using System.Threading;
using GitHub.Runner.Common.Util;
using GitHub.Runner.Common;
using GitHub.Runner.Sdk;

Expand Down
3 changes: 1 addition & 2 deletions src/Runner.Listener/Configuration/SystemdControlManager.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
#if OS_LINUX
#if OS_LINUX
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using GitHub.Runner.Common.Util;
using GitHub.Runner.Common;
using GitHub.Runner.Sdk;

namespace GitHub.Runner.Listener.Configuration
{
Expand Down
2 changes: 0 additions & 2 deletions src/Runner.Listener/Program.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
using GitHub.Runner.Common;
using GitHub.Runner.Common.Util;
using GitHub.Runner.Sdk;
using System;
using System.Globalization;
using System.IO;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Threading;
using System.Threading.Tasks;

namespace GitHub.Runner.Listener
Expand Down
1 change: 0 additions & 1 deletion src/Runner.Listener/Runner.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.IO.Compression;
using System.Linq;
using System.Reflection;
using System.Runtime.CompilerServices;
Expand Down
5 changes: 1 addition & 4 deletions src/Runner.PluginHost/Program.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
using System;
using System.Collections.Generic;
using System;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.Loader;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using GitHub.Runner.Sdk;
using GitHub.DistributedTask.WebApi;

Expand Down
2 changes: 0 additions & 2 deletions src/Runner.Plugins/Artifact/PipelinesServer.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System;
using System.IO;
using System.Threading;
using System.Threading.Tasks;
using GitHub.Actions.Pipelines.WebApi;
Expand Down
2 changes: 0 additions & 2 deletions src/Runner.Plugins/Repository/GitCliManager.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
Expand All @@ -9,7 +8,6 @@
using System.IO;
using GitHub.Runner.Sdk;
using GitHub.Services.Common;
using GitHub.DistributedTask.Pipelines.ContextData;

namespace GitHub.Runner.Plugins.Repository
{
Expand Down
2 changes: 0 additions & 2 deletions src/Runner.Plugins/Repository/v1.0/GitSourceProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@
using System.IO;
using System.Text.RegularExpressions;
using System.Text;
using System.Diagnostics;
using GitHub.Runner.Sdk;
using System.Linq;
using GitHub.DistributedTask.WebApi;
using GitHub.Services.WebApi;

namespace GitHub.Runner.Plugins.Repository.v1_0
{
Expand Down
5 changes: 1 addition & 4 deletions src/Runner.Plugins/Repository/v1.0/RepositoryPlugin.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System;
using System.Threading;
using System.Threading.Tasks;
using GitHub.Runner.Sdk;
using Pipelines = GitHub.DistributedTask.Pipelines;
using System.IO;
using GitHub.DistributedTask.Pipelines.ContextData;
using System.Text.RegularExpressions;
using GitHub.DistributedTask.Pipelines.Expressions;
using System.Text;
Expand Down
2 changes: 0 additions & 2 deletions src/Runner.Plugins/Repository/v1.1/GitSourceProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
using System.Threading;
using System.Threading.Tasks;
using System.IO;
using System.Text.RegularExpressions;
using System.Text;
using System.Diagnostics;
using GitHub.Runner.Sdk;
using System.Linq;
using GitHub.DistributedTask.WebApi;
Expand Down
6 changes: 1 addition & 5 deletions src/Runner.Plugins/Repository/v1.1/RepositoryPlugin.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System;
using System.Threading;
using System.Threading.Tasks;
using GitHub.Runner.Sdk;
using Pipelines = GitHub.DistributedTask.Pipelines;
using System.IO;
using GitHub.DistributedTask.Pipelines.ContextData;
using System.Text.RegularExpressions;
using GitHub.DistributedTask.Pipelines.Expressions;
using System.Text;

Expand Down
4 changes: 1 addition & 3 deletions src/Runner.Sdk/ActionPlugin.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Runtime.InteropServices;
using System.Threading;
Expand All @@ -11,7 +10,6 @@
using GitHub.Services.Common;
using GitHub.Services.WebApi;
using Newtonsoft.Json;
using Pipelines = GitHub.DistributedTask.Pipelines;

namespace GitHub.Runner.Sdk
{
Expand Down
1 change: 0 additions & 1 deletion src/Runner.Sdk/Util/IOUtil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Security.Cryptography;
using System.Text;
using System.Threading;
Expand Down
1 change: 0 additions & 1 deletion src/Runner.Sdk/Util/PathUtil.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using System.IO;

namespace GitHub.Runner.Sdk
Expand Down
6 changes: 1 addition & 5 deletions src/Runner.Sdk/Util/StringUtil.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
using GitHub.Services.WebApi;
using GitHub.Services.WebApi;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Reflection;
using System.Text;

namespace GitHub.Runner.Sdk
Expand Down
5 changes: 1 addition & 4 deletions src/Runner.Worker/ActionManifestManager.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.IO;
using System.Threading;
Expand All @@ -10,9 +10,6 @@
using GitHub.DistributedTask.ObjectTemplating;
using GitHub.DistributedTask.ObjectTemplating.Tokens;
using GitHub.DistributedTask.Pipelines.ContextData;
using YamlDotNet.Core;
using YamlDotNet.Core.Events;
using System.Globalization;
using System.Linq;
using Pipelines = GitHub.DistributedTask.Pipelines;

Expand Down
3 changes: 1 addition & 2 deletions src/Runner.Worker/ActionRunner.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using GitHub.DistributedTask.ObjectTemplating;
using GitHub.DistributedTask.ObjectTemplating.Tokens;
Expand Down
1 change: 0 additions & 1 deletion src/Runner.Worker/ConditionTraceWriter.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System;
using System.Text;
using GitHub.DistributedTask.Pipelines;
using GitHub.Runner.Common;
using GitHub.Runner.Sdk;
using ObjectTemplating = GitHub.DistributedTask.ObjectTemplating;
Expand Down
4 changes: 1 addition & 3 deletions src/Runner.Worker/FileCommandManager.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
using GitHub.DistributedTask.WebApi;
using GitHub.DistributedTask.WebApi;
using GitHub.Runner.Worker.Container;
using GitHub.Runner.Common;
using GitHub.Runner.Sdk;
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Text;
Expand Down
1 change: 0 additions & 1 deletion src/Runner.Worker/IEnvironmentContextData.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using System.Collections.Generic;

public interface IEnvironmentContextData
Expand Down
4 changes: 1 addition & 3 deletions src/Runner.Worker/JobExtension.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
Expand All @@ -7,7 +7,6 @@
using System.Runtime.Serialization;
using System.Threading;
using System.Threading.Tasks;
using GitHub.DistributedTask.Expressions2;
using GitHub.DistributedTask.ObjectTemplating.Tokens;
using GitHub.DistributedTask.Pipelines;
using GitHub.DistributedTask.Pipelines.ContextData;
Expand All @@ -16,7 +15,6 @@
using GitHub.Runner.Common;
using GitHub.Runner.Common.Util;
using GitHub.Runner.Sdk;
using GitHub.Runner.Worker;
using Pipelines = GitHub.DistributedTask.Pipelines;

namespace GitHub.Runner.Worker
Expand Down
3 changes: 1 addition & 2 deletions src/Runner.Worker/JobExtensionRunner.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System;
using System;
using System.Threading.Tasks;
using GitHub.DistributedTask.Expressions2;
using GitHub.DistributedTask.ObjectTemplating.Tokens;

namespace GitHub.Runner.Worker
Expand Down

0 comments on commit 3a1c897

Please sign in to comment.