Skip to content

Commit

Permalink
Configured global usings
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianeicher committed Jan 17, 2022
1 parent 62be1cc commit 7f58369
Show file tree
Hide file tree
Showing 572 changed files with 108 additions and 2,894 deletions.
5 changes: 5 additions & 0 deletions src/Archives/Archives.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
<Nullable>enable</Nullable>
</PropertyGroup>

<!-- Global usings -->
<ItemGroup>
<Using Include="ZeroInstall.Archives.Properties" />
</ItemGroup>

<!-- Dependencies -->
<ItemGroup>
<ProjectReference Include="..\Store\Store.csproj" />
Expand Down
4 changes: 0 additions & 4 deletions src/Archives/BuilderExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
// Copyright Bastian Eicher et al.
// Licensed under the GNU Lesser Public License

using System;
using System.IO;
using NanoByte.Common.Tasks;
using ZeroInstall.Archives.Extractors;
using ZeroInstall.Model;
using ZeroInstall.Store.FileSystem;

namespace ZeroInstall.Archives;
Expand Down
7 changes: 1 addition & 6 deletions src/Archives/Builders/ArchiveBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
// Copyright Bastian Eicher et al.
// Licensed under the GNU Lesser Public License

using System;
using System.IO;
using ZeroInstall.Archives.Properties;
using ZeroInstall.Model;

namespace ZeroInstall.Archives.Builders;

/// <summary>
Expand Down Expand Up @@ -59,4 +54,4 @@ public static IArchiveBuilder Create(string path, string mimeType)

return Create(File.Create(path), mimeType);
}
}
}
1 change: 0 additions & 1 deletion src/Archives/Builders/IArchiveBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Copyright Bastian Eicher et al.
// Licensed under the GNU Lesser Public License

using System;
using ZeroInstall.Store.FileSystem;

namespace ZeroInstall.Archives.Builders;
Expand Down
5 changes: 0 additions & 5 deletions src/Archives/Builders/TarBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
// Copyright Bastian Eicher et al.
// Licensed under the GNU Lesser Public License

using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using ICSharpCode.SharpZipLib.Tar;
using NanoByte.Common;
using NanoByte.Common.Storage;
using NanoByte.Common.Streams;
using ZeroInstall.Archives.Extractors;

Expand Down
1 change: 0 additions & 1 deletion src/Archives/Builders/TarBz2Builder.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Copyright Bastian Eicher et al.
// Licensed under the GNU Lesser Public License

using System.IO;
using ICSharpCode.SharpZipLib.BZip2;

namespace ZeroInstall.Archives.Builders;
Expand Down
1 change: 0 additions & 1 deletion src/Archives/Builders/TarGzBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Copyright Bastian Eicher et al.
// Licensed under the GNU Lesser Public License

using System.IO;
using ICSharpCode.SharpZipLib.GZip;

namespace ZeroInstall.Archives.Builders;
Expand Down
1 change: 0 additions & 1 deletion src/Archives/Builders/TarLzipBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Copyright Bastian Eicher et al.
// Licensed under the GNU Lesser Public License

using System.IO;
using SharpCompress.Compressors;
using SharpCompress.Compressors.LZMA;

Expand Down
4 changes: 0 additions & 4 deletions src/Archives/Builders/ZipBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
// Copyright Bastian Eicher et al.
// Licensed under the GNU Lesser Public License

using System;
using System.IO;
using ICSharpCode.SharpZipLib.Zip;
using NanoByte.Common;
using NanoByte.Common.Storage;
using NanoByte.Common.Streams;
using ZeroInstall.Archives.Extractors;

Expand Down
9 changes: 0 additions & 9 deletions src/Archives/Extractors/ArchiveExtractor.cs
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
// Copyright Bastian Eicher et al.
// Licensed under the GNU Lesser Public License

using System;
using System.Collections.Generic;
using System.IO;
using JetBrains.Annotations;
using NanoByte.Common;
using NanoByte.Common.Storage;
using NanoByte.Common.Streams;
using NanoByte.Common.Tasks;
using ZeroInstall.Archives.Properties;
using ZeroInstall.Model;
using ZeroInstall.Store.FileSystem;

namespace ZeroInstall.Archives.Extractors;
Expand Down
4 changes: 0 additions & 4 deletions src/Archives/Extractors/CabExtractor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,9 @@
// Licensed under the GNU Lesser Public License

#if NETFRAMEWORK
using System;
using System.IO;
using Microsoft.Deployment.Compression.Cab;
using NanoByte.Common.Native;
using NanoByte.Common.Tasks;
using ZeroInstall.Store.FileSystem;
using ZeroInstall.Archives.Properties;

namespace ZeroInstall.Archives.Extractors;

