Skip to content

Commit

Permalink
Merge pull request #884 from YoshiRulz/exports-unclutter
Browse files Browse the repository at this point in the history
Exports unclutter
  • Loading branch information
adamhathcock authored Dec 19, 2024
2 parents ceddab9 + e492025 commit 7f79c49
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 35 deletions.
1 change: 1 addition & 0 deletions src/SharpCompress/Archives/Rar/FileInfoRarArchiveVolume.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.IO;
using System.Linq;
using SharpCompress.Common.Rar;
Expand Down
2 changes: 1 addition & 1 deletion src/SharpCompress/BufferPool.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Buffers;

namespace SharpCompress;
namespace SharpCompress.Helpers;

internal static class BufferPool
{
Expand Down
2 changes: 1 addition & 1 deletion src/SharpCompress/LazyReadOnlyCollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Collections;
using System.Collections.Generic;

namespace SharpCompress;
namespace SharpCompress.Helpers;

internal sealed class LazyReadOnlyCollection<T> : ICollection<T>
{
Expand Down
2 changes: 1 addition & 1 deletion src/SharpCompress/NotNullExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Linq;
using System.Runtime.CompilerServices;

namespace SharpCompress;
namespace SharpCompress.Helpers;

public static class NotNullExtensions
{
Expand Down
30 changes: 0 additions & 30 deletions src/SharpCompress/ReadOnlyCollection.cs

This file was deleted.

6 changes: 4 additions & 2 deletions src/SharpCompress/Utility.cs
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
global using SharpCompress.Helpers;
using System;
using System.Buffers;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.IO;
using System.Text;
using SharpCompress.Readers;

namespace SharpCompress;
namespace SharpCompress.Helpers;

[CLSCompliant(false)]
public static class Utility
{
public static ReadOnlyCollection<T> ToReadOnly<T>(this ICollection<T> items) => new(items);
public static ReadOnlyCollection<T> ToReadOnly<T>(this IList<T> items) => new(items);

/// <summary>
/// Performs an unsigned bitwise right shift with the specified number
Expand Down
1 change: 1 addition & 0 deletions tests/SharpCompress.Test/TestBase.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
global using SharpCompress.Helpers;
using System;
using System.Collections.Generic;
using System.IO;
Expand Down

0 comments on commit 7f79c49

Please sign in to comment.