mirror of
https://github.com/scratchfoundation/scratchjr.git
synced 2025-02-17 17:01:12 -05:00
Remove dead code for real
removing dead code that was just commented in the previous commit,
This commit is contained in:
parent
09c52f370f
commit
dd1f48f5e3
4 changed files with 2 additions and 71 deletions
|
@ -905,26 +905,6 @@ export default class ScratchJr {
|
|||
/////////////////
|
||||
//Application on the background
|
||||
|
||||
|
||||
// // XXX: does this ever happen?
|
||||
// // I'm pretty sure this is dead code -TM
|
||||
// static saveProjectState () {
|
||||
// ScratchAudio.sndFX('tap.wav');
|
||||
// if (frame.style.display == 'none') {
|
||||
// Paint.saveEditState(ScratchJr.stopServer);
|
||||
// } else {
|
||||
// ScratchJr.unfocus();
|
||||
// ScratchJr.stopStrips();
|
||||
// if (ScratchJr.isEditable() && currentProject && !Project.error && changed) {
|
||||
// Project.save(currentProject, ScratchJr.stopServer);
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// static stopServer () {
|
||||
// OS.stopserver(OS.trace);
|
||||
// }
|
||||
|
||||
/**
|
||||
* The functions that are invokved when the Android back button is clicked.
|
||||
* Methods are called from the rear and popped off after each invocation.
|
||||
|
|
|
@ -6,20 +6,6 @@
|
|||
let mediacounter = 0;
|
||||
|
||||
export default class Android {
|
||||
// // This will be set up in the OS class
|
||||
// // Wait for the tablet interface to be injected into the webview
|
||||
// static waitForInterface (fcn) {
|
||||
// // Already loaded the interface
|
||||
// if (typeof AndroidInterface !== 'undefined') {
|
||||
// fcn();
|
||||
// return;
|
||||
// }
|
||||
// // interface not yet available, come back in 100ms
|
||||
// setTimeout(function () {
|
||||
// Android.waitForInterface(fcn);
|
||||
// }, 100);
|
||||
// }
|
||||
|
||||
// Database functions
|
||||
static stmt (json, fcn) {
|
||||
var result = AndroidInterface.database_stmt(JSON.stringify(json));
|
||||
|
|
|
@ -82,30 +82,12 @@ export default class OS {
|
|||
tabletInterface.getsettings(fcn);
|
||||
}
|
||||
|
||||
// note the interfaces (iOS and Android) are responsible for deciding how
|
||||
// to manage getting media (e.g. whether it needs to be done in chunks etc)
|
||||
static getmedia (file, fcn) {
|
||||
tabletInterface.getmedia(file, fcn);
|
||||
}
|
||||
|
||||
// static getmediadata (key, offset, len, fcn) {
|
||||
// tabletInterface.getmediadata(key, offset, len, fcn);
|
||||
// }
|
||||
//
|
||||
// static processdata (key, off, len, oldstr, fcn) {
|
||||
// if (len == 0) {
|
||||
// OS.getmediadone(key);
|
||||
// fcn(oldstr);
|
||||
// return;
|
||||
// }
|
||||
// var newlen = (len < 100000) ? len : 100000;
|
||||
// OS.getmediadata(key, off, newlen, function (str) {
|
||||
// OS.processdata(key, off + newlen, len - newlen, oldstr + str, fcn);
|
||||
// });
|
||||
// }
|
||||
//
|
||||
// static getmediadone (file, fcn) {
|
||||
// tabletInterface.getmediadone(file, fcn);
|
||||
// }
|
||||
|
||||
static setmedia (str, ext, fcn) {
|
||||
tabletInterface.setmedia(str, ext, fcn);
|
||||
}
|
||||
|
|
|
@ -8,23 +8,6 @@ let mediacounter = 0;
|
|||
|
||||
export default class iOS {
|
||||
|
||||
// waitForInterface is defined in OS, and should make sure that the correct
|
||||
// interface is available.
|
||||
// static waitForInterface (fcn) {
|
||||
// // iOS device - interface might not be loaded yet
|
||||
// if (typeof (window.tablet) != 'object') {
|
||||
// // Come back in 100ms
|
||||
// setTimeout(function () {
|
||||
// iOS.waitForInterface(fcn);
|
||||
// }, 100);
|
||||
// } else {
|
||||
// // All set to run commands
|
||||
// if (fcn) {
|
||||
// fcn();
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
// Database functions
|
||||
static stmt (json, fcn) {
|
||||
var result = window.tablet.database_stmt(JSON.stringify(json));
|
||||
|
|
Loading…
Reference in a new issue