Skip to content

Commit

Permalink
Fix compile warnings, remove unused stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
LazyDuchess committed Jun 21, 2024
1 parent c30f7af commit 3bce65e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Assets/Scripts/DBPFSharp/QfsCompression.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ internal static class QfsCompression
/// <param name="prefixLength">If set to <c>true</c> prefix the size of the compressed data, as is used by SC4; otherwise <c>false</c>.</param>
/// <returns>A byte array containing the compressed data or null if the data cannot be compressed.</returns>
/// <exception cref="ArgumentNullException"><paramref name="input" /> is null.</exception>
public static byte[]? Compress(byte[] input, bool prefixLength)
public static byte[] Compress(byte[] input, bool prefixLength)
{
if (input == null)
{
Expand Down Expand Up @@ -415,7 +415,7 @@ int Log2(uint n)
/// <remarks>
/// This method has been adapted from deflate.c in zlib version 1.2.3.
/// </remarks>
public byte[]? Compress()
public byte[] Compress()
{
this.hash = input[0];
this.hash = ((this.hash << hashShift) ^ input[1]) & hashMask;
Expand Down
4 changes: 2 additions & 2 deletions Assets/Scripts/OpenTS2/DBPFSharp/QfsCompression.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ internal static class QfsCompression
/// <param name="prefixLength">If set to <c>true</c> prefix the size of the compressed data, as is used by SC4; otherwise <c>false</c>.</param>
/// <returns>A byte array containing the compressed data or null if the data cannot be compressed.</returns>
/// <exception cref="ArgumentNullException"><paramref name="input" /> is null.</exception>
public static byte[]? Compress(byte[] input, bool prefixLength)
public static byte[] Compress(byte[] input, bool prefixLength)
{
if (input == null)
{
Expand Down Expand Up @@ -418,7 +418,7 @@ int Log2(uint n)
/// <remarks>
/// This method has been adapted from deflate.c in zlib version 1.2.3.
/// </remarks>
public byte[]? Compress()
public byte[] Compress()
{
this.hash = input[0];
this.hash = ((this.hash << hashShift) ^ input[1]) & hashMask;
Expand Down
1 change: 0 additions & 1 deletion Assets/Scripts/OpenTS2/Engine/Tests/UILayoutTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ public class UILayoutTest : MonoBehaviour
public string Key = "0x49001017";
public bool Reload = false;
public bool LoadPackagesFromAllEPs = true;
private readonly string RelativeUIPackagePath = "Res/UI/ui.package";
private List<UIComponent> _instances = new List<UIComponent>();
void LoadAllUIPackages()
{
Expand Down
1 change: 0 additions & 1 deletion Assets/Scripts/OpenTS2/UI/TextFieldBehaviour.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ namespace OpenTS2.UI
public class TextFieldBehaviour : MonoBehaviour, ISelectHandler
{
private InputField inputField;
private bool isCaretPositionReset = false;

void Start()
{
Expand Down

0 comments on commit 3bce65e

Please sign in to comment.