Skip to content

Commit

Permalink
Remove Versions classes and all related data
Browse files Browse the repository at this point in the history
  • Loading branch information
DariusIII committed Dec 19, 2018
1 parent 0707499 commit 1077c46
Show file tree
Hide file tree
Showing 376 changed files with 281 additions and 38,949 deletions.
4 changes: 1 addition & 3 deletions Blacklight/NZB.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace Blacklight;

use App\Models\Settings;
use App\Extensions\util\Versions;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\File;

Expand Down Expand Up @@ -104,8 +103,7 @@ public function __construct()
$this->siteNzbPath .= '/';
}
$this->_nzbCommentString = sprintf(
'NZB Generated by: NNTmux %s %s',
(new Versions())->getGitTagInFile(),
'NZB Generated by: NNTmux %s',
now()->format('F j, Y, g:i a O')
);
$this->_siteCommentString = sprintf(
Expand Down
12 changes: 0 additions & 12 deletions Blacklight/Tmux.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use App\Models\Category;
use App\Models\Settings;
use App\Extensions\util\Versions;
use Illuminate\Support\Facades\DB;

/**
Expand Down Expand Up @@ -36,15 +35,6 @@ public function __construct()
$this->colorCli = new ColorCLI();
}

/**
* @return string
* @throws \RuntimeException
*/
public function version(): string
{
return (new Versions())->getGitTagInFile();
}

/**
* @param $constants
*
Expand Down Expand Up @@ -246,8 +236,6 @@ public function rows2Object($rows): \stdClass
$obj->{$row['setting']} = $row['value'];
}

$obj->{'version'} = $this->version();

return $obj;
}

Expand Down
6 changes: 1 addition & 5 deletions Blacklight/TmuxOutput.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Blacklight;

use Blacklight\utility\Versions;

/**
* Tmux output functions for printing monitor data.
*
Expand Down Expand Up @@ -39,7 +37,6 @@ class TmuxOutput extends Tmux
public function __construct()
{
parent::__construct();
$this->_vers = (new Versions())->getValidVersionsFile();

$this->_setColourMasks();
}
Expand Down Expand Up @@ -135,11 +132,10 @@ protected function _getHeader(): string
{
$buffer = '';
$state = ((int) $this->runVar['settings']['is_running'] === 1) ? 'Running' : 'Disabled';
$version = $this->_vers->versions->git->tag;

$buffer .= sprintf(
$this->tmpMasks[2],
"Monitor $state $version [".$this->runVar['constants']['sqlpatch'].']: ',
"Monitor $state ".': ',
$this->relativeTime($this->runVar['timers']['timer1'])
);

Expand Down
Loading

0 comments on commit 1077c46

Please sign in to comment.