Skip to content

Commit

Permalink
Remove unused code (#4421)
Browse files Browse the repository at this point in the history
* Remove unused code

* code style cleanup

* remove devdesktop
  • Loading branch information
danepowell authored Nov 15, 2021
1 parent d76a66c commit a0f6b8d
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 449 deletions.
13 changes: 0 additions & 13 deletions src/Robo/BltTasks.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,19 +201,6 @@ protected function invokeHook($hook) {
}
}

/**
* Installs a vagrant plugin if it is not already installed.
*
* @param string $plugin
* The vagrant plugin name.
*/
protected function installVagrantPlugin($plugin) {
if (!$this->getInspector()->isVagrantPluginInstalled($plugin)) {
$this->logger->warning("The $plugin plugin is not installed! Attempting to install it...");
$this->taskExec("vagrant plugin install $plugin")->run();
}
}

/**
* Executes a given command against multiple filesets.
*
Expand Down
2 changes: 0 additions & 2 deletions src/Robo/Commands/Blt/DoctorCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
use Acquia\Blt\Robo\Doctor\ComposerCheck;
use Acquia\Blt\Robo\Doctor\ConfigCheck;
use Acquia\Blt\Robo\Doctor\DbCheck;
use Acquia\Blt\Robo\Doctor\DevDesktopCheck;
use Acquia\Blt\Robo\Doctor\DrupalCheck;
use Acquia\Blt\Robo\Doctor\DrushCheck;
use Acquia\Blt\Robo\Doctor\FileSystemCheck;
Expand Down Expand Up @@ -77,7 +76,6 @@ public function doctorCheck() {
ComposerCheck::class,
ConfigCheck::class,
DbCheck::class,
DevDesktopCheck::class,
DrupalCheck::class,
DrushCheck::class,
FileSystemCheck::class,
Expand Down
27 changes: 0 additions & 27 deletions src/Robo/Commands/Source/LinkPackageCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,33 +65,6 @@ public function linkComposer(array $options = [
->dir($this->getConfigValue('repo.root'))
->run();

// Mount local BLT in DrupalVM.
if ($this->getInspector()->isDrupalVmConfigPresent()) {
$yamlWriter = new YamlWriter($this->getConfigValue('vm.config'));
$vm_config = $yamlWriter->getContents();
switch ($levels) {
case 1:
$destination = '/var/www/' . end($path_parts);
break;

case 2:
$destination = '/var/' . $path_parts[2] . '/' . $path_parts[3];
break;

default:
$destination = '/' . implode('/', $path_parts);
}
$vm_config['vagrant_synced_folders'][] = [
'local_path' => $options['path'],
'destination' => $destination,
'type' => 'nfs',
];
$yamlWriter->write($vm_config);
$this->taskExec('vagrant halt && vagrant up')
->dir($this->getConfigValue('repo.root'))
->run();
}

// Mount local BLT in Lando.
if ($this->getInspector()->isLandoConfigPresent()) {
$yamlWriter = new YamlWriter($this->getConfigValue('repo.root') . '/.lando.yml');
Expand Down
39 changes: 0 additions & 39 deletions src/Robo/Doctor/DevDesktopCheck.php

This file was deleted.

Loading

0 comments on commit a0f6b8d

Please sign in to comment.