Remove unused code

- Remove commented code
- Remove unused/immediately overwritten variables
- Remove extraneous parameters
- Remove unreachable code
- Remove duplicate array keys
This commit is contained in:
Hypolite Petovan 2019-01-07 12:09:10 -05:00
parent 0c4f8277e6
commit 4a95ca280d
42 changed files with 43 additions and 218 deletions

View file

@ -47,8 +47,6 @@ HELP;
throw new \Asika\SimpleConsole\CommandArgsException('Too many arguments');
}
$a = \get_app();
$pofile = realpath($this->getArgument(0));
if (!file_exists($pofile)) {
@ -106,7 +104,6 @@ HELP;
}
if ($inv) {
$inv = false;
$out .= '"' . $v . '"';
}
@ -179,7 +176,6 @@ HELP;
}
if ($inv) {
$inv = false;
$out .= '"' . $v . '"';
}

View file

@ -37,8 +37,6 @@ HELP;
protected function doExecute()
{
$a = \Friendica\BaseObject::getApp();
if ($this->getOption('v')) {
$this->out('Executable: ' . $this->executable);
$this->out('Class: ' . __CLASS__);