Skip to content

Commit

Permalink
Remove all unnecessary usings
Browse files Browse the repository at this point in the history
  • Loading branch information
ThadHouse committed Feb 21, 2024
1 parent 2d3e4e6 commit 5cdb4c4
Show file tree
Hide file tree
Showing 171 changed files with 0 additions and 266 deletions.
3 changes: 0 additions & 3 deletions codehelp/CodeHelpers.Test/LogGeneratorFixerTest.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp.Testing;
using Microsoft.CodeAnalysis.Testing.Verifiers;
using WPILib.CodeHelpers.LogGenerator.Analyzer;
using Verify = Microsoft.CodeAnalysis.CSharp.Testing.XUnit.CodeFixVerifier<WPILib.CodeHelpers.LogGenerator.Analyzer.LogGeneratorAnalyzer, WPILib.CodeHelpers.LogGenerator.CodeFixer.LogGeneratorFixer>;

Expand Down
3 changes: 0 additions & 3 deletions codehelp/CodeHelpers/EquatableArray.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

Expand Down
1 change: 0 additions & 1 deletion codehelp/CodeHelpers/HashCode.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System.Collections.Generic;
using System.ComponentModel;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ namespace WPILib.CodeHelpers.LogGenerator.Analyzer;

#pragma warning disable RS2008 // Enable analyzer release tracking

using System;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Diagnostics;
using WPILib.CodeHelpers;
Expand Down
1 change: 0 additions & 1 deletion codehelp/CodeHelpers/LogGenerator/LoggableMember.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System.Text;
using Microsoft.CodeAnalysis;

namespace WPILib.CodeHelpers.LogGenerator;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using WPILib.CodeHelpers.LogGenerator;

namespace WPILib.CodeHelpers.LogGenerator.SourceGenerator;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System.Text;
using Microsoft.CodeAnalysis;

namespace WPILib.CodeHelpers.StatusCheckGenerator;
Expand Down
1 change: 0 additions & 1 deletion dev/desktopDev/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using System.Text.Json;
using CsCore;
using CsCore.Raw;
using NetworkTables;
using UnitsNet.NumberExtensions.NumberToAngle;
using WPIMath.Geometry;
using WPIUtil;
Expand Down
4 changes: 0 additions & 4 deletions src/cscore/AxisCamera.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
using System;
using CsCore.Handles;
using CsCore.Natives;

namespace CsCore;

public class AxisCamera : HttpCamera
Expand Down
2 changes: 0 additions & 2 deletions src/cscore/EventKind.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System;

namespace CsCore;

[Flags]
Expand Down
1 change: 0 additions & 1 deletion src/cscore/HttpCamera.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using CsCore.Handles;
using CsCore.Natives;

Expand Down
2 changes: 0 additions & 2 deletions src/cscore/ImageSource.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System;
using System.Buffers;
using CsCore.Handles;
using CsCore.Natives;

Expand Down
2 changes: 0 additions & 2 deletions src/cscore/Natives/CsNative.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.InteropServices.Marshalling;
using CsCore.Handles;
using WPIUtil;
using WPIUtil.Marshal;
using WPIUtil.Natives;

namespace CsCore.Natives;

Expand Down
2 changes: 0 additions & 2 deletions src/cscore/PropertyKind.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System;

namespace CsCore;

[Flags]
Expand Down
1 change: 0 additions & 1 deletion src/cscore/Raw/RawSink.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using CsCore.Handles;
using CsCore.Natives;
using WPIUtil;
Expand Down
2 changes: 0 additions & 2 deletions src/cscore/SinkKind.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System;

namespace CsCore;

[Flags]
Expand Down
2 changes: 0 additions & 2 deletions src/cscore/SourceKind.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System;

namespace CsCore;

[Flags]
Expand Down
2 changes: 0 additions & 2 deletions src/cscore/VideoEvent.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
using System;
using System.Runtime.InteropServices;
using System.Runtime.InteropServices.Marshalling;
using CsCore.Handles;
using CsCore.Natives;
using WPIUtil;
using WPIUtil.Marshal;

namespace CsCore;
Expand Down
2 changes: 0 additions & 2 deletions src/cscore/VideoException.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Diagnostics.CodeAnalysis;
using System.Runtime.CompilerServices;

namespace CsCore;

Expand Down
3 changes: 0 additions & 3 deletions src/cscore/VideoListener.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using System;
using System.Collections.Generic;
using System.Threading;
using CsCore.Handles;
using CsCore.Natives;

