Skip to content

Commit

Permalink
Remove unused methods
Browse files Browse the repository at this point in the history
  • Loading branch information
robinvanpoppel committed Apr 11, 2020
1 parent ac18c25 commit cfe912f
Showing 1 changed file with 0 additions and 40 deletions.
40 changes: 0 additions & 40 deletions KeeTrayTOTP/Libraries/QRCoder/QRCodeGenerator.cs
Expand Up @@ -569,46 +569,6 @@ private static bool IsBlocked(Rectangle r1, List<Rectangle> blockedModules)

private static class MaskPattern
{
public static bool Pattern1(int x, int y)
{
return (x + y) % 2 == 0;
}

public static bool Pattern2(int x, int y)
{
return y % 2 == 0;
}

public static bool Pattern3(int x, int y)
{
return x % 3 == 0;
}

public static bool Pattern4(int x, int y)
{
return (x + y) % 3 == 0;
}

public static bool Pattern5(int x, int y)
{
return ((int)(Math.Floor(y / 2d) + Math.Floor(x / 3d)) % 2) == 0;
}

public static bool Pattern6(int x, int y)
{
return ((x * y) % 2) + ((x * y) % 3) == 0;
}

public static bool Pattern7(int x, int y)
{
return (((x * y) % 2) + ((x * y) % 3)) % 2 == 0;
}

public static bool Pattern8(int x, int y)
{
return (((x + y) % 2) + ((x * y) % 3)) % 2 == 0;
}

public static int Score(ref QRCodeData qrCode)
{
int score1 = 0,
Expand Down

0 comments on commit cfe912f

Please sign in to comment.