Expand Down
4 changes: 0 additions & 4 deletions src/Archives/Extractors/CabExtractorContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@
// Licensed under the GNU Lesser Public License

#if NETFRAMEWORK
using System;
using System.IO;
using System.IO.Pipelines;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Deployment.Compression;
using NanoByte.Common.Streams;
using ZeroInstall.Store.FileSystem;
Expand Down
3 changes: 0 additions & 3 deletions src/Archives/Extractors/IArchiveExtractor.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
// Copyright Bastian Eicher et al.
// Licensed under the GNU Lesser Public License

using System;
using System.IO;
using NanoByte.Common.Tasks;
using ZeroInstall.Store.FileSystem;

namespace ZeroInstall.Archives.Extractors;
Expand Down
4 changes: 0 additions & 4 deletions src/Archives/Extractors/MsiExtractor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,9 @@
// Licensed under the GNU Lesser Public License

#if NETFRAMEWORK
using System;
using System.IO;
using Microsoft.Deployment.Compression.Cab;
using Microsoft.Deployment.WindowsInstaller;
using NanoByte.Common.Native;
using NanoByte.Common.Tasks;
using ZeroInstall.Archives.Properties;
using ZeroInstall.Store.FileSystem;

namespace ZeroInstall.Archives.Extractors;
Expand Down
6 changes: 0 additions & 6 deletions src/Archives/Extractors/MsiPackage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,7 @@
// Licensed under the GNU Lesser Public License

#if NETFRAMEWORK
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using JetBrains.Annotations;
using Microsoft.Deployment.WindowsInstaller;
using ZeroInstall.Archives.Properties;

namespace ZeroInstall.Archives.Extractors;

Expand Down
3 changes: 0 additions & 3 deletions src/Archives/Extractors/OldUnixExtraData.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
// Copyright Bastian Eicher et al.
// Licensed under the GNU Lesser Public License

using System;
using System.IO;
using ICSharpCode.SharpZipLib.Zip;
using NanoByte.Common;

namespace ZeroInstall.Archives.Extractors;

Expand Down
2 changes: 0 additions & 2 deletions src/Archives/Extractors/RarExtractor.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
// Copyright Bastian Eicher et al.
// Licensed under the GNU Lesser Public License

using System.IO;
using SharpCompress.Common;
using SharpCompress.Readers.Rar;
using ZeroInstall.Archives.Properties;
using ZeroInstall.Store.FileSystem;

namespace ZeroInstall.Archives.Extractors;
Expand Down
3 changes: 0 additions & 3 deletions src/Archives/Extractors/RubyGemExtractor.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
// Copyright Bastian Eicher et al.
// Licensed under the GNU Lesser Public License

using System;
using System.IO;
using System.Text;
using ICSharpCode.SharpZipLib;
using ICSharpCode.SharpZipLib.Tar;
using ZeroInstall.Archives.Properties;
using ZeroInstall.Store.FileSystem;

namespace ZeroInstall.Archives.Extractors;
Expand Down
4 changes: 0 additions & 4 deletions src/Archives/Extractors/SevenZipExtractor.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
// Copyright Bastian Eicher et al.
// Licensed under the GNU Lesser Public License

using System;
using System.IO;
using NanoByte.Common;
using SharpCompress.Archives.SevenZip;
using SharpCompress.Common;
using ZeroInstall.Archives.Properties;
using ZeroInstall.Store.FileSystem;

namespace ZeroInstall.Archives.Extractors;
Expand Down
2 changes: 0 additions & 2 deletions src/Archives/Extractors/TarBz2Extractor.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// Copyright Bastian Eicher et al.
// Licensed under the GNU Lesser Public License

using System.IO;
using ICSharpCode.SharpZipLib.BZip2;
using ZeroInstall.Archives.Properties;
using ZeroInstall.Store.FileSystem;

namespace ZeroInstall.Archives.Extractors;
Expand Down
4 changes: 0 additions & 4 deletions src/Archives/Extractors/TarExtractor.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
// Copyright Bastian Eicher et al.
// Licensed under the GNU Lesser Public License

using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using ICSharpCode.SharpZipLib;
using ICSharpCode.SharpZipLib.Tar;
using ZeroInstall.Archives.Properties;
using ZeroInstall.Store.FileSystem;

namespace ZeroInstall.Archives.Extractors;
Expand Down
2 changes: 0 additions & 2 deletions src/Archives/Extractors/TarGzExtractor.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// Copyright Bastian Eicher et al.
// Licensed under the GNU Lesser Public License

using System.IO;
using ICSharpCode.SharpZipLib.GZip;
using ZeroInstall.Archives.Properties;
using ZeroInstall.Store.FileSystem;

namespace ZeroInstall.Archives.Extractors;
Expand Down
1 change: 0 additions & 1 deletion src/Archives/Extractors/TarLzipExtractor.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Copyright Bastian Eicher et al.
// Licensed under the GNU Lesser Public License

