mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-22 00:32:55 +08:00
JsHint Fixes, deleting unused methods
This commit is contained in:
parent
69ab6a0e0d
commit
8391af2e8f
@ -276,7 +276,6 @@ exports.create = function(project_path, config, options, events) {
|
|||||||
copyJsAndLibrary(project_path, options.link, safe_activity_name);
|
copyJsAndLibrary(project_path, options.link, safe_activity_name);
|
||||||
|
|
||||||
//Set up ther Android Studio paths
|
//Set up ther Android Studio paths
|
||||||
var app_path = path.join(project_path, 'app', 'src', 'main');
|
|
||||||
var java_path = path.join(app_path, 'java');
|
var java_path = path.join(app_path, 'java');
|
||||||
var assets_path = path.join(app_path, 'assets');
|
var assets_path = path.join(app_path, 'assets');
|
||||||
var resource_path = path.join(app_path, 'res');
|
var resource_path = path.join(app_path, 'res');
|
||||||
|
@ -22,7 +22,6 @@ var fs = require('fs');
|
|||||||
var path = require('path');
|
var path = require('path');
|
||||||
var shell = require('shelljs');
|
var shell = require('shelljs');
|
||||||
var events = require('cordova-common').events;
|
var events = require('cordova-common').events;
|
||||||
var CordovaError = require('cordova-common').CordovaError;
|
|
||||||
|
|
||||||
function GenericBuilder (projectDir) {
|
function GenericBuilder (projectDir) {
|
||||||
this.root = projectDir || path.resolve(__dirname, '../../..');
|
this.root = projectDir || path.resolve(__dirname, '../../..');
|
||||||
@ -32,10 +31,6 @@ function GenericBuilder (projectDir) {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
function hasCustomRules(projectRoot) {
|
|
||||||
return fs.existsSync(path.join(projectRoot, 'custom_rules.xml'));
|
|
||||||
}
|
|
||||||
|
|
||||||
GenericBuilder.prototype.prepEnv = function() {
|
GenericBuilder.prototype.prepEnv = function() {
|
||||||
return Q();
|
return Q();
|
||||||
};
|
};
|
||||||
|
@ -82,8 +82,6 @@ StudioBuilder.prototype.runGradleWrapper = function(gradle_cmd) {
|
|||||||
|
|
||||||
StudioBuilder.prototype.readProjectProperties = function () {
|
StudioBuilder.prototype.readProjectProperties = function () {
|
||||||
|
|
||||||
console.log("Do we even have to do this?");
|
|
||||||
|
|
||||||
function findAllUniq(data, r) {
|
function findAllUniq(data, r) {
|
||||||
var s = {};
|
var s = {};
|
||||||
var m;
|
var m;
|
||||||
|
Loading…
Reference in New Issue
Block a user