Skip to content

Commit 19f24d1

Browse files
committed
removed unused imports, deprecated code
1 parent aaf1496 commit 19f24d1

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

core/src/processing/core/PApplet.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,12 @@
6666

6767

6868
public class PApplet extends Fragment implements PConstants, Runnable {
69-
69+
7070
/**
7171
* The activity which holds this fragment.
7272
*/
7373
private Activity activity;
74-
74+
7575
/** The PGraphics renderer associated with this PApplet */
7676
public PGraphics g;
7777

@@ -454,12 +454,12 @@ public PApplet() {}
454454
@Override
455455
public View onCreateView(LayoutInflater inflater, ViewGroup container,
456456
Bundle savedInstanceState) {
457-
457+
458458
if (DEBUG) println("onCreateView() happening here: " + Thread.currentThread().getName());
459-
459+
460460
activity = getActivity();
461461
View rootView;
462-
462+
463463
DisplayMetrics dm = new DisplayMetrics();
464464
activity.getWindowManager().getDefaultDisplay().getMetrics(dm);
465465
displayWidth = dm.widthPixels;
@@ -781,7 +781,7 @@ public SketchSurfaceView(Context context, int wide, int high,
781781
// underlying surface is created and destroyed
782782
surfaceHolder = getHolder();
783783
surfaceHolder.addCallback(this);
784-
surfaceHolder.setType(SurfaceHolder.SURFACE_TYPE_GPU);
784+
// surfaceHolder.setType(SurfaceHolder.SURFACE_TYPE_GPU); // no longer needed.
785785

786786
// println("creating graphics");
787787
if (clazz.equals(PGraphicsAndroid2D.class)) {

src/processing/mode/android/AndroidMode.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323

2424
import processing.app.Base;
2525
import processing.app.Library;
26-
import processing.app.Preferences;
2726
import processing.app.RunnerListener;
2827
import processing.app.Sketch;
2928
import processing.app.SketchException;

0 commit comments

Comments
 (0)