(ems) remove some unused code

This commit is contained in:
radius 2016-09-17 02:00:55 -05:00
parent 1cf7d758b5
commit 0515e9f753

View File

@ -3,10 +3,9 @@
* *
* This provides the basic JavaScript for the RetroArch web player. * This provides the basic JavaScript for the RetroArch web player.
*/ */
var dropbox = false;
var client = new Dropbox.Client({ key: "il6e10mfd7pgf8r" }); var client = new Dropbox.Client({ key: "il6e10mfd7pgf8r" });
var XFS;
var BrowserFS = browserfs; var BrowserFS = browserfs;
var afs;
var showError = function(error) { var showError = function(error) {
switch (error.status) { switch (error.status) {
@ -73,12 +72,9 @@ function dropboxSyncComplete()
console.log("WEBPLAYER: Sync successful"); console.log("WEBPLAYER: Sync successful");
setupFileSystem("dropbox"); setupFileSystem("dropbox");
setupFolderStructure();
preLoadingComplete(); preLoadingComplete();
} }
var afs;
function dropboxSync(dropboxClient, cb) function dropboxSync(dropboxClient, cb)
{ {
var dbfs = new BrowserFS.FileSystem.Dropbox(dropboxClient); var dbfs = new BrowserFS.FileSystem.Dropbox(dropboxClient);
@ -121,18 +117,10 @@ function setupFileSystem(backend)
if(backend == "browser") if(backend == "browser")
{ {
console.log("WEBPLAYER: Initializing LocalStorage"); console.log("WEBPLAYER: Initializing LocalStorage");
/* create a local filesystem */ /* create a local filesystem */
var lsfs = new BrowserFS.FileSystem.LocalStorage(); var lsfs = new BrowserFS.FileSystem.LocalStorage()
/* mount the filesystems onto mfs */ /* mount the filesystems onto mfs */
mfs.mount('/home/web_user/retroarch/userdata', lsfs); mfs.mount('/home/web_user/retroarch/userdata', lsfs);
/* create a memory filesystem for content only
var imfs = new BrowserFS.FileSystem.InMemory();*/
/* mount the filesystems onto mfs
mfs.mount('/home/web_user/retroarch/userdata/content/', imfs);*/
} }
else else
{ {
@ -158,24 +146,6 @@ function getParam(name) {
} }
} }
function setupFolderStructure()
{
FS.createPath('/', '/home/web_user', true, true);
}
function stat(path)
{
try{
FS.stat(path);
}
catch(err)
{
console.log("WEBPLAYER: file " + path + " doesn't exist");
return false;
}
return true;
}
function startRetroArch() function startRetroArch()
{ {
$('.webplayer').show(); $('.webplayer').show();
@ -353,7 +323,6 @@ $(function() {
$('#lblLocal').addClass('active'); $('#lblLocal').addClass('active');
preLoadingComplete(); preLoadingComplete();
setupFileSystem("browser"); setupFileSystem("browser");
setupFolderStructure();
} }
}); });
}); });