Skip to content

Commit dc8738f

Browse files
committed
chore(): remove unused functions
1 parent 6e8c937 commit dc8738f

File tree

2 files changed

+2
-18
lines changed

2 files changed

+2
-18
lines changed

lib/cli.js

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -691,18 +691,6 @@ Cli.printNewsUpdates = function printNewsUpdates(skipNewsCheck) {
691691
return q.promise;
692692
};
693693

694-
//A little why on this reportExtras here -
695-
//We need to access the CLI's package.json file
696-
//for that, we need the path to be relative to this,
697-
//not the node_module/ionic-app-lib directory
698-
Cli.reportExtras = function reportExtras(err) {
699-
var commandLineInfo = process.argv;
700-
701-
var info = Cli.gatherInfo();
702-
info.command = commandLineInfo;
703-
return info;
704-
};
705-
706694
Cli.gatherInfo = function gatherInfo() {
707695
var info = Info.gatherInfo();
708696
Info.getIonicVersion(info, process.cwd());
@@ -757,10 +745,6 @@ Cli.getContentSrc = function getContentSrc() {
757745
return Utils.getContentSrc(process.cwd());
758746
};
759747

760-
Cli.setConfigXml = function setConfigXml(settings) {
761-
return ConfigXml.setConfigXml(process.cwd(), settings);
762-
};
763-
764748
Cli.doRuntimeCheck = function doRuntimeCheck(version) {
765749
var lastVersionChecked = IonicConfig.get('lastVersionChecked');
766750
var versionHasBeenChecked;

lib/ionic/cordova.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ IonicTask.prototype.run = function(ionic, argv) {
104104
return self.setupLiveReload(argv);
105105
} else {
106106
// ensure the content node was set back to its original
107-
return self.ionic.setConfigXml({
107+
return ConfigXml.setConfigXml(process.cwd(), {
108108
resetContent: true,
109109
errorWhenNotFound: false
110110
});
@@ -305,7 +305,7 @@ IonicTask.prototype.runCordova = function(cmdName, argv) {
305305

306306
process.on('exit', function(){
307307
// verify it was set back
308-
self.ionic.setConfigXml( process.cwd(), {
308+
ConfigXml.setConfigXml(process.cwd(), {
309309
resetContent: true,
310310
errorWhenNotFound: false
311311
});

0 commit comments

Comments
 (0)