From 5cdb4c41f9c7bcaba599c4b44b0b0cbd586da09a Mon Sep 17 00:00:00 2001 From: Thad House Date: Tue, 20 Feb 2024 23:06:51 -0800 Subject: [PATCH] Remove all unnecessary usings --- codehelp/CodeHelpers.Test/LogGeneratorFixerTest.cs | 3 --- codehelp/CodeHelpers/EquatableArray.cs | 3 --- codehelp/CodeHelpers/HashCode.cs | 1 - .../CodeHelpers/LogGenerator/Analyzer/LoggerDiagnostics.cs | 1 - codehelp/CodeHelpers/LogGenerator/LoggableMember.cs | 1 - .../CodeHelpers/LogGenerator/SourceGenerator/LogGenerator.cs | 1 - codehelp/CodeHelpers/StatusCheckGenerator/ParameterModel.cs | 1 - dev/desktopDev/Program.cs | 1 - src/cscore/AxisCamera.cs | 4 ---- src/cscore/EventKind.cs | 2 -- src/cscore/HttpCamera.cs | 1 - src/cscore/ImageSource.cs | 2 -- src/cscore/Natives/CsNative.cs | 2 -- src/cscore/PropertyKind.cs | 2 -- src/cscore/Raw/RawSink.cs | 1 - src/cscore/SinkKind.cs | 2 -- src/cscore/SourceKind.cs | 2 -- src/cscore/VideoEvent.cs | 2 -- src/cscore/VideoException.cs | 2 -- src/cscore/VideoListener.cs | 3 --- src/cscore/VideoProperty.cs | 2 -- src/cscore/VideoSink.cs | 2 -- src/cscore/VideoSource.cs | 2 -- src/hal/ControlWord.cs | 1 - src/hal/JoystickDescriptor.cs | 1 - src/hal/Marshal/NullTerminatedStringMarshaller.cs | 2 -- src/hal/MatchInfo.cs | 1 - src/hal/Natives/HalAddressableLED.cs | 1 - src/hal/Natives/HalBase.cs | 1 - src/hal/Natives/HalCAN.cs | 1 - src/hal/Natives/HalCANAPI.cs | 1 - src/hal/Natives/HalI2C.cs | 1 - src/hal/Natives/HalSPI.cs | 1 - src/hal/Natives/HalSerialPort.cs | 1 - src/hal/Natives/HalSimDevice.cs | 1 - src/ntcore/ConnectionInfo.cs | 1 - src/ntcore/EntryBase.cs | 1 - src/ntcore/EntryFlags.cs | 2 -- src/ntcore/EventFlags.cs | 2 -- src/ntcore/Generated/BooleanArrayEntryImpl.cs | 1 - src/ntcore/Generated/BooleanArrayPublisher.cs | 2 -- src/ntcore/Generated/BooleanArrayTopic.cs | 1 - src/ntcore/Generated/BooleanEntryImpl.cs | 1 - src/ntcore/Generated/BooleanPublisher.cs | 2 -- src/ntcore/Generated/BooleanTopic.cs | 1 - src/ntcore/Generated/DoubleArrayEntryImpl.cs | 1 - src/ntcore/Generated/DoubleArrayPublisher.cs | 2 -- src/ntcore/Generated/DoubleArrayTopic.cs | 1 - src/ntcore/Generated/DoubleEntryImpl.cs | 1 - src/ntcore/Generated/DoublePublisher.cs | 2 -- src/ntcore/Generated/DoubleTopic.cs | 1 - src/ntcore/Generated/FloatArrayEntryImpl.cs | 1 - src/ntcore/Generated/FloatArrayPublisher.cs | 2 -- src/ntcore/Generated/FloatArrayTopic.cs | 1 - src/ntcore/Generated/FloatEntryImpl.cs | 1 - src/ntcore/Generated/FloatPublisher.cs | 2 -- src/ntcore/Generated/FloatTopic.cs | 1 - src/ntcore/Generated/GenericEntryImpl.cs | 1 - src/ntcore/Generated/IntegerArrayEntryImpl.cs | 1 - src/ntcore/Generated/IntegerArrayPublisher.cs | 2 -- src/ntcore/Generated/IntegerArrayTopic.cs | 1 - src/ntcore/Generated/IntegerEntryImpl.cs | 1 - src/ntcore/Generated/IntegerPublisher.cs | 2 -- src/ntcore/Generated/IntegerTopic.cs | 1 - src/ntcore/Generated/NetworkTableValue.cs | 2 -- src/ntcore/Generated/RawEntryImpl.cs | 1 - src/ntcore/Generated/RawPublisher.cs | 2 -- src/ntcore/Generated/RawTopic.cs | 1 - src/ntcore/Generated/RefNetworkTableValue.cs | 1 - src/ntcore/GenericEntryImpl.cs | 1 - src/ntcore/INtSendableBuilder.cs | 1 - src/ntcore/LogMessage.cs | 1 - src/ntcore/MultiSubscriber.cs | 1 - src/ntcore/Natives/NetworkTableValueMarshaller.cs | 5 ----- src/ntcore/Natives/NtCore.ClientServer.cs | 1 - src/ntcore/Natives/NtCore.Listener.cs | 1 - src/ntcore/Natives/NtCore.Schema.cs | 1 - src/ntcore/Natives/NtCore.cs | 2 -- src/ntcore/Natives/RefNetworkTableValueMarshaller.cs | 1 - src/ntcore/NetworkMode.cs | 2 -- src/ntcore/NetworkTable.cs | 4 ---- src/ntcore/NetworkTableEvent.cs | 1 - src/ntcore/NetworkTableInstance.cs | 4 ---- src/ntcore/NetworkTableListenerPoller.cs | 1 - src/ntcore/NetworkTableType.cs | 2 -- src/ntcore/NetworkTableValue.cs | 2 -- src/ntcore/ProtobufEntryImpl.cs | 1 - src/ntcore/ProtobufTopic.cs | 2 -- src/ntcore/PubSub.cs | 1 - src/ntcore/RefNetworkTableValue.cs | 1 - src/ntcore/Strings/StringArrayEntryImpl.cs | 1 - src/ntcore/Strings/StringArrayPublisher.cs | 2 -- src/ntcore/Strings/StringArrayTopic.cs | 1 - src/ntcore/Strings/StringEntryImpl.cs | 1 - src/ntcore/Strings/StringPublisher.cs | 2 -- src/ntcore/Strings/StringTopic.cs | 1 - src/ntcore/StructArrayEntryImpl.cs | 1 - src/ntcore/StructArrayPublisher.cs | 1 - src/ntcore/StructArraySubscriber.cs | 1 - src/ntcore/StructArrayTopic.cs | 2 -- src/ntcore/StructEntryImpl.cs | 1 - src/ntcore/StructTopic.cs | 2 -- src/ntcore/TimestampedObject.cs | 2 -- src/ntcore/Topic.cs | 2 -- src/ntcore/TopicInfo.cs | 1 - src/thirdparty/Stereologue/Attributes.cs | 2 -- src/thirdparty/Stereologue/LogType.cs | 2 -- src/thirdparty/Stereologue/Stereologuer.cs | 2 -- src/wpilibsharp/RobotRunner.cs | 1 - src/wpimath/Geometry/Pose2d.cs | 2 -- src/wpimath/Geometry/Quaternion.cs | 1 - src/wpimath/Geometry/Rotation2d.cs | 1 - src/wpimath/Geometry/Rotation3d.cs | 1 - src/wpimath/Geometry/Transform2d.cs | 3 --- src/wpimath/Geometry/Translation2d.cs | 1 - src/wpimath/Geometry/Twist2d.cs | 1 - src/wpimath/Geometry/Twist3d.cs | 1 - src/wpimath/Interpolation/InterpolatingMap.cs | 2 -- src/wpinet/Natives/MulticastServiceAnnouncer.cs | 1 - src/wpinet/Natives/ServiceDataMarshaller.cs | 1 - src/wpiutil/AutomateStatusCheckAttribute.cs | 2 -- src/wpiutil/CircularBuffer.cs | 2 -- src/wpiutil/Concurrent/Event.cs | 1 - src/wpiutil/Concurrent/Synchronization.cs | 1 - src/wpiutil/EventVector.cs | 1 - src/wpiutil/Logging/BooleanArrayLogEntry.cs | 2 -- src/wpiutil/Logging/BooleanLogEntry.cs | 2 -- src/wpiutil/Logging/DataLog.cs | 2 -- src/wpiutil/Logging/DoubleArrayLogEntry.cs | 2 -- src/wpiutil/Logging/DoubleLogEntry.cs | 2 -- src/wpiutil/Logging/FloatArrayLogEntry.cs | 2 -- src/wpiutil/Logging/FloatLogEntry.cs | 2 -- src/wpiutil/Logging/IntegerArrayLogEntry.cs | 2 -- src/wpiutil/Logging/IntegerLogEntry.cs | 2 -- src/wpiutil/Logging/RawLogEntry.cs | 2 -- src/wpiutil/Logging/StringArrayLogEntry.cs | 2 -- src/wpiutil/Logging/StringLogEntry.cs | 2 -- src/wpiutil/Logging/StructArrayLogEntry.cs | 1 - src/wpiutil/Marshal/ManagedFreeArrayMarshaller.cs | 1 - src/wpiutil/Marshal/NoFreeArrayMarshaller.cs | 1 - src/wpiutil/Marshal/UnmanagedFreeArrayMarshaller.cs | 1 - src/wpiutil/Marshal/WPIStringMarshaller.cs | 1 - src/wpiutil/Natives/DataLogNative.cs | 1 - src/wpiutil/Natives/RawFrameNative.cs | 1 - src/wpiutil/RawFrameReader.cs | 1 - src/wpiutil/RawFrameWriter.cs | 1 - src/wpiutil/Sendable/ISendableBuilder.cs | 2 -- src/wpiutil/Sendable/SendableRegistery.cs | 3 --- src/wpiutil/Serialization/Protobuf/IProtobuf.cs | 1 - src/wpiutil/Serialization/Protobuf/ProtobufBuffer.cs | 1 - src/wpiutil/Serialization/Struct/BadSchemaException.cs | 2 -- src/wpiutil/Serialization/Struct/DynamicStruct.cs | 1 - src/wpiutil/Serialization/Struct/Parsing/Lexer.cs | 2 -- src/wpiutil/Serialization/Struct/Parsing/ParseException.cs | 2 -- .../Serialization/Struct/Parsing/ParsedDeclaration.cs | 2 -- src/wpiutil/Serialization/Struct/Parsing/ParsedSchema.cs | 2 -- src/wpiutil/Serialization/Struct/Parsing/Parser.cs | 2 -- .../Serialization/Struct/Parsing/Utf8CodePointEnumerator.cs | 1 - src/wpiutil/Serialization/Struct/Struct.cs | 2 -- src/wpiutil/Serialization/Struct/StructBuffer.cs | 2 -- src/wpiutil/Serialization/Struct/StructDescriptor.cs | 3 --- src/wpiutil/Serialization/Struct/StructDescriptorDatabase.cs | 2 -- src/wpiutil/Serialization/Struct/StructFieldDescriptor.cs | 2 -- src/wpiutil/Serialization/Struct/StructFieldType.cs | 2 -- src/wpiutil/Serialization/Struct/StructPacker.cs | 1 - src/wpiutil/Serialization/Struct/StructUnpacker.cs | 1 - src/wpiutil/WPIString.cs | 1 - test/ntcore.test/LoggerTest.cs | 1 - test/ntcore.test/NtStringMarshallerTests.cs | 3 --- test/ntcore.test/StringUtf8ReturnMarshallerTests.cs | 2 -- test/stereologue.test/TestTree.cs | 2 -- 171 files changed, 266 deletions(-) diff --git a/codehelp/CodeHelpers.Test/LogGeneratorFixerTest.cs b/codehelp/CodeHelpers.Test/LogGeneratorFixerTest.cs index fe5d0aa9..48eeb86b 100644 --- a/codehelp/CodeHelpers.Test/LogGeneratorFixerTest.cs +++ b/codehelp/CodeHelpers.Test/LogGeneratorFixerTest.cs @@ -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; diff --git a/codehelp/CodeHelpers/EquatableArray.cs b/codehelp/CodeHelpers/EquatableArray.cs index ccec4755..3ac31e5e 100644 --- a/codehelp/CodeHelpers/EquatableArray.cs +++ b/codehelp/CodeHelpers/EquatableArray.cs @@ -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; diff --git a/codehelp/CodeHelpers/HashCode.cs b/codehelp/CodeHelpers/HashCode.cs index f602977d..7a3f8d08 100644 --- a/codehelp/CodeHelpers/HashCode.cs +++ b/codehelp/CodeHelpers/HashCode.cs @@ -1,4 +1,3 @@ -using System.Collections.Generic; using System.ComponentModel; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/codehelp/CodeHelpers/LogGenerator/Analyzer/LoggerDiagnostics.cs b/codehelp/CodeHelpers/LogGenerator/Analyzer/LoggerDiagnostics.cs index 5207186c..6d879539 100644 --- a/codehelp/CodeHelpers/LogGenerator/Analyzer/LoggerDiagnostics.cs +++ b/codehelp/CodeHelpers/LogGenerator/Analyzer/LoggerDiagnostics.cs @@ -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; diff --git a/codehelp/CodeHelpers/LogGenerator/LoggableMember.cs b/codehelp/CodeHelpers/LogGenerator/LoggableMember.cs index ce56750e..8913fcc8 100644 --- a/codehelp/CodeHelpers/LogGenerator/LoggableMember.cs +++ b/codehelp/CodeHelpers/LogGenerator/LoggableMember.cs @@ -1,4 +1,3 @@ -using System.Text; using Microsoft.CodeAnalysis; namespace WPILib.CodeHelpers.LogGenerator; diff --git a/codehelp/CodeHelpers/LogGenerator/SourceGenerator/LogGenerator.cs b/codehelp/CodeHelpers/LogGenerator/SourceGenerator/LogGenerator.cs index fb2e9e9e..ced6e158 100644 --- a/codehelp/CodeHelpers/LogGenerator/SourceGenerator/LogGenerator.cs +++ b/codehelp/CodeHelpers/LogGenerator/SourceGenerator/LogGenerator.cs @@ -1,6 +1,5 @@ using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp.Syntax; -using WPILib.CodeHelpers.LogGenerator; namespace WPILib.CodeHelpers.LogGenerator.SourceGenerator; diff --git a/codehelp/CodeHelpers/StatusCheckGenerator/ParameterModel.cs b/codehelp/CodeHelpers/StatusCheckGenerator/ParameterModel.cs index c5b08ba3..01de13df 100644 --- a/codehelp/CodeHelpers/StatusCheckGenerator/ParameterModel.cs +++ b/codehelp/CodeHelpers/StatusCheckGenerator/ParameterModel.cs @@ -1,4 +1,3 @@ -using System.Text; using Microsoft.CodeAnalysis; namespace WPILib.CodeHelpers.StatusCheckGenerator; diff --git a/dev/desktopDev/Program.cs b/dev/desktopDev/Program.cs index ffa0f738..c3f33c21 100644 --- a/dev/desktopDev/Program.cs +++ b/dev/desktopDev/Program.cs @@ -3,7 +3,6 @@ using System.Text.Json; using CsCore; using CsCore.Raw; -using NetworkTables; using UnitsNet.NumberExtensions.NumberToAngle; using WPIMath.Geometry; using WPIUtil; diff --git a/src/cscore/AxisCamera.cs b/src/cscore/AxisCamera.cs index 3d67da2f..5c43496f 100644 --- a/src/cscore/AxisCamera.cs +++ b/src/cscore/AxisCamera.cs @@ -1,7 +1,3 @@ -using System; -using CsCore.Handles; -using CsCore.Natives; - namespace CsCore; public class AxisCamera : HttpCamera diff --git a/src/cscore/EventKind.cs b/src/cscore/EventKind.cs index 0328b8c7..a5fd0db9 100644 --- a/src/cscore/EventKind.cs +++ b/src/cscore/EventKind.cs @@ -1,5 +1,3 @@ -using System; - namespace CsCore; [Flags] diff --git a/src/cscore/HttpCamera.cs b/src/cscore/HttpCamera.cs index 20100791..8815bda0 100644 --- a/src/cscore/HttpCamera.cs +++ b/src/cscore/HttpCamera.cs @@ -1,4 +1,3 @@ -using System; using CsCore.Handles; using CsCore.Natives; diff --git a/src/cscore/ImageSource.cs b/src/cscore/ImageSource.cs index f444dd11..7da686bc 100644 --- a/src/cscore/ImageSource.cs +++ b/src/cscore/ImageSource.cs @@ -1,5 +1,3 @@ -using System; -using System.Buffers; using CsCore.Handles; using CsCore.Natives; diff --git a/src/cscore/Natives/CsNative.cs b/src/cscore/Natives/CsNative.cs index 9128c2dc..26cd0cb6 100644 --- a/src/cscore/Natives/CsNative.cs +++ b/src/cscore/Natives/CsNative.cs @@ -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; diff --git a/src/cscore/PropertyKind.cs b/src/cscore/PropertyKind.cs index e58146b4..d314b93f 100644 --- a/src/cscore/PropertyKind.cs +++ b/src/cscore/PropertyKind.cs @@ -1,5 +1,3 @@ -using System; - namespace CsCore; [Flags] diff --git a/src/cscore/Raw/RawSink.cs b/src/cscore/Raw/RawSink.cs index 81620280..ffc27fef 100644 --- a/src/cscore/Raw/RawSink.cs +++ b/src/cscore/Raw/RawSink.cs @@ -1,4 +1,3 @@ -using System; using CsCore.Handles; using CsCore.Natives; using WPIUtil; diff --git a/src/cscore/SinkKind.cs b/src/cscore/SinkKind.cs index 5794ff3d..ff9a2c8f 100644 --- a/src/cscore/SinkKind.cs +++ b/src/cscore/SinkKind.cs @@ -1,5 +1,3 @@ -using System; - namespace CsCore; [Flags] diff --git a/src/cscore/SourceKind.cs b/src/cscore/SourceKind.cs index 6157f208..5a8992f5 100644 --- a/src/cscore/SourceKind.cs +++ b/src/cscore/SourceKind.cs @@ -1,5 +1,3 @@ -using System; - namespace CsCore; [Flags] diff --git a/src/cscore/VideoEvent.cs b/src/cscore/VideoEvent.cs index f797be2f..23329424 100644 --- a/src/cscore/VideoEvent.cs +++ b/src/cscore/VideoEvent.cs @@ -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; diff --git a/src/cscore/VideoException.cs b/src/cscore/VideoException.cs index 6a817c30..c9a3cf9e 100644 --- a/src/cscore/VideoException.cs +++ b/src/cscore/VideoException.cs @@ -1,6 +1,4 @@ -using System; using System.Diagnostics.CodeAnalysis; -using System.Runtime.CompilerServices; namespace CsCore; diff --git a/src/cscore/VideoListener.cs b/src/cscore/VideoListener.cs index 5eb0f2c8..8859098a 100644 --- a/src/cscore/VideoListener.cs +++ b/src/cscore/VideoListener.cs @@ -1,6 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Threading; using CsCore.Handles; using CsCore.Natives; diff --git a/src/cscore/VideoProperty.cs b/src/cscore/VideoProperty.cs index f4716c2a..db4398a6 100644 --- a/src/cscore/VideoProperty.cs +++ b/src/cscore/VideoProperty.cs @@ -1,5 +1,3 @@ -using System; -using System.Collections.Generic; using CsCore.Handles; using CsCore.Natives; diff --git a/src/cscore/VideoSink.cs b/src/cscore/VideoSink.cs index 51b2d085..d30eb48c 100644 --- a/src/cscore/VideoSink.cs +++ b/src/cscore/VideoSink.cs @@ -1,5 +1,3 @@ -using System; -using System.Collections.Generic; using CsCore.Handles; using CsCore.Natives; diff --git a/src/cscore/VideoSource.cs b/src/cscore/VideoSource.cs index bee7c4a1..34cd8b10 100644 --- a/src/cscore/VideoSource.cs +++ b/src/cscore/VideoSource.cs @@ -1,5 +1,3 @@ -using System; -using System.Collections.Generic; using CsCore.Handles; using CsCore.Natives; diff --git a/src/hal/ControlWord.cs b/src/hal/ControlWord.cs index c2c8eb99..3ddd85d1 100644 --- a/src/hal/ControlWord.cs +++ b/src/hal/ControlWord.cs @@ -1,4 +1,3 @@ -using System; using System.Runtime.InteropServices; using System.Runtime.InteropServices.Marshalling; diff --git a/src/hal/JoystickDescriptor.cs b/src/hal/JoystickDescriptor.cs index b1314eea..ee778f94 100644 --- a/src/hal/JoystickDescriptor.cs +++ b/src/hal/JoystickDescriptor.cs @@ -1,4 +1,3 @@ -using System; using System.Runtime.InteropServices; using System.Runtime.InteropServices.Marshalling; diff --git a/src/hal/Marshal/NullTerminatedStringMarshaller.cs b/src/hal/Marshal/NullTerminatedStringMarshaller.cs index f93d74ec..bf8465c0 100644 --- a/src/hal/Marshal/NullTerminatedStringMarshaller.cs +++ b/src/hal/Marshal/NullTerminatedStringMarshaller.cs @@ -1,6 +1,4 @@ -using System; using System.Runtime.InteropServices.Marshalling; -using WPIUtil.Marshal; namespace WPIHal.Marshal; diff --git a/src/hal/MatchInfo.cs b/src/hal/MatchInfo.cs index 8b6a5a43..b8ad3cf4 100644 --- a/src/hal/MatchInfo.cs +++ b/src/hal/MatchInfo.cs @@ -1,4 +1,3 @@ -using System; using System.Runtime.InteropServices; using System.Runtime.InteropServices.Marshalling; diff --git a/src/hal/Natives/HalAddressableLED.cs b/src/hal/Natives/HalAddressableLED.cs index c24067a0..45f366e1 100644 --- a/src/hal/Natives/HalAddressableLED.cs +++ b/src/hal/Natives/HalAddressableLED.cs @@ -1,4 +1,3 @@ -using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using WPIHal.Handles; diff --git a/src/hal/Natives/HalBase.cs b/src/hal/Natives/HalBase.cs index abba4193..8b7be068 100644 --- a/src/hal/Natives/HalBase.cs +++ b/src/hal/Natives/HalBase.cs @@ -3,7 +3,6 @@ using System.Runtime.InteropServices.Marshalling; using WPIHal.Handles; using WPIHal.Marshal; -using WPIUtil.Marshal; namespace WPIHal.Natives; diff --git a/src/hal/Natives/HalCAN.cs b/src/hal/Natives/HalCAN.cs index 671a88ac..4b7b44c3 100644 --- a/src/hal/Natives/HalCAN.cs +++ b/src/hal/Natives/HalCAN.cs @@ -1,4 +1,3 @@ -using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/src/hal/Natives/HalCANAPI.cs b/src/hal/Natives/HalCANAPI.cs index 74e116b8..9bc51a11 100644 --- a/src/hal/Natives/HalCANAPI.cs +++ b/src/hal/Natives/HalCANAPI.cs @@ -1,4 +1,3 @@ -using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using WPIHal.Handles; diff --git a/src/hal/Natives/HalI2C.cs b/src/hal/Natives/HalI2C.cs index f472d7b8..b41913ea 100644 --- a/src/hal/Natives/HalI2C.cs +++ b/src/hal/Natives/HalI2C.cs @@ -1,4 +1,3 @@ -using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/src/hal/Natives/HalSPI.cs b/src/hal/Natives/HalSPI.cs index 4bfdc288..0cbf9eea 100644 --- a/src/hal/Natives/HalSPI.cs +++ b/src/hal/Natives/HalSPI.cs @@ -1,4 +1,3 @@ -using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using WPIHal.Handles; diff --git a/src/hal/Natives/HalSerialPort.cs b/src/hal/Natives/HalSerialPort.cs index daf5772d..a672473a 100644 --- a/src/hal/Natives/HalSerialPort.cs +++ b/src/hal/Natives/HalSerialPort.cs @@ -1,4 +1,3 @@ -using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using WPIHal.Handles; diff --git a/src/hal/Natives/HalSimDevice.cs b/src/hal/Natives/HalSimDevice.cs index 3a0e705f..8bac869c 100644 --- a/src/hal/Natives/HalSimDevice.cs +++ b/src/hal/Natives/HalSimDevice.cs @@ -1,4 +1,3 @@ -using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using WPIHal.Handles; diff --git a/src/ntcore/ConnectionInfo.cs b/src/ntcore/ConnectionInfo.cs index 3d6da579..82ffd3d1 100644 --- a/src/ntcore/ConnectionInfo.cs +++ b/src/ntcore/ConnectionInfo.cs @@ -1,4 +1,3 @@ -using System; using System.Runtime.InteropServices; using System.Runtime.InteropServices.Marshalling; using WPIUtil.Marshal; diff --git a/src/ntcore/EntryBase.cs b/src/ntcore/EntryBase.cs index eced70ad..319124fb 100644 --- a/src/ntcore/EntryBase.cs +++ b/src/ntcore/EntryBase.cs @@ -1,4 +1,3 @@ -using System; using NetworkTables.Handles; using NetworkTables.Natives; diff --git a/src/ntcore/EntryFlags.cs b/src/ntcore/EntryFlags.cs index 95dbccdf..817a12c0 100644 --- a/src/ntcore/EntryFlags.cs +++ b/src/ntcore/EntryFlags.cs @@ -1,5 +1,3 @@ -using System; - namespace NetworkTables; [Flags] diff --git a/src/ntcore/EventFlags.cs b/src/ntcore/EventFlags.cs index 44de9183..29975651 100644 --- a/src/ntcore/EventFlags.cs +++ b/src/ntcore/EventFlags.cs @@ -1,5 +1,3 @@ -using System; - namespace NetworkTables; [Flags] diff --git a/src/ntcore/Generated/BooleanArrayEntryImpl.cs b/src/ntcore/Generated/BooleanArrayEntryImpl.cs index 8b377caa..c530af92 100644 --- a/src/ntcore/Generated/BooleanArrayEntryImpl.cs +++ b/src/ntcore/Generated/BooleanArrayEntryImpl.cs @@ -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; diff --git a/src/ntcore/Generated/BooleanArrayPublisher.cs b/src/ntcore/Generated/BooleanArrayPublisher.cs index b7672845..74bcf3e5 100644 --- a/src/ntcore/Generated/BooleanArrayPublisher.cs +++ b/src/ntcore/Generated/BooleanArrayPublisher.cs @@ -4,8 +4,6 @@ // THIS FILE WAS AUTO-GENERATED BY ./ntcore/generate_topics.py. DO NOT MODIFY -using System; - namespace NetworkTables; /// diff --git a/src/ntcore/Generated/BooleanArrayTopic.cs b/src/ntcore/Generated/BooleanArrayTopic.cs index dc3f086e..b0a12b4e 100644 --- a/src/ntcore/Generated/BooleanArrayTopic.cs +++ b/src/ntcore/Generated/BooleanArrayTopic.cs @@ -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; diff --git a/src/ntcore/Generated/BooleanEntryImpl.cs b/src/ntcore/Generated/BooleanEntryImpl.cs index c21db2eb..c70ba528 100644 --- a/src/ntcore/Generated/BooleanEntryImpl.cs +++ b/src/ntcore/Generated/BooleanEntryImpl.cs @@ -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; diff --git a/src/ntcore/Generated/BooleanPublisher.cs b/src/ntcore/Generated/BooleanPublisher.cs index a2c5e99a..a9e55bc3 100644 --- a/src/ntcore/Generated/BooleanPublisher.cs +++ b/src/ntcore/Generated/BooleanPublisher.cs @@ -4,8 +4,6 @@ // THIS FILE WAS AUTO-GENERATED BY ./ntcore/generate_topics.py. DO NOT MODIFY -using System; - namespace NetworkTables; /// diff --git a/src/ntcore/Generated/BooleanTopic.cs b/src/ntcore/Generated/BooleanTopic.cs index 121edc2e..a9285e04 100644 --- a/src/ntcore/Generated/BooleanTopic.cs +++ b/src/ntcore/Generated/BooleanTopic.cs @@ -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; diff --git a/src/ntcore/Generated/DoubleArrayEntryImpl.cs b/src/ntcore/Generated/DoubleArrayEntryImpl.cs index 63907cda..37c6c883 100644 --- a/src/ntcore/Generated/DoubleArrayEntryImpl.cs +++ b/src/ntcore/Generated/DoubleArrayEntryImpl.cs @@ -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; diff --git a/src/ntcore/Generated/DoubleArrayPublisher.cs b/src/ntcore/Generated/DoubleArrayPublisher.cs index 5018588a..678f4574 100644 --- a/src/ntcore/Generated/DoubleArrayPublisher.cs +++ b/src/ntcore/Generated/DoubleArrayPublisher.cs @@ -4,8 +4,6 @@ // THIS FILE WAS AUTO-GENERATED BY ./ntcore/generate_topics.py. DO NOT MODIFY -using System; - namespace NetworkTables; /// diff --git a/src/ntcore/Generated/DoubleArrayTopic.cs b/src/ntcore/Generated/DoubleArrayTopic.cs index c86dcc29..9d85e450 100644 --- a/src/ntcore/Generated/DoubleArrayTopic.cs +++ b/src/ntcore/Generated/DoubleArrayTopic.cs @@ -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; diff --git a/src/ntcore/Generated/DoubleEntryImpl.cs b/src/ntcore/Generated/DoubleEntryImpl.cs index 33a0abf0..02fe79e4 100644 --- a/src/ntcore/Generated/DoubleEntryImpl.cs +++ b/src/ntcore/Generated/DoubleEntryImpl.cs @@ -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; diff --git a/src/ntcore/Generated/DoublePublisher.cs b/src/ntcore/Generated/DoublePublisher.cs index 2be17170..bb49b8e6 100644 --- a/src/ntcore/Generated/DoublePublisher.cs +++ b/src/ntcore/Generated/DoublePublisher.cs @@ -4,8 +4,6 @@ // THIS FILE WAS AUTO-GENERATED BY ./ntcore/generate_topics.py. DO NOT MODIFY -using System; - namespace NetworkTables; /// diff --git a/src/ntcore/Generated/DoubleTopic.cs b/src/ntcore/Generated/DoubleTopic.cs index d8669c6c..4821e848 100644 --- a/src/ntcore/Generated/DoubleTopic.cs +++ b/src/ntcore/Generated/DoubleTopic.cs @@ -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; diff --git a/src/ntcore/Generated/FloatArrayEntryImpl.cs b/src/ntcore/Generated/FloatArrayEntryImpl.cs index 6cd35865..45a24450 100644 --- a/src/ntcore/Generated/FloatArrayEntryImpl.cs +++ b/src/ntcore/Generated/FloatArrayEntryImpl.cs @@ -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; diff --git a/src/ntcore/Generated/FloatArrayPublisher.cs b/src/ntcore/Generated/FloatArrayPublisher.cs index c4116a9d..6560a4d9 100644 --- a/src/ntcore/Generated/FloatArrayPublisher.cs +++ b/src/ntcore/Generated/FloatArrayPublisher.cs @@ -4,8 +4,6 @@ // THIS FILE WAS AUTO-GENERATED BY ./ntcore/generate_topics.py. DO NOT MODIFY -using System; - namespace NetworkTables; /// diff --git a/src/ntcore/Generated/FloatArrayTopic.cs b/src/ntcore/Generated/FloatArrayTopic.cs index 9b707178..76560ea4 100644 --- a/src/ntcore/Generated/FloatArrayTopic.cs +++ b/src/ntcore/Generated/FloatArrayTopic.cs @@ -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; diff --git a/src/ntcore/Generated/FloatEntryImpl.cs b/src/ntcore/Generated/FloatEntryImpl.cs index de3116f9..ff8fc8fd 100644 --- a/src/ntcore/Generated/FloatEntryImpl.cs +++ b/src/ntcore/Generated/FloatEntryImpl.cs @@ -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; diff --git a/src/ntcore/Generated/FloatPublisher.cs b/src/ntcore/Generated/FloatPublisher.cs index 6d99ae25..93945c7e 100644 --- a/src/ntcore/Generated/FloatPublisher.cs +++ b/src/ntcore/Generated/FloatPublisher.cs @@ -4,8 +4,6 @@ // THIS FILE WAS AUTO-GENERATED BY ./ntcore/generate_topics.py. DO NOT MODIFY -using System; - namespace NetworkTables; /// diff --git a/src/ntcore/Generated/FloatTopic.cs b/src/ntcore/Generated/FloatTopic.cs index b513555e..9195a148 100644 --- a/src/ntcore/Generated/FloatTopic.cs +++ b/src/ntcore/Generated/FloatTopic.cs @@ -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; diff --git a/src/ntcore/Generated/GenericEntryImpl.cs b/src/ntcore/Generated/GenericEntryImpl.cs index 00dbf325..348e8261 100644 --- a/src/ntcore/Generated/GenericEntryImpl.cs +++ b/src/ntcore/Generated/GenericEntryImpl.cs @@ -4,7 +4,6 @@ // THIS FILE WAS AUTO-GENERATED BY ./ntcore/generate_topics.py. DO NOT MODIFY -using System; using NetworkTables.Natives; namespace NetworkTables; diff --git a/src/ntcore/Generated/IntegerArrayEntryImpl.cs b/src/ntcore/Generated/IntegerArrayEntryImpl.cs index 3e0818b6..22d4fbe9 100644 --- a/src/ntcore/Generated/IntegerArrayEntryImpl.cs +++ b/src/ntcore/Generated/IntegerArrayEntryImpl.cs @@ -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; diff --git a/src/ntcore/Generated/IntegerArrayPublisher.cs b/src/ntcore/Generated/IntegerArrayPublisher.cs index 735cf733..f13b8d76 100644 --- a/src/ntcore/Generated/IntegerArrayPublisher.cs +++ b/src/ntcore/Generated/IntegerArrayPublisher.cs @@ -4,8 +4,6 @@ // THIS FILE WAS AUTO-GENERATED BY ./ntcore/generate_topics.py. DO NOT MODIFY -using System; - namespace NetworkTables; /// diff --git a/src/ntcore/Generated/IntegerArrayTopic.cs b/src/ntcore/Generated/IntegerArrayTopic.cs index e3efe7ab..1ce48442 100644 --- a/src/ntcore/Generated/IntegerArrayTopic.cs +++ b/src/ntcore/Generated/IntegerArrayTopic.cs @@ -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; diff --git a/src/ntcore/Generated/IntegerEntryImpl.cs b/src/ntcore/Generated/IntegerEntryImpl.cs index 6b820beb..b53021f9 100644 --- a/src/ntcore/Generated/IntegerEntryImpl.cs +++ b/src/ntcore/Generated/IntegerEntryImpl.cs @@ -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; diff --git a/src/ntcore/Generated/IntegerPublisher.cs b/src/ntcore/Generated/IntegerPublisher.cs index cf07b2f4..9fd403d0 100644 --- a/src/ntcore/Generated/IntegerPublisher.cs +++ b/src/ntcore/Generated/IntegerPublisher.cs @@ -4,8 +4,6 @@ // THIS FILE WAS AUTO-GENERATED BY ./ntcore/generate_topics.py. DO NOT MODIFY -using System; - namespace NetworkTables; /// diff --git a/src/ntcore/Generated/IntegerTopic.cs b/src/ntcore/Generated/IntegerTopic.cs index 976ed897..3ac038cb 100644 --- a/src/ntcore/Generated/IntegerTopic.cs +++ b/src/ntcore/Generated/IntegerTopic.cs @@ -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; diff --git a/src/ntcore/Generated/NetworkTableValue.cs b/src/ntcore/Generated/NetworkTableValue.cs index 2f6e8e81..bbee6710 100644 --- a/src/ntcore/Generated/NetworkTableValue.cs +++ b/src/ntcore/Generated/NetworkTableValue.cs @@ -4,8 +4,6 @@ // THIS FILE WAS AUTO-GENERATED BY ./ntcore/generate_topics.py. DO NOT MODIFY -using System; - namespace NetworkTables; public readonly partial struct NetworkTableValue diff --git a/src/ntcore/Generated/RawEntryImpl.cs b/src/ntcore/Generated/RawEntryImpl.cs index 7bf9904a..3adbc9a2 100644 --- a/src/ntcore/Generated/RawEntryImpl.cs +++ b/src/ntcore/Generated/RawEntryImpl.cs @@ -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; diff --git a/src/ntcore/Generated/RawPublisher.cs b/src/ntcore/Generated/RawPublisher.cs index 82f5b922..c6bdd83c 100644 --- a/src/ntcore/Generated/RawPublisher.cs +++ b/src/ntcore/Generated/RawPublisher.cs @@ -4,8 +4,6 @@ // THIS FILE WAS AUTO-GENERATED BY ./ntcore/generate_topics.py. DO NOT MODIFY -using System; - namespace NetworkTables; /// diff --git a/src/ntcore/Generated/RawTopic.cs b/src/ntcore/Generated/RawTopic.cs index ee4227a7..d579232e 100644 --- a/src/ntcore/Generated/RawTopic.cs +++ b/src/ntcore/Generated/RawTopic.cs @@ -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; diff --git a/src/ntcore/Generated/RefNetworkTableValue.cs b/src/ntcore/Generated/RefNetworkTableValue.cs index 7b8b160b..dd242e08 100644 --- a/src/ntcore/Generated/RefNetworkTableValue.cs +++ b/src/ntcore/Generated/RefNetworkTableValue.cs @@ -4,7 +4,6 @@ // THIS FILE WAS AUTO-GENERATED BY ./ntcore/generate_topics.py. DO NOT MODIFY -using System; using System.Runtime.InteropServices; using NetworkTables.Natives; diff --git a/src/ntcore/GenericEntryImpl.cs b/src/ntcore/GenericEntryImpl.cs index a14a6569..82c5cf57 100644 --- a/src/ntcore/GenericEntryImpl.cs +++ b/src/ntcore/GenericEntryImpl.cs @@ -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; diff --git a/src/ntcore/INtSendableBuilder.cs b/src/ntcore/INtSendableBuilder.cs index c0ce98fc..8327f836 100644 --- a/src/ntcore/INtSendableBuilder.cs +++ b/src/ntcore/INtSendableBuilder.cs @@ -1,4 +1,3 @@ -using System; using WPIUtil.Sendable; namespace NetworkTables; diff --git a/src/ntcore/LogMessage.cs b/src/ntcore/LogMessage.cs index 007bf400..e2dced15 100644 --- a/src/ntcore/LogMessage.cs +++ b/src/ntcore/LogMessage.cs @@ -1,6 +1,5 @@ using System.Runtime.InteropServices; using System.Runtime.InteropServices.Marshalling; -using WPIUtil; using WPIUtil.Marshal; namespace NetworkTables; diff --git a/src/ntcore/MultiSubscriber.cs b/src/ntcore/MultiSubscriber.cs index 9a1fc3fc..00bb195e 100644 --- a/src/ntcore/MultiSubscriber.cs +++ b/src/ntcore/MultiSubscriber.cs @@ -1,4 +1,3 @@ -using System; using NetworkTables.Handles; using NetworkTables.Natives; diff --git a/src/ntcore/Natives/NetworkTableValueMarshaller.cs b/src/ntcore/Natives/NetworkTableValueMarshaller.cs index 5d2c8b8b..26c957e5 100644 --- a/src/ntcore/Natives/NetworkTableValueMarshaller.cs +++ b/src/ntcore/Natives/NetworkTableValueMarshaller.cs @@ -1,10 +1,5 @@ -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.InteropServices.Marshalling; -using WPIUtil; using WPIUtil.Marshal; namespace NetworkTables.Natives; diff --git a/src/ntcore/Natives/NtCore.ClientServer.cs b/src/ntcore/Natives/NtCore.ClientServer.cs index 87335e1b..f3b19ff0 100644 --- a/src/ntcore/Natives/NtCore.ClientServer.cs +++ b/src/ntcore/Natives/NtCore.ClientServer.cs @@ -1,4 +1,3 @@ -using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.InteropServices.Marshalling; diff --git a/src/ntcore/Natives/NtCore.Listener.cs b/src/ntcore/Natives/NtCore.Listener.cs index 529baf3d..b46fd494 100644 --- a/src/ntcore/Natives/NtCore.Listener.cs +++ b/src/ntcore/Natives/NtCore.Listener.cs @@ -1,4 +1,3 @@ -using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.InteropServices.Marshalling; diff --git a/src/ntcore/Natives/NtCore.Schema.cs b/src/ntcore/Natives/NtCore.Schema.cs index 73b9f716..99f74c7c 100644 --- a/src/ntcore/Natives/NtCore.Schema.cs +++ b/src/ntcore/Natives/NtCore.Schema.cs @@ -1,4 +1,3 @@ -using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using NetworkTables.Handles; diff --git a/src/ntcore/Natives/NtCore.cs b/src/ntcore/Natives/NtCore.cs index a99dc252..70d5c755 100644 --- a/src/ntcore/Natives/NtCore.cs +++ b/src/ntcore/Natives/NtCore.cs @@ -1,8 +1,6 @@ -using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.InteropServices.Marshalling; -using System.Text; using NetworkTables.Handles; using WPIUtil; using WPIUtil.Handles; diff --git a/src/ntcore/Natives/RefNetworkTableValueMarshaller.cs b/src/ntcore/Natives/RefNetworkTableValueMarshaller.cs index 2accb042..a0dc0477 100644 --- a/src/ntcore/Natives/RefNetworkTableValueMarshaller.cs +++ b/src/ntcore/Natives/RefNetworkTableValueMarshaller.cs @@ -1,4 +1,3 @@ -using System; using System.Diagnostics; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/src/ntcore/NetworkMode.cs b/src/ntcore/NetworkMode.cs index 74ae34ec..3ec39fb4 100644 --- a/src/ntcore/NetworkMode.cs +++ b/src/ntcore/NetworkMode.cs @@ -1,5 +1,3 @@ -using System; - namespace NetworkTables; [Flags] diff --git a/src/ntcore/NetworkTable.cs b/src/ntcore/NetworkTable.cs index d1d1da02..022cc970 100644 --- a/src/ntcore/NetworkTable.cs +++ b/src/ntcore/NetworkTable.cs @@ -1,10 +1,6 @@ -using System; using System.Collections.Concurrent; -using System.Collections.Generic; -using System.IO; using NetworkTables.Handles; using NetworkTables.Natives; -using WPIUtil.Concurrent; namespace NetworkTables; diff --git a/src/ntcore/NetworkTableEvent.cs b/src/ntcore/NetworkTableEvent.cs index 787e8506..767a20c8 100644 --- a/src/ntcore/NetworkTableEvent.cs +++ b/src/ntcore/NetworkTableEvent.cs @@ -1,4 +1,3 @@ -using System; using System.Runtime.InteropServices; using System.Runtime.InteropServices.Marshalling; using NetworkTables.Handles; diff --git a/src/ntcore/NetworkTableInstance.cs b/src/ntcore/NetworkTableInstance.cs index 0ddb9466..4f2da7aa 100644 --- a/src/ntcore/NetworkTableInstance.cs +++ b/src/ntcore/NetworkTableInstance.cs @@ -4,14 +4,10 @@ // THIS FILE WAS AUTO-GENERATED BY ./ntcore/generate_topics.py. DO NOT MODIFY -using System; using System.Collections.Concurrent; -using System.Collections.Generic; using System.Numerics; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Text; -using System.Threading; using CommunityToolkit.Diagnostics; using NetworkTables.Handles; using NetworkTables.Natives; diff --git a/src/ntcore/NetworkTableListenerPoller.cs b/src/ntcore/NetworkTableListenerPoller.cs index 8504db7e..7672b7b8 100644 --- a/src/ntcore/NetworkTableListenerPoller.cs +++ b/src/ntcore/NetworkTableListenerPoller.cs @@ -1,4 +1,3 @@ -using System; using NetworkTables.Handles; using NetworkTables.Natives; diff --git a/src/ntcore/NetworkTableType.cs b/src/ntcore/NetworkTableType.cs index 0c344e0f..5295509b 100644 --- a/src/ntcore/NetworkTableType.cs +++ b/src/ntcore/NetworkTableType.cs @@ -1,5 +1,3 @@ -using System; - namespace NetworkTables; [Flags] diff --git a/src/ntcore/NetworkTableValue.cs b/src/ntcore/NetworkTableValue.cs index a5fff48a..95138e1e 100644 --- a/src/ntcore/NetworkTableValue.cs +++ b/src/ntcore/NetworkTableValue.cs @@ -1,7 +1,5 @@ -using System; using System.Runtime.InteropServices; using System.Runtime.InteropServices.Marshalling; -using System.Text; using NetworkTables.Natives; using WPIUtil.Marshal; diff --git a/src/ntcore/ProtobufEntryImpl.cs b/src/ntcore/ProtobufEntryImpl.cs index b9fee201..cef76efd 100644 --- a/src/ntcore/ProtobufEntryImpl.cs +++ b/src/ntcore/ProtobufEntryImpl.cs @@ -1,4 +1,3 @@ -using System; using NetworkTables.Handles; using NetworkTables.Natives; using WPIUtil.Serialization.Protobuf; diff --git a/src/ntcore/ProtobufTopic.cs b/src/ntcore/ProtobufTopic.cs index c2b91f93..0c7ee8bc 100644 --- a/src/ntcore/ProtobufTopic.cs +++ b/src/ntcore/ProtobufTopic.cs @@ -1,5 +1,3 @@ -using System; -using System.Collections.Generic; using System.Numerics; using NetworkTables.Handles; using NetworkTables.Natives; diff --git a/src/ntcore/PubSub.cs b/src/ntcore/PubSub.cs index 03a1bbd4..81f2223d 100644 --- a/src/ntcore/PubSub.cs +++ b/src/ntcore/PubSub.cs @@ -1,4 +1,3 @@ -using System; using NetworkTables.Handles; namespace NetworkTables; diff --git a/src/ntcore/RefNetworkTableValue.cs b/src/ntcore/RefNetworkTableValue.cs index 3e435795..9f652535 100644 --- a/src/ntcore/RefNetworkTableValue.cs +++ b/src/ntcore/RefNetworkTableValue.cs @@ -1,4 +1,3 @@ -using System; using System.Runtime.InteropServices; using System.Runtime.InteropServices.Marshalling; using NetworkTables.Natives; diff --git a/src/ntcore/Strings/StringArrayEntryImpl.cs b/src/ntcore/Strings/StringArrayEntryImpl.cs index 696b722b..982b4802 100644 --- a/src/ntcore/Strings/StringArrayEntryImpl.cs +++ b/src/ntcore/Strings/StringArrayEntryImpl.cs @@ -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; diff --git a/src/ntcore/Strings/StringArrayPublisher.cs b/src/ntcore/Strings/StringArrayPublisher.cs index deedddac..d393a1df 100644 --- a/src/ntcore/Strings/StringArrayPublisher.cs +++ b/src/ntcore/Strings/StringArrayPublisher.cs @@ -4,8 +4,6 @@ // THIS FILE WAS AUTO-GENERATED BY ./ntcore/generate_topics.py. DO NOT MODIFY -using System; - namespace NetworkTables; /// diff --git a/src/ntcore/Strings/StringArrayTopic.cs b/src/ntcore/Strings/StringArrayTopic.cs index cbd5284e..3a18b06e 100644 --- a/src/ntcore/Strings/StringArrayTopic.cs +++ b/src/ntcore/Strings/StringArrayTopic.cs @@ -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; diff --git a/src/ntcore/Strings/StringEntryImpl.cs b/src/ntcore/Strings/StringEntryImpl.cs index 53964080..8d270cbb 100644 --- a/src/ntcore/Strings/StringEntryImpl.cs +++ b/src/ntcore/Strings/StringEntryImpl.cs @@ -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; diff --git a/src/ntcore/Strings/StringPublisher.cs b/src/ntcore/Strings/StringPublisher.cs index 805ad665..dcc9f247 100644 --- a/src/ntcore/Strings/StringPublisher.cs +++ b/src/ntcore/Strings/StringPublisher.cs @@ -4,8 +4,6 @@ // THIS FILE WAS AUTO-GENERATED BY ./ntcore/generate_topics.py. DO NOT MODIFY -using System; - namespace NetworkTables; /// diff --git a/src/ntcore/Strings/StringTopic.cs b/src/ntcore/Strings/StringTopic.cs index 0413efb5..25754c61 100644 --- a/src/ntcore/Strings/StringTopic.cs +++ b/src/ntcore/Strings/StringTopic.cs @@ -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; diff --git a/src/ntcore/StructArrayEntryImpl.cs b/src/ntcore/StructArrayEntryImpl.cs index 7f9bf1c8..96d251d3 100644 --- a/src/ntcore/StructArrayEntryImpl.cs +++ b/src/ntcore/StructArrayEntryImpl.cs @@ -1,4 +1,3 @@ -using System; using NetworkTables.Handles; using NetworkTables.Natives; using WPIUtil.Serialization.Struct; diff --git a/src/ntcore/StructArrayPublisher.cs b/src/ntcore/StructArrayPublisher.cs index 790caee3..91def075 100644 --- a/src/ntcore/StructArrayPublisher.cs +++ b/src/ntcore/StructArrayPublisher.cs @@ -1,4 +1,3 @@ -using System; using WPIUtil.Serialization.Struct; namespace NetworkTables; diff --git a/src/ntcore/StructArraySubscriber.cs b/src/ntcore/StructArraySubscriber.cs index ea321ea8..140e3475 100644 --- a/src/ntcore/StructArraySubscriber.cs +++ b/src/ntcore/StructArraySubscriber.cs @@ -1,4 +1,3 @@ -using System; using WPIUtil.Serialization.Struct; namespace NetworkTables; diff --git a/src/ntcore/StructArrayTopic.cs b/src/ntcore/StructArrayTopic.cs index af73735b..e3f0ed51 100644 --- a/src/ntcore/StructArrayTopic.cs +++ b/src/ntcore/StructArrayTopic.cs @@ -1,5 +1,3 @@ -using System; -using System.Collections.Generic; using System.Numerics; using NetworkTables.Handles; using NetworkTables.Natives; diff --git a/src/ntcore/StructEntryImpl.cs b/src/ntcore/StructEntryImpl.cs index c1158d34..8e4f8f92 100644 --- a/src/ntcore/StructEntryImpl.cs +++ b/src/ntcore/StructEntryImpl.cs @@ -1,4 +1,3 @@ -using System; using NetworkTables.Handles; using NetworkTables.Natives; using WPIUtil.Serialization.Struct; diff --git a/src/ntcore/StructTopic.cs b/src/ntcore/StructTopic.cs index 0bf56e51..be075bce 100644 --- a/src/ntcore/StructTopic.cs +++ b/src/ntcore/StructTopic.cs @@ -1,5 +1,3 @@ -using System; -using System.Collections.Generic; using System.Numerics; using NetworkTables.Handles; using NetworkTables.Natives; diff --git a/src/ntcore/TimestampedObject.cs b/src/ntcore/TimestampedObject.cs index c75ee505..4c52d2ad 100644 --- a/src/ntcore/TimestampedObject.cs +++ b/src/ntcore/TimestampedObject.cs @@ -1,5 +1,3 @@ -using System.Diagnostics.CodeAnalysis; - namespace NetworkTables; public record struct TimestampedObject(long Timestamp, long ServerTime, T Value); diff --git a/src/ntcore/Topic.cs b/src/ntcore/Topic.cs index 56b2749e..ac425963 100644 --- a/src/ntcore/Topic.cs +++ b/src/ntcore/Topic.cs @@ -1,5 +1,3 @@ -using System; -using System.Collections.Generic; using System.Numerics; using NetworkTables.Handles; using NetworkTables.Natives; diff --git a/src/ntcore/TopicInfo.cs b/src/ntcore/TopicInfo.cs index 4bac298d..e7e8386c 100644 --- a/src/ntcore/TopicInfo.cs +++ b/src/ntcore/TopicInfo.cs @@ -1,4 +1,3 @@ -using System; using System.Runtime.InteropServices; using System.Runtime.InteropServices.Marshalling; using NetworkTables.Handles; diff --git a/src/thirdparty/Stereologue/Attributes.cs b/src/thirdparty/Stereologue/Attributes.cs index 7efd7b22..6fe6e8f1 100644 --- a/src/thirdparty/Stereologue/Attributes.cs +++ b/src/thirdparty/Stereologue/Attributes.cs @@ -1,5 +1,3 @@ -using System; - namespace Stereologue; [AttributeUsage(AttributeTargets.Property | AttributeTargets.Method | AttributeTargets.Field, Inherited = false, AllowMultiple = false)] diff --git a/src/thirdparty/Stereologue/LogType.cs b/src/thirdparty/Stereologue/LogType.cs index a8bde70e..fbac9a9a 100644 --- a/src/thirdparty/Stereologue/LogType.cs +++ b/src/thirdparty/Stereologue/LogType.cs @@ -1,5 +1,3 @@ -using System; - namespace Stereologue; [Flags] diff --git a/src/thirdparty/Stereologue/Stereologuer.cs b/src/thirdparty/Stereologue/Stereologuer.cs index 9faaba10..cd3a8b09 100644 --- a/src/thirdparty/Stereologue/Stereologuer.cs +++ b/src/thirdparty/Stereologue/Stereologuer.cs @@ -1,5 +1,3 @@ -using System; -using System.Collections.Generic; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using NetworkTables; diff --git a/src/wpilibsharp/RobotRunner.cs b/src/wpilibsharp/RobotRunner.cs index abd16a65..4ec5b27d 100644 --- a/src/wpilibsharp/RobotRunner.cs +++ b/src/wpilibsharp/RobotRunner.cs @@ -1,4 +1,3 @@ -using System; using WPIHal.Natives; namespace WPILib; diff --git a/src/wpimath/Geometry/Pose2d.cs b/src/wpimath/Geometry/Pose2d.cs index 9bd87a7a..3cbe9b5c 100644 --- a/src/wpimath/Geometry/Pose2d.cs +++ b/src/wpimath/Geometry/Pose2d.cs @@ -1,5 +1,3 @@ -using System; -using System.ComponentModel; using System.Numerics; using System.Text.Json.Serialization; using Google.Protobuf.Reflection; diff --git a/src/wpimath/Geometry/Quaternion.cs b/src/wpimath/Geometry/Quaternion.cs index d2d552d3..6adef4ca 100644 --- a/src/wpimath/Geometry/Quaternion.cs +++ b/src/wpimath/Geometry/Quaternion.cs @@ -1,4 +1,3 @@ -using System; using System.Numerics; using System.Text.Json.Serialization; using Google.Protobuf.Reflection; diff --git a/src/wpimath/Geometry/Rotation2d.cs b/src/wpimath/Geometry/Rotation2d.cs index 133fd81c..a6fe0a95 100644 --- a/src/wpimath/Geometry/Rotation2d.cs +++ b/src/wpimath/Geometry/Rotation2d.cs @@ -1,4 +1,3 @@ -using System; using System.Numerics; using System.Text.Json.Serialization; using Google.Protobuf.Reflection; diff --git a/src/wpimath/Geometry/Rotation3d.cs b/src/wpimath/Geometry/Rotation3d.cs index b45743f7..70300401 100644 --- a/src/wpimath/Geometry/Rotation3d.cs +++ b/src/wpimath/Geometry/Rotation3d.cs @@ -1,4 +1,3 @@ -using System; using System.Numerics; using System.Text.Json.Serialization; using Google.Protobuf.Reflection; diff --git a/src/wpimath/Geometry/Transform2d.cs b/src/wpimath/Geometry/Transform2d.cs index 2b002652..45d3b9f9 100644 --- a/src/wpimath/Geometry/Transform2d.cs +++ b/src/wpimath/Geometry/Transform2d.cs @@ -1,10 +1,7 @@ -using System; using System.Numerics; using System.Text.Json.Serialization; using Google.Protobuf.Reflection; using UnitsNet; -using UnitsNet.NumberExtensions.NumberToAngle; -using UnitsNet.NumberExtensions.NumberToLength; using WPIMath.Proto; using WPIUtil.Serialization.Protobuf; using WPIUtil.Serialization.Struct; diff --git a/src/wpimath/Geometry/Translation2d.cs b/src/wpimath/Geometry/Translation2d.cs index b9d5243d..6a434e80 100644 --- a/src/wpimath/Geometry/Translation2d.cs +++ b/src/wpimath/Geometry/Translation2d.cs @@ -1,4 +1,3 @@ -using System; using System.Numerics; using System.Text.Json.Serialization; using Google.Protobuf.Reflection; diff --git a/src/wpimath/Geometry/Twist2d.cs b/src/wpimath/Geometry/Twist2d.cs index eb2d0f92..c191dcdc 100644 --- a/src/wpimath/Geometry/Twist2d.cs +++ b/src/wpimath/Geometry/Twist2d.cs @@ -1,4 +1,3 @@ -using System; using System.Numerics; using System.Text.Json.Serialization; using Google.Protobuf.Reflection; diff --git a/src/wpimath/Geometry/Twist3d.cs b/src/wpimath/Geometry/Twist3d.cs index 443d1ef8..b095c1e1 100644 --- a/src/wpimath/Geometry/Twist3d.cs +++ b/src/wpimath/Geometry/Twist3d.cs @@ -1,4 +1,3 @@ -using System; using System.Numerics; using System.Text.Json.Serialization; using Google.Protobuf.Reflection; diff --git a/src/wpimath/Interpolation/InterpolatingMap.cs b/src/wpimath/Interpolation/InterpolatingMap.cs index d56d9a24..b787508f 100644 --- a/src/wpimath/Interpolation/InterpolatingMap.cs +++ b/src/wpimath/Interpolation/InterpolatingMap.cs @@ -1,5 +1,3 @@ -using System; -using System.Collections.Generic; using System.Numerics; namespace WPIMath.Interpolation; diff --git a/src/wpinet/Natives/MulticastServiceAnnouncer.cs b/src/wpinet/Natives/MulticastServiceAnnouncer.cs index 255831c2..b3870347 100644 --- a/src/wpinet/Natives/MulticastServiceAnnouncer.cs +++ b/src/wpinet/Natives/MulticastServiceAnnouncer.cs @@ -1,5 +1,4 @@ global using MulticastServiceAnnouncerHandle = uint; -using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/src/wpinet/Natives/ServiceDataMarshaller.cs b/src/wpinet/Natives/ServiceDataMarshaller.cs index e623d8d7..15e64e72 100644 --- a/src/wpinet/Natives/ServiceDataMarshaller.cs +++ b/src/wpinet/Natives/ServiceDataMarshaller.cs @@ -1,4 +1,3 @@ -using System; using System.Runtime.InteropServices.Marshalling; namespace WPINet.Natives; diff --git a/src/wpiutil/AutomateStatusCheckAttribute.cs b/src/wpiutil/AutomateStatusCheckAttribute.cs index 70827ea1..7eee3837 100644 --- a/src/wpiutil/AutomateStatusCheckAttribute.cs +++ b/src/wpiutil/AutomateStatusCheckAttribute.cs @@ -1,5 +1,3 @@ -using System; - namespace WPIUtil; [AttributeUsage(AttributeTargets.Method)] diff --git a/src/wpiutil/CircularBuffer.cs b/src/wpiutil/CircularBuffer.cs index fcfa4fa6..584f2c2d 100644 --- a/src/wpiutil/CircularBuffer.cs +++ b/src/wpiutil/CircularBuffer.cs @@ -1,5 +1,3 @@ -using System; - namespace WPIUtil; public class CircularBuffer(int size) diff --git a/src/wpiutil/Concurrent/Event.cs b/src/wpiutil/Concurrent/Event.cs index 7d535f1b..486a8e72 100644 --- a/src/wpiutil/Concurrent/Event.cs +++ b/src/wpiutil/Concurrent/Event.cs @@ -1,4 +1,3 @@ -using System; using WPIUtil.Natives; namespace WPIUtil.Concurrent; diff --git a/src/wpiutil/Concurrent/Synchronization.cs b/src/wpiutil/Concurrent/Synchronization.cs index 587cee82..08b946f5 100644 --- a/src/wpiutil/Concurrent/Synchronization.cs +++ b/src/wpiutil/Concurrent/Synchronization.cs @@ -1,4 +1,3 @@ -using System; using CommunityToolkit.Diagnostics; using WPIUtil.Natives; diff --git a/src/wpiutil/EventVector.cs b/src/wpiutil/EventVector.cs index 19ccf7ea..9c63e81e 100644 --- a/src/wpiutil/EventVector.cs +++ b/src/wpiutil/EventVector.cs @@ -1,4 +1,3 @@ -using System.Collections.Generic; using WPIUtil.Natives; namespace WPIUtil; diff --git a/src/wpiutil/Logging/BooleanArrayLogEntry.cs b/src/wpiutil/Logging/BooleanArrayLogEntry.cs index ee90f29a..700661e4 100644 --- a/src/wpiutil/Logging/BooleanArrayLogEntry.cs +++ b/src/wpiutil/Logging/BooleanArrayLogEntry.cs @@ -2,8 +2,6 @@ // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. -using System; - namespace WPIUtil.Logging; /// diff --git a/src/wpiutil/Logging/BooleanLogEntry.cs b/src/wpiutil/Logging/BooleanLogEntry.cs index 6b60eeac..1889aeda 100644 --- a/src/wpiutil/Logging/BooleanLogEntry.cs +++ b/src/wpiutil/Logging/BooleanLogEntry.cs @@ -2,8 +2,6 @@ // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. -using System; - namespace WPIUtil.Logging; /// diff --git a/src/wpiutil/Logging/DataLog.cs b/src/wpiutil/Logging/DataLog.cs index af530bc9..8fd55ed5 100644 --- a/src/wpiutil/Logging/DataLog.cs +++ b/src/wpiutil/Logging/DataLog.cs @@ -1,6 +1,4 @@ -using System; using System.Collections.Concurrent; -using System.Collections.Generic; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using WPIUtil.Handles; diff --git a/src/wpiutil/Logging/DoubleArrayLogEntry.cs b/src/wpiutil/Logging/DoubleArrayLogEntry.cs index 44d3a4d4..713f01b8 100644 --- a/src/wpiutil/Logging/DoubleArrayLogEntry.cs +++ b/src/wpiutil/Logging/DoubleArrayLogEntry.cs @@ -2,8 +2,6 @@ // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. -using System; - namespace WPIUtil.Logging; /// diff --git a/src/wpiutil/Logging/DoubleLogEntry.cs b/src/wpiutil/Logging/DoubleLogEntry.cs index 07bbf3cc..1a3fb803 100644 --- a/src/wpiutil/Logging/DoubleLogEntry.cs +++ b/src/wpiutil/Logging/DoubleLogEntry.cs @@ -2,8 +2,6 @@ // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. -using System; - namespace WPIUtil.Logging; /// diff --git a/src/wpiutil/Logging/FloatArrayLogEntry.cs b/src/wpiutil/Logging/FloatArrayLogEntry.cs index fbdfd94d..9d9e4cec 100644 --- a/src/wpiutil/Logging/FloatArrayLogEntry.cs +++ b/src/wpiutil/Logging/FloatArrayLogEntry.cs @@ -2,8 +2,6 @@ // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. -using System; - namespace WPIUtil.Logging; /// diff --git a/src/wpiutil/Logging/FloatLogEntry.cs b/src/wpiutil/Logging/FloatLogEntry.cs index 5094a0f8..abb6ad5f 100644 --- a/src/wpiutil/Logging/FloatLogEntry.cs +++ b/src/wpiutil/Logging/FloatLogEntry.cs @@ -2,8 +2,6 @@ // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. -using System; - namespace WPIUtil.Logging; /// diff --git a/src/wpiutil/Logging/IntegerArrayLogEntry.cs b/src/wpiutil/Logging/IntegerArrayLogEntry.cs index bd777d7d..ae5db956 100644 --- a/src/wpiutil/Logging/IntegerArrayLogEntry.cs +++ b/src/wpiutil/Logging/IntegerArrayLogEntry.cs @@ -2,8 +2,6 @@ // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. -using System; - namespace WPIUtil.Logging; /// diff --git a/src/wpiutil/Logging/IntegerLogEntry.cs b/src/wpiutil/Logging/IntegerLogEntry.cs index e52085ba..65abb439 100644 --- a/src/wpiutil/Logging/IntegerLogEntry.cs +++ b/src/wpiutil/Logging/IntegerLogEntry.cs @@ -2,8 +2,6 @@ // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. -using System; - namespace WPIUtil.Logging; /// diff --git a/src/wpiutil/Logging/RawLogEntry.cs b/src/wpiutil/Logging/RawLogEntry.cs index aa94a70c..74823548 100644 --- a/src/wpiutil/Logging/RawLogEntry.cs +++ b/src/wpiutil/Logging/RawLogEntry.cs @@ -2,8 +2,6 @@ // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. -using System; - namespace WPIUtil.Logging; /// diff --git a/src/wpiutil/Logging/StringArrayLogEntry.cs b/src/wpiutil/Logging/StringArrayLogEntry.cs index 1df1f95a..4934c405 100644 --- a/src/wpiutil/Logging/StringArrayLogEntry.cs +++ b/src/wpiutil/Logging/StringArrayLogEntry.cs @@ -2,8 +2,6 @@ // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. -using System; - namespace WPIUtil.Logging; /// diff --git a/src/wpiutil/Logging/StringLogEntry.cs b/src/wpiutil/Logging/StringLogEntry.cs index 2657b875..92af7a6d 100644 --- a/src/wpiutil/Logging/StringLogEntry.cs +++ b/src/wpiutil/Logging/StringLogEntry.cs @@ -2,8 +2,6 @@ // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. -using System; - namespace WPIUtil.Logging; /// diff --git a/src/wpiutil/Logging/StructArrayLogEntry.cs b/src/wpiutil/Logging/StructArrayLogEntry.cs index 6da80c9c..f38a67f1 100644 --- a/src/wpiutil/Logging/StructArrayLogEntry.cs +++ b/src/wpiutil/Logging/StructArrayLogEntry.cs @@ -1,4 +1,3 @@ -using System; using WPIUtil.Serialization.Struct; namespace WPIUtil.Logging; diff --git a/src/wpiutil/Marshal/ManagedFreeArrayMarshaller.cs b/src/wpiutil/Marshal/ManagedFreeArrayMarshaller.cs index 34a9fa95..6743de59 100644 --- a/src/wpiutil/Marshal/ManagedFreeArrayMarshaller.cs +++ b/src/wpiutil/Marshal/ManagedFreeArrayMarshaller.cs @@ -1,4 +1,3 @@ -using System; using System.Runtime.InteropServices.Marshalling; namespace WPIUtil.Marshal; diff --git a/src/wpiutil/Marshal/NoFreeArrayMarshaller.cs b/src/wpiutil/Marshal/NoFreeArrayMarshaller.cs index da236b92..179e0026 100644 --- a/src/wpiutil/Marshal/NoFreeArrayMarshaller.cs +++ b/src/wpiutil/Marshal/NoFreeArrayMarshaller.cs @@ -1,4 +1,3 @@ -using System; using System.Runtime.InteropServices.Marshalling; namespace WPIUtil.Marshal; diff --git a/src/wpiutil/Marshal/UnmanagedFreeArrayMarshaller.cs b/src/wpiutil/Marshal/UnmanagedFreeArrayMarshaller.cs index 81393821..d65ed2c5 100644 --- a/src/wpiutil/Marshal/UnmanagedFreeArrayMarshaller.cs +++ b/src/wpiutil/Marshal/UnmanagedFreeArrayMarshaller.cs @@ -1,4 +1,3 @@ -using System; using System.Runtime.InteropServices.Marshalling; namespace WPIUtil.Marshal; diff --git a/src/wpiutil/Marshal/WPIStringMarshaller.cs b/src/wpiutil/Marshal/WPIStringMarshaller.cs index 6c8302ca..00b78404 100644 --- a/src/wpiutil/Marshal/WPIStringMarshaller.cs +++ b/src/wpiutil/Marshal/WPIStringMarshaller.cs @@ -1,4 +1,3 @@ -using System; using System.Diagnostics; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/src/wpiutil/Natives/DataLogNative.cs b/src/wpiutil/Natives/DataLogNative.cs index d70fe3ca..adaf0e30 100644 --- a/src/wpiutil/Natives/DataLogNative.cs +++ b/src/wpiutil/Natives/DataLogNative.cs @@ -1,4 +1,3 @@ -using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.InteropServices.Marshalling; diff --git a/src/wpiutil/Natives/RawFrameNative.cs b/src/wpiutil/Natives/RawFrameNative.cs index fc9f1ce7..e7f08ab2 100644 --- a/src/wpiutil/Natives/RawFrameNative.cs +++ b/src/wpiutil/Natives/RawFrameNative.cs @@ -1,4 +1,3 @@ -using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.InteropServices.Marshalling; diff --git a/src/wpiutil/RawFrameReader.cs b/src/wpiutil/RawFrameReader.cs index 5141093e..7ce22f73 100644 --- a/src/wpiutil/RawFrameReader.cs +++ b/src/wpiutil/RawFrameReader.cs @@ -1,4 +1,3 @@ -using System; using System.Runtime.InteropServices.Marshalling; using WPIUtil.Natives; diff --git a/src/wpiutil/RawFrameWriter.cs b/src/wpiutil/RawFrameWriter.cs index f7cbb093..147d7dee 100644 --- a/src/wpiutil/RawFrameWriter.cs +++ b/src/wpiutil/RawFrameWriter.cs @@ -1,4 +1,3 @@ -using System; using System.Runtime.InteropServices; using System.Runtime.InteropServices.Marshalling; using WPIUtil.Natives; diff --git a/src/wpiutil/Sendable/ISendableBuilder.cs b/src/wpiutil/Sendable/ISendableBuilder.cs index da557e68..9448fca5 100644 --- a/src/wpiutil/Sendable/ISendableBuilder.cs +++ b/src/wpiutil/Sendable/ISendableBuilder.cs @@ -1,5 +1,3 @@ -using System; - namespace WPIUtil.Sendable; public interface ISendableBuilder : IDisposable diff --git a/src/wpiutil/Sendable/SendableRegistery.cs b/src/wpiutil/Sendable/SendableRegistery.cs index abae3d2c..7b367ced 100644 --- a/src/wpiutil/Sendable/SendableRegistery.cs +++ b/src/wpiutil/Sendable/SendableRegistery.cs @@ -1,6 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Linq; using System.Runtime.CompilerServices; namespace WPIUtil.Sendable; diff --git a/src/wpiutil/Serialization/Protobuf/IProtobuf.cs b/src/wpiutil/Serialization/Protobuf/IProtobuf.cs index 1a959ab5..372334ed 100644 --- a/src/wpiutil/Serialization/Protobuf/IProtobuf.cs +++ b/src/wpiutil/Serialization/Protobuf/IProtobuf.cs @@ -1,4 +1,3 @@ -using System; using Google.Protobuf; using Google.Protobuf.Reflection; diff --git a/src/wpiutil/Serialization/Protobuf/ProtobufBuffer.cs b/src/wpiutil/Serialization/Protobuf/ProtobufBuffer.cs index 3bbe73b4..3fed477a 100644 --- a/src/wpiutil/Serialization/Protobuf/ProtobufBuffer.cs +++ b/src/wpiutil/Serialization/Protobuf/ProtobufBuffer.cs @@ -1,4 +1,3 @@ -using System; using Google.Protobuf; namespace WPIUtil.Serialization.Protobuf; diff --git a/src/wpiutil/Serialization/Struct/BadSchemaException.cs b/src/wpiutil/Serialization/Struct/BadSchemaException.cs index 2d3634c7..e8913048 100644 --- a/src/wpiutil/Serialization/Struct/BadSchemaException.cs +++ b/src/wpiutil/Serialization/Struct/BadSchemaException.cs @@ -1,5 +1,3 @@ -using System; - namespace WPIUtil.Serialization.Struct; public class BadSchemaException : Exception diff --git a/src/wpiutil/Serialization/Struct/DynamicStruct.cs b/src/wpiutil/Serialization/Struct/DynamicStruct.cs index 108df6b1..a61d3472 100644 --- a/src/wpiutil/Serialization/Struct/DynamicStruct.cs +++ b/src/wpiutil/Serialization/Struct/DynamicStruct.cs @@ -1,4 +1,3 @@ -using System; using System.Buffers; using System.Buffers.Binary; using System.Text; diff --git a/src/wpiutil/Serialization/Struct/Parsing/Lexer.cs b/src/wpiutil/Serialization/Struct/Parsing/Lexer.cs index 77f854f9..a0c15070 100644 --- a/src/wpiutil/Serialization/Struct/Parsing/Lexer.cs +++ b/src/wpiutil/Serialization/Struct/Parsing/Lexer.cs @@ -1,5 +1,3 @@ -using System; -using System.Buffers; using System.Text; namespace WPIUtil.Serialization.Struct.Parsing; diff --git a/src/wpiutil/Serialization/Struct/Parsing/ParseException.cs b/src/wpiutil/Serialization/Struct/Parsing/ParseException.cs index acab59bf..a4d16738 100644 --- a/src/wpiutil/Serialization/Struct/Parsing/ParseException.cs +++ b/src/wpiutil/Serialization/Struct/Parsing/ParseException.cs @@ -1,5 +1,3 @@ -using System; - namespace WPIUtil.Serialization.Struct.Parsing; public class ParseException(int pos, string s) : Exception(s) diff --git a/src/wpiutil/Serialization/Struct/Parsing/ParsedDeclaration.cs b/src/wpiutil/Serialization/Struct/Parsing/ParsedDeclaration.cs index d1f9655c..5508bbd9 100644 --- a/src/wpiutil/Serialization/Struct/Parsing/ParsedDeclaration.cs +++ b/src/wpiutil/Serialization/Struct/Parsing/ParsedDeclaration.cs @@ -1,5 +1,3 @@ -using System.Collections.Generic; - namespace WPIUtil.Serialization.Struct.Parsing; public record struct ParsedDeclaration(string TypeString, string Name, Dictionary? EnumValues, int ArraySize, int BitWidth); diff --git a/src/wpiutil/Serialization/Struct/Parsing/ParsedSchema.cs b/src/wpiutil/Serialization/Struct/Parsing/ParsedSchema.cs index 877529e8..e9bcca71 100644 --- a/src/wpiutil/Serialization/Struct/Parsing/ParsedSchema.cs +++ b/src/wpiutil/Serialization/Struct/Parsing/ParsedSchema.cs @@ -1,5 +1,3 @@ -using System; -using System.Collections.Generic; using System.Runtime.InteropServices; namespace WPIUtil.Serialization.Struct.Parsing; diff --git a/src/wpiutil/Serialization/Struct/Parsing/Parser.cs b/src/wpiutil/Serialization/Struct/Parsing/Parser.cs index 1f562e6e..4bb36a95 100644 --- a/src/wpiutil/Serialization/Struct/Parsing/Parser.cs +++ b/src/wpiutil/Serialization/Struct/Parsing/Parser.cs @@ -1,5 +1,3 @@ -using System; -using System.Collections.Generic; using System.Text; namespace WPIUtil.Serialization.Struct.Parsing; diff --git a/src/wpiutil/Serialization/Struct/Parsing/Utf8CodePointEnumerator.cs b/src/wpiutil/Serialization/Struct/Parsing/Utf8CodePointEnumerator.cs index 16af66d2..1d05bbf5 100644 --- a/src/wpiutil/Serialization/Struct/Parsing/Utf8CodePointEnumerator.cs +++ b/src/wpiutil/Serialization/Struct/Parsing/Utf8CodePointEnumerator.cs @@ -1,4 +1,3 @@ -using System; using System.Buffers; using System.Text; diff --git a/src/wpiutil/Serialization/Struct/Struct.cs b/src/wpiutil/Serialization/Struct/Struct.cs index f98f0ee3..5d52d8ff 100644 --- a/src/wpiutil/Serialization/Struct/Struct.cs +++ b/src/wpiutil/Serialization/Struct/Struct.cs @@ -1,5 +1,3 @@ -using System; - namespace WPIUtil.Serialization.Struct; public interface IStructBase diff --git a/src/wpiutil/Serialization/Struct/StructBuffer.cs b/src/wpiutil/Serialization/Struct/StructBuffer.cs index 9878cd8d..4d72ff06 100644 --- a/src/wpiutil/Serialization/Struct/StructBuffer.cs +++ b/src/wpiutil/Serialization/Struct/StructBuffer.cs @@ -1,5 +1,3 @@ -using System; - namespace WPIUtil.Serialization.Struct; public struct StructBuffer where T : IStructSerializable diff --git a/src/wpiutil/Serialization/Struct/StructDescriptor.cs b/src/wpiutil/Serialization/Struct/StructDescriptor.cs index 162e6622..b3e019c7 100644 --- a/src/wpiutil/Serialization/Struct/StructDescriptor.cs +++ b/src/wpiutil/Serialization/Struct/StructDescriptor.cs @@ -1,6 +1,3 @@ -using System; -using System.Collections.Generic; - namespace WPIUtil.Serialization.Struct; public sealed class StructDescriptor diff --git a/src/wpiutil/Serialization/Struct/StructDescriptorDatabase.cs b/src/wpiutil/Serialization/Struct/StructDescriptorDatabase.cs index f744a293..36a51a98 100644 --- a/src/wpiutil/Serialization/Struct/StructDescriptorDatabase.cs +++ b/src/wpiutil/Serialization/Struct/StructDescriptorDatabase.cs @@ -1,5 +1,3 @@ -using System; -using System.Collections.Generic; using System.Runtime.InteropServices; using WPIUtil.Serialization.Struct.Parsing; diff --git a/src/wpiutil/Serialization/Struct/StructFieldDescriptor.cs b/src/wpiutil/Serialization/Struct/StructFieldDescriptor.cs index 6f11171d..25534087 100644 --- a/src/wpiutil/Serialization/Struct/StructFieldDescriptor.cs +++ b/src/wpiutil/Serialization/Struct/StructFieldDescriptor.cs @@ -1,5 +1,3 @@ -using System.Collections.Generic; - namespace WPIUtil.Serialization.Struct; public sealed class StructFieldDescriptor diff --git a/src/wpiutil/Serialization/Struct/StructFieldType.cs b/src/wpiutil/Serialization/Struct/StructFieldType.cs index 74b6ea15..bbaf3d28 100644 --- a/src/wpiutil/Serialization/Struct/StructFieldType.cs +++ b/src/wpiutil/Serialization/Struct/StructFieldType.cs @@ -1,5 +1,3 @@ -using System; -using System.Collections.Generic; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/src/wpiutil/Serialization/Struct/StructPacker.cs b/src/wpiutil/Serialization/Struct/StructPacker.cs index b7b00305..c105dde1 100644 --- a/src/wpiutil/Serialization/Struct/StructPacker.cs +++ b/src/wpiutil/Serialization/Struct/StructPacker.cs @@ -1,4 +1,3 @@ -using System; using System.Buffers.Binary; using CommunityToolkit.Diagnostics; diff --git a/src/wpiutil/Serialization/Struct/StructUnpacker.cs b/src/wpiutil/Serialization/Struct/StructUnpacker.cs index a7892c50..0398a162 100644 --- a/src/wpiutil/Serialization/Struct/StructUnpacker.cs +++ b/src/wpiutil/Serialization/Struct/StructUnpacker.cs @@ -1,4 +1,3 @@ -using System; using System.Buffers.Binary; using CommunityToolkit.Diagnostics; diff --git a/src/wpiutil/WPIString.cs b/src/wpiutil/WPIString.cs index 4705286b..4bd22997 100644 --- a/src/wpiutil/WPIString.cs +++ b/src/wpiutil/WPIString.cs @@ -1,4 +1,3 @@ -using System; using System.Runtime.InteropServices; using System.Runtime.InteropServices.Marshalling; using WPIUtil.Marshal; diff --git a/test/ntcore.test/LoggerTest.cs b/test/ntcore.test/LoggerTest.cs index ff93e932..224cdae6 100644 --- a/test/ntcore.test/LoggerTest.cs +++ b/test/ntcore.test/LoggerTest.cs @@ -1,4 +1,3 @@ -using System.Runtime.InteropServices; using Xunit; namespace NetworkTables.Test; diff --git a/test/ntcore.test/NtStringMarshallerTests.cs b/test/ntcore.test/NtStringMarshallerTests.cs index d327a975..55bfdb88 100644 --- a/test/ntcore.test/NtStringMarshallerTests.cs +++ b/test/ntcore.test/NtStringMarshallerTests.cs @@ -1,6 +1,3 @@ -using NetworkTables.Natives; -using Xunit; - namespace NetworkTables; // public unsafe class NtStringMarshallerTests diff --git a/test/ntcore.test/StringUtf8ReturnMarshallerTests.cs b/test/ntcore.test/StringUtf8ReturnMarshallerTests.cs index d49f5275..73778689 100644 --- a/test/ntcore.test/StringUtf8ReturnMarshallerTests.cs +++ b/test/ntcore.test/StringUtf8ReturnMarshallerTests.cs @@ -1,5 +1,3 @@ -using NetworkTables.Natives; -using Xunit; //using Marshaller = NetworkTables.Natives.NtLengthStringMarshaller; namespace NetworkTables; diff --git a/test/stereologue.test/TestTree.cs b/test/stereologue.test/TestTree.cs index 10fd1d03..e2bc507d 100644 --- a/test/stereologue.test/TestTree.cs +++ b/test/stereologue.test/TestTree.cs @@ -1,6 +1,4 @@ -using System.Runtime.CompilerServices; using WPIMath.Geometry; -using WPIUtil; namespace Stereologue.Test;