Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused code #4421

Merged
merged 3 commits into from
Nov 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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