Expand Down
2 changes: 0 additions & 2 deletions src/cscore/VideoProperty.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System;
using System.Collections.Generic;
using CsCore.Handles;
using CsCore.Natives;

Expand Down
2 changes: 0 additions & 2 deletions src/cscore/VideoSink.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System;
using System.Collections.Generic;
using CsCore.Handles;
using CsCore.Natives;

Expand Down
2 changes: 0 additions & 2 deletions src/cscore/VideoSource.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System;
using System.Collections.Generic;
using CsCore.Handles;
using CsCore.Natives;

Expand Down
1 change: 0 additions & 1 deletion src/hal/ControlWord.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using System.Runtime.InteropServices;
using System.Runtime.InteropServices.Marshalling;

Expand Down
1 change: 0 additions & 1 deletion src/hal/JoystickDescriptor.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using System.Runtime.InteropServices;
using System.Runtime.InteropServices.Marshalling;

Expand Down
2 changes: 0 additions & 2 deletions src/hal/Marshal/NullTerminatedStringMarshaller.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Runtime.InteropServices.Marshalling;
using WPIUtil.Marshal;

namespace WPIHal.Marshal;

Expand Down
1 change: 0 additions & 1 deletion src/hal/MatchInfo.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using System.Runtime.InteropServices;
using System.Runtime.InteropServices.Marshalling;

Expand Down
1 change: 0 additions & 1 deletion src/hal/Natives/HalAddressableLED.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using WPIHal.Handles;
Expand Down
1 change: 0 additions & 1 deletion src/hal/Natives/HalBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using System.Runtime.InteropServices.Marshalling;
using WPIHal.Handles;
using WPIHal.Marshal;
using WPIUtil.Marshal;

namespace WPIHal.Natives;

Expand Down
1 change: 0 additions & 1 deletion src/hal/Natives/HalCAN.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

Expand Down
1 change: 0 additions & 1 deletion src/hal/Natives/HalCANAPI.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using WPIHal.Handles;
Expand Down
1 change: 0 additions & 1 deletion src/hal/Natives/HalI2C.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

Expand Down
1 change: 0 additions & 1 deletion src/hal/Natives/HalSPI.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using WPIHal.Handles;
Expand Down
1 change: 0 additions & 1 deletion src/hal/Natives/HalSerialPort.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using WPIHal.Handles;
Expand Down
1 change: 0 additions & 1 deletion src/hal/Natives/HalSimDevice.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using WPIHal.Handles;
Expand Down
1 change: 0 additions & 1 deletion src/ntcore/ConnectionInfo.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using System.Runtime.InteropServices;
using System.Runtime.InteropServices.Marshalling;
using WPIUtil.Marshal;
Expand Down
1 change: 0 additions & 1 deletion src/ntcore/EntryBase.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using NetworkTables.Handles;
using NetworkTables.Natives;

Expand Down
2 changes: 0 additions & 2 deletions src/ntcore/EntryFlags.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System;

namespace NetworkTables;

[Flags]
Expand Down
2 changes: 0 additions & 2 deletions src/ntcore/EventFlags.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System;

namespace NetworkTables;

[Flags]
Expand Down
1 change: 0 additions & 1 deletion src/ntcore/Generated/BooleanArrayEntryImpl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

// THIS FILE WAS AUTO-GENERATED BY ./ntcore/generate_topics.py. DO NOT MODIFY

using System;
using NetworkTables.Handles;
using NetworkTables.Natives;

Expand Down
2 changes: 0 additions & 2 deletions src/ntcore/Generated/BooleanArrayPublisher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

// THIS FILE WAS AUTO-GENERATED BY ./ntcore/generate_topics.py. DO NOT MODIFY

using System;

namespace NetworkTables;

/// <summary>
Expand Down
1 change: 0 additions & 1 deletion src/ntcore/Generated/BooleanArrayTopic.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

// THIS FILE WAS AUTO-GENERATED BY ./ntcore/generate_topics.py. DO NOT MODIFY

using System;
using NetworkTables.Handles;
using NetworkTables.Natives;

Expand Down
1 change: 0 additions & 1 deletion src/ntcore/Generated/BooleanEntryImpl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

// THIS FILE WAS AUTO-GENERATED BY ./ntcore/generate_topics.py. DO NOT MODIFY