using System.IO;
using SharpCompress.Compressors;
using SharpCompress.Compressors.LZMA;
using ZeroInstall.Store.FileSystem;
Expand Down
1 change: 0 additions & 1 deletion src/Archives/Extractors/TarLzmaExtractor.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Copyright Bastian Eicher et al.
// Licensed under the GNU Lesser Public License

using System.IO;
using NanoByte.Common.Streams;
using SharpCompress.Compressors.LZMA;
using ZeroInstall.Store.FileSystem;
Expand Down
1 change: 0 additions & 1 deletion src/Archives/Extractors/TarXzExtractor.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Copyright Bastian Eicher et al.
// Licensed under the GNU Lesser Public License

using System.IO;
using SharpCompress.Compressors.Xz;
using ZeroInstall.Store.FileSystem;

Expand Down
2 changes: 0 additions & 2 deletions src/Archives/Extractors/TarZstandardExtractor.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// Copyright Bastian Eicher et al.
// Licensed under the GNU Lesser Public License

using System.IO;
using ImpromptuNinjas.ZStd;
using ZeroInstall.Archives.Properties;
using ZeroInstall.Store.FileSystem;

namespace ZeroInstall.Archives.Extractors;
Expand Down
4 changes: 0 additions & 4 deletions src/Archives/Extractors/ZipExtractor.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
// Copyright Bastian Eicher et al.
// Licensed under the GNU Lesser Public License

using System;
using System.IO;
using ICSharpCode.SharpZipLib;
using ICSharpCode.SharpZipLib.Zip;
using NanoByte.Common;
using NanoByte.Common.Streams;
using NanoByte.Common.Values;
using ZeroInstall.Archives.Properties;
using ZeroInstall.Store.FileSystem;

namespace ZeroInstall.Archives.Extractors;
Expand Down
2 changes: 0 additions & 2 deletions src/Client/IProcessLauncher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
// Licensed under the GNU Lesser Public License

using System.Diagnostics;
using System.IO;
using NanoByte.Common;

namespace ZeroInstall.Client;

Expand Down
5 changes: 0 additions & 5 deletions src/Client/IZeroInstallClient.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
// Copyright Bastian Eicher et al.
// Licensed under the GNU Lesser Public License

using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Threading.Tasks;
using ZeroInstall.Model;
using ZeroInstall.Model.Selection;

namespace ZeroInstall.Client;
Expand Down
1 change: 0 additions & 1 deletion src/Client/ProcessLauncher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// Licensed under the GNU Lesser Public License

using System.Diagnostics;
using NanoByte.Common;

namespace ZeroInstall.Client;

Expand Down
7 changes: 0 additions & 7 deletions src/Client/ZeroInstallClient.cs
Original file line number Diff line number Diff line change
@@ -1,17 +1,10 @@
// Copyright Bastian Eicher et al.
// Licensed under the GNU Lesser Public License

using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using System.Xml.Linq;
using NanoByte.Common;
using NanoByte.Common.Native;
using NanoByte.Common.Storage;
using NanoByte.Common.Streams;
using ZeroInstall.Model;
using ZeroInstall.Model.Selection;

namespace ZeroInstall.Client;
Expand Down
8 changes: 0 additions & 8 deletions src/Commands/Basic/AddFeed.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
// Copyright Bastian Eicher et al.
// Licensed under the GNU Lesser Public License

using System;
using System.Collections.Generic;
using System.Linq;
using NanoByte.Common;
using NanoByte.Common.Collections;
using NanoByte.Common.Tasks;
using ZeroInstall.Commands.Properties;
using ZeroInstall.Model;
using ZeroInstall.Model.Preferences;

namespace ZeroInstall.Commands.Basic;
Expand Down
6 changes: 0 additions & 6 deletions src/Commands/Basic/AddRemoveFeedCommand.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
// Copyright Bastian Eicher et al.
// Licensed under the GNU Lesser Public License

using System.Collections.Generic;
using System.Linq;
using NanoByte.Common.Collections;
using NDesk.Options;
using ZeroInstall.Commands.Properties;
using ZeroInstall.Model;
using ZeroInstall.Model.Preferences;
using ZeroInstall.Services.Feeds;
using ZeroInstall.Store.Configuration;
Expand Down
3 changes: 0 additions & 3 deletions src/Commands/Basic/CatalogMan.Add.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
// Copyright Bastian Eicher et al.
// Licensed under the GNU Lesser Public License

using NanoByte.Common.Tasks;
using ZeroInstall.Commands.Properties;
using ZeroInstall.Model;
using ZeroInstall.Services.Feeds;

namespace ZeroInstall.Commands.Basic;
Expand Down
Loading

0 comments on commit 7f58369

Please sign in to comment.