Skip to content

Commit

Permalink
[refactor] removes dead code.
Browse files Browse the repository at this point in the history
  • Loading branch information
coderPaddyS committed Dec 20, 2024
1 parent 37c425c commit b95f204
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 338 deletions.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,10 @@
package org.secuso.privacyfriendly2048.activities.helper;


import org.secuso.privacyfriendly2048.activities.Element;

import java.io.Serializable;

/**
* This class just exists to restore old play states
* @author Julian Wadephul and Saskia Jacob
* @version 20180807
*/
Expand Down Expand Up @@ -57,36 +56,6 @@ public GameState(int[][] e) {
last_numbers = numbers;
}

public GameState(Element[][] e, Element[][] e2) {
int length = 1;
for (int i = 0; i < e.length; i++) {
if (e[i].length > length)
length = e[i].length;
}
this.n = e.length;
numbers = new int[e.length * e.length];
int c = 0;
for (int i = 0; i < e.length; i++) {
for (int j = 0; j < e[i].length; j++) {

numbers[c++] = e[i][j].number;
}
}
length = 1;
for (int i = 0; i < e2.length; i++) {
if (e2[i].length > length)
length = e2[i].length;
}
last_numbers = new int[e2.length * e2.length];
c = 0;
for (int i = 0; i < e2.length; i++) {
for (int j = 0; j < e2[i].length; j++) {

last_numbers[c++] = e2[i][j].number;
}
}
}

public int getNumber(int i, int j) {

try {
Expand Down

0 comments on commit b95f204

Please sign in to comment.