using System;
using NetworkTables.Handles;
using NetworkTables.Natives;

Expand Down
2 changes: 0 additions & 2 deletions src/ntcore/Generated/BooleanPublisher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

// THIS FILE WAS AUTO-GENERATED BY ./ntcore/generate_topics.py. DO NOT MODIFY

using System;

namespace NetworkTables;

/// <summary>
Expand Down
1 change: 0 additions & 1 deletion src/ntcore/Generated/BooleanTopic.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

// THIS FILE WAS AUTO-GENERATED BY ./ntcore/generate_topics.py. DO NOT MODIFY

using System;
using NetworkTables.Handles;
using NetworkTables.Natives;

Expand Down
1 change: 0 additions & 1 deletion src/ntcore/Generated/DoubleArrayEntryImpl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

// THIS FILE WAS AUTO-GENERATED BY ./ntcore/generate_topics.py. DO NOT MODIFY

using System;
using NetworkTables.Handles;
using NetworkTables.Natives;

Expand Down
2 changes: 0 additions & 2 deletions src/ntcore/Generated/DoubleArrayPublisher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

// THIS FILE WAS AUTO-GENERATED BY ./ntcore/generate_topics.py. DO NOT MODIFY

using System;

namespace NetworkTables;

/// <summary>
Expand Down
1 change: 0 additions & 1 deletion src/ntcore/Generated/DoubleArrayTopic.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

// THIS FILE WAS AUTO-GENERATED BY ./ntcore/generate_topics.py. DO NOT MODIFY

using System;
using NetworkTables.Handles;
using NetworkTables.Natives;

Expand Down
1 change: 0 additions & 1 deletion src/ntcore/Generated/DoubleEntryImpl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

// THIS FILE WAS AUTO-GENERATED BY ./ntcore/generate_topics.py. DO NOT MODIFY

using System;
using NetworkTables.Handles;
using NetworkTables.Natives;

Expand Down
2 changes: 0 additions & 2 deletions src/ntcore/Generated/DoublePublisher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

// THIS FILE WAS AUTO-GENERATED BY ./ntcore/generate_topics.py. DO NOT MODIFY

using System;

namespace NetworkTables;

/// <summary>
Expand Down
1 change: 0 additions & 1 deletion src/ntcore/Generated/DoubleTopic.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

// THIS FILE WAS AUTO-GENERATED BY ./ntcore/generate_topics.py. DO NOT MODIFY

using System;
using NetworkTables.Handles;
using NetworkTables.Natives;

Expand Down
1 change: 0 additions & 1 deletion src/ntcore/Generated/FloatArrayEntryImpl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

// THIS FILE WAS AUTO-GENERATED BY ./ntcore/generate_topics.py. DO NOT MODIFY

using System;
using NetworkTables.Handles;
using NetworkTables.Natives;

Expand Down
2 changes: 0 additions & 2 deletions src/ntcore/Generated/FloatArrayPublisher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

// THIS FILE WAS AUTO-GENERATED BY ./ntcore/generate_topics.py. DO NOT MODIFY

using System;

namespace NetworkTables;

/// <summary>
Expand Down
1 change: 0 additions & 1 deletion src/ntcore/Generated/FloatArrayTopic.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

// THIS FILE WAS AUTO-GENERATED BY ./ntcore/generate_topics.py. DO NOT MODIFY

using System;
using NetworkTables.Handles;
using NetworkTables.Natives;

Expand Down
1 change: 0 additions & 1 deletion src/ntcore/Generated/FloatEntryImpl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

// THIS FILE WAS AUTO-GENERATED BY ./ntcore/generate_topics.py. DO NOT MODIFY

using System;
using NetworkTables.Handles;
using NetworkTables.Natives;

Expand Down
2 changes: 0 additions & 2 deletions src/ntcore/Generated/FloatPublisher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

// THIS FILE WAS AUTO-GENERATED BY ./ntcore/generate_topics.py. DO NOT MODIFY

using System;

namespace NetworkTables;

/// <summary>
Expand Down
1 change: 0 additions & 1 deletion src/ntcore/Generated/FloatTopic.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

// THIS FILE WAS AUTO-GENERATED BY ./ntcore/generate_topics.py. DO NOT MODIFY

using System;
using NetworkTables.Handles;
using NetworkTables.Natives;

Expand Down
Loading

0 comments on commit 5cdb4c4

Please sign in to comment.