Browse Source

Code beautification…

Thomas Buck 12 years ago
parent
commit
9be6492922
3 changed files with 1 additions and 13 deletions
  1. 0
    11
      CubeControl/Animation.java
  2. 0
    1
      CubeControl/AnimationUtility.java
  3. 1
    1
      CubeControl/HelperUtility.java

+ 0
- 11
CubeControl/Animation.java View File

170
 		frames = newArray;
170
 		frames = newArray;
171
 	}
171
 	}
172
 
172
 
173
-	/* private void shiftSpace(int newFree) {
174
-		AFrame temp = null;
175
-		for (int i = newFree; i < (frames.length - 1); i++) {
176
-			// Max i: vorletztes element
177
-			AFrame tmp = frames[i];
178
-			frames[i] = temp;
179
-			temp = frames[i + 1];
180
-			frames[i + 1] = tmp;
181
-		}
182
-	} */
183
-
184
 	private void shiftOver(int toForget) {
173
 	private void shiftOver(int toForget) {
185
 		for (int i = (toForget + 1); i < frames.length; i++) {
174
 		for (int i = (toForget + 1); i < frames.length; i++) {
186
 			frames[i - 1] = frames[i];
175
 			frames[i - 1] = frames[i];

+ 0
- 1
CubeControl/AnimationUtility.java View File

69
 		for (int i = 0; i < animationArray.length; i++) {
69
 		for (int i = 0; i < animationArray.length; i++) {
70
 			newArray[i] = animationArray[i];
70
 			newArray[i] = animationArray[i];
71
 		}
71
 		}
72
-		//animations = newArray;
73
 		return newArray;
72
 		return newArray;
74
 	}
73
 	}
75
 
74
 

+ 1
- 1
CubeControl/HelperUtility.java View File

36
 public class HelperUtility {
36
 public class HelperUtility {
37
 
37
 
38
 	// Load libraries, copy from Jar if needed
38
 	// Load libraries, copy from Jar if needed
39
-	// Mostly from:
39
+	// Inspired by:
40
 	// http://stackoverflow.com/questions/1611357/how-to-make-a-jar-file-that-include-dll-files
40
 	// http://stackoverflow.com/questions/1611357/how-to-make-a-jar-file-that-include-dll-files
41
 	static {
41
 	static {
42
 		// System.out.println("Loading Serial Library...");
42
 		// System.out.println("Loading Serial Library...");

Loading…
Cancel
Save