Skip to content

Commit

Permalink
Deleted unused code for queues.
Browse files Browse the repository at this point in the history
  • Loading branch information
MeltyPlayer committed Apr 29, 2024
1 parent d77d81c commit 04038e0
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 30 deletions.
16 changes: 16 additions & 0 deletions RuleSet.ruleset
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<RuleSet Name="New Rule Set" Description=" " ToolsVersion="17.0">
<Rules AnalyzerId="Microsoft.Analyzers.ManagedCodeAnalysis" RuleNamespace="Microsoft.Rules.Managed">
<Rule Id="CA1801" Action="Warning" />
<Rule Id="CA1804" Action="Warning" />
<Rule Id="CA1811" Action="Warning" />
<Rule Id="CA1812" Action="Warning" />
<Rule Id="CA1823" Action="Warning" />
</Rules>
<Rules AnalyzerId="Microsoft.CodeAnalysis.CSharp.NetAnalyzers" RuleNamespace="Microsoft.CodeAnalysis.CSharp.NetAnalyzers">
<Rule Id="CA1812" Action="Warning" />
</Rules>
<Rules AnalyzerId="Microsoft.CodeAnalysis.NetAnalyzers" RuleNamespace="Microsoft.CodeAnalysis.NetAnalyzers">
<Rule Id="CA1823" Action="Warning" />
</Rules>
</RuleSet>
1 change: 1 addition & 0 deletions Schema/Schema.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@

<PropertyGroup>
<GetTargetPathDependsOn>$(GetTargetPathDependsOn);GetDependencyTargetPaths</GetTargetPathDependsOn>
<AnalysisLevel>latest-recommended</AnalysisLevel>
</PropertyGroup>

<Target Name="GetDependencyTargetPaths">
Expand Down
3 changes: 3 additions & 0 deletions Schema/src/testing/SchemaMemoryStream.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
namespace schema.testing {
public class SchemaMemoryStream(MemoryStream impl)
: ISeekableReadableStream, ISeekableWritableStream {
public static SchemaMemoryStream From<T>(T[] src) where T : unmanaged
=> From((ReadOnlySpan<T>) src);

public static unsafe SchemaMemoryStream From<T>(ReadOnlySpan<T> src)
where T : unmanaged {
var size = sizeof(T);
Expand Down
30 changes: 0 additions & 30 deletions Schema/src/util/data/QueueExtensions.cs

This file was deleted.

0 comments on commit 04038e0

Please sign in to comment.