Remove unused items
This commit is contained in:
parent
7a4866b269
commit
e5a2e3961e
2 changed files with 0 additions and 36 deletions
|
@ -73,30 +73,6 @@ export function doInstallNew(appVersion, os = null, firebaseToken = null, callba
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
export function doInstallNewWithParams(
|
|
||||||
appVersion,
|
|
||||||
installationId,
|
|
||||||
nodeId,
|
|
||||||
lbrynetVersion,
|
|
||||||
os,
|
|
||||||
platform,
|
|
||||||
firebaseToken = null
|
|
||||||
) {
|
|
||||||
return () => {
|
|
||||||
const payload = { app_version: appVersion };
|
|
||||||
if (firebaseToken) {
|
|
||||||
payload.firebase_token = firebaseToken;
|
|
||||||
}
|
|
||||||
|
|
||||||
payload.app_id = installationId;
|
|
||||||
payload.node_id = nodeId;
|
|
||||||
payload.daemon_version = lbrynetVersion;
|
|
||||||
payload.operating_system = os;
|
|
||||||
payload.platform = platform;
|
|
||||||
Lbryio.call('install', 'new', payload);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
function checkAuthBusy() {
|
function checkAuthBusy() {
|
||||||
let time = Date.now();
|
let time = Date.now();
|
||||||
return new Promise(function (resolve, reject) {
|
return new Promise(function (resolve, reject) {
|
||||||
|
|
|
@ -1,12 +0,0 @@
|
||||||
const fs = require('fs');
|
|
||||||
const path = require('path');
|
|
||||||
|
|
||||||
let robots;
|
|
||||||
async function getRobots(ctx) {
|
|
||||||
if (!robots) {
|
|
||||||
robots = fs.readFileSync(path.join(__dirname, '/../dist/public/robots.txt'), 'utf8');
|
|
||||||
}
|
|
||||||
return robots;
|
|
||||||
}
|
|
||||||
|
|
||||||
module.exports = { getRobots };
|
|
Loading…
Reference in a new issue