Removing unnecessary things
MODIFY
WalletWasabi.Fluent/QRCodeDecoder/Corner.cs
WalletWasabi.Fluent/QRCodeDecoder/Corner.cs
@@ -86,7 +86,6 @@ namespace WalletWasabi.Fluent.QRCodeDecoder
// left line length
LeftLineLength = Math.Sqrt(LeftLineDeltaX * LeftLineDeltaX + LeftLineDeltaY * LeftLineDeltaY);
- return;
}
/////////////////////////////////////////////////////////////////////

MODIFY
WalletWasabi.Fluent/QRCodeDecoder/Finder.cs
WalletWasabi.Fluent/QRCodeDecoder/Finder.cs
@@ -64,7 +64,7 @@ namespace WalletWasabi.Fluent.QRCodeDecoder
internal int Row2;
internal double VModule;
- internal double Distance;
+ internal double Distance = double.MaxValue;
internal double ModuleSize;
/// <summary>
@@ -76,8 +76,6 @@ namespace WalletWasabi.Fluent.QRCodeDecoder
Col1 = col1;
Col2 = col2;
HModule = hModule;
- Distance = double.MaxValue;
- return;
}
/// <summary>

DELETE
WalletWasabi.Fluent/QRCodeDecoder/QRHandler.cs
-/////////////////////////////////////////////////////////////////////
-//
-// QR Code Library
-//
-// Author: Uzi Granot
-// Original Version: 1.0
-// Date: June 30, 2018
-// Copyright (C) 2018-2019 Uzi Granot. All Rights Reserved
-// For full version history please look at QRDecoder.cs
-//
-// QR Code Library C# class library and the attached test/demo
-// applications are free software.
-// Software developed by this author is licensed under CPOL 1.02.
-// Some portions of the QRCodeVideoDecoder are licensed under GNU Lesser
-// General Public License v3.0.
-//
-// The main points of CPOL 1.02 subject to the terms of the License are:
-//
-// Source Code and Executable Files can be used in commercial applications;
-// Source Code and Executable Files can be redistributed; and
-// Source Code can be modified to create derivative works.
-// No claim of suitability, guarantee, or any warranty whatsoever is
-// provided. The software is provided "as-is".
-// The Article accompanying the Work may not be distributed or republished
-// without the Author's consent
-//
-// For version history please refer to QRDecoder.cs
-/////////////////////////////////////////////////////////////////////
-
-using System;
-using System.Drawing;
-using System.IO;
-using System.Text;
-
-namespace WalletWasabi.Fluent.QRCodeDecoder
-{
- /// <summary>
- /// Test QR Code Decoder
- /// </summary>
- public partial class QRHandler
- {
- private QRDecoder? _qRCodeDecoder;
- private Bitmap? _qRCodeInputImage;
-
- /// <summary>
- /// Constructor
- /// </summary>
- public QRHandler()
- {
- }
-
- private void OnLoadButtonClick(object sender, EventArgs e)
- {
- // _qRCodeDecoder = new QRDecoder();
- // Get the image file to decode
- // OpenFileDialog dialog = new OpenFileDialog
- // {
- // Filter = "Image Files(*.png;*.jpg;*.gif;*.tif)|*.png;*.jpg;*.gif;*.tif;*.bmp)|All files (*.*)|*.*",
- // Title = "Load QR Code Image",
- // InitialDirectory = Directory.GetCurrentDirectory(),
- // RestoreDirectory = true,
- // FileName = string.Empty
- // };
-
- //// display dialog box
- // if (dialog.ShowDialog() != DialogResult.OK)
- // {
- // return;
- // }
-
- //// load image to bitmap
- // _qRCodeInputImage = new Bitmap(dialog.FileName);
-
- //// decode image IMPORTANT
- // byte[][]? dataByteArray = _qRCodeDecoder.ImageDecoder(_qRCodeInputImage);
-
- // if (dataByteArray is null)
- // {
- // AddressLabel.Text = "No data could be displayed";
- // return;
- // }
- //// convert results to text IMPORTANT
- // AddressLabel.Text = QRCodeResult(dataByteArray);
-
- return;
- }
- }
-}

MODIFY
WalletWasabi.Fluent/QRCodeDecoder/ReedSolomon.cs
WalletWasabi.Fluent/QRCodeDecoder/ReedSolomon.cs
@@ -295,7 +295,6 @@ namespace WalletWasabi.Fluent.QRCodeDecoder
receivedData[dataLength - 1 - StaticTables.IntToExp[ps]] ^= (byte)MultiplyDivide(ps, omegaTotal, sigmaTotal);
}
- return;
}
internal static void PolynominalDivision(byte[] polynomial, int polyLength, byte[] generator, int errCorrCodewords)
@@ -320,7 +319,6 @@ namespace WalletWasabi.Fluent.QRCodeDecoder
polynomial[index + 1 + generatorIndex] = (byte)(polynomial[index + 1 + generatorIndex] ^ StaticTables.ExpToInt[generator[generatorIndex] + multiplier]);
}
}
- return;
}
internal static int Multiply(int int1, int int2)
@@ -366,7 +364,6 @@ namespace WalletWasabi.Fluent.QRCodeDecoder
}
}
}
- return;
}
}
}

Removing unnecessary things