Skip to content

Commit 2ae1838

Browse files
committed
cvd: Remove CommandSequenceExecutor
Delete CommandSequenceExecutor entirely, as it is no longer used by any commands. - Deleted command_sequence.cpp and command_sequence.h. - Removed from RequestContext and BUILD.bazel. Assisted-by: Jetski Bug: b/324653441
1 parent 8f0d2ab commit 2ae1838

5 files changed

Lines changed: 1 addition & 144 deletions

File tree

base/cvd/cuttlefish/host/commands/cvd/cli/BUILD.bazel

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,12 @@ cf_cc_library(
5555
cf_cc_library(
5656
name = "nesting_commands",
5757
srcs = [
58-
"command_sequence.cpp",
5958
"request_context.cpp",
6059
"//cuttlefish/host/commands/cvd/cli/commands:create.cpp",
6160
"//cuttlefish/host/commands/cvd/cli/commands:help.cpp",
6261
"//cuttlefish/host/commands/cvd/cli/commands:load_configs.cpp",
6362
],
6463
hdrs = [
65-
"command_sequence.h",
6664
"request_context.h",
6765
"//cuttlefish/host/commands/cvd/cli/commands:create.h",
6866
"//cuttlefish/host/commands/cvd/cli/commands:help.h",

base/cvd/cuttlefish/host/commands/cvd/cli/command_sequence.cpp

Lines changed: 0 additions & 97 deletions
This file was deleted.

base/cvd/cuttlefish/host/commands/cvd/cli/command_sequence.h

Lines changed: 0 additions & 40 deletions
This file was deleted.

base/cvd/cuttlefish/host/commands/cvd/cli/request_context.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
#include <fmt/ranges.h> // NOLINT(misc-include-cleaner): version difference
2424

2525
#include "cuttlefish/host/commands/cvd/cli/command_request.h"
26-
#include "cuttlefish/host/commands/cvd/cli/command_sequence.h"
2726
#include "cuttlefish/host/commands/cvd/cli/commands/bugreport.h"
2827
#include "cuttlefish/host/commands/cvd/cli/commands/cache.h"
2928
#include "cuttlefish/host/commands/cvd/cli/commands/clear.h"
@@ -80,8 +79,7 @@ std::vector<std::string> GetPossibleCommands(
8079
} // namespace
8180

8281
RequestContext::RequestContext(InstanceManager& instance_manager,
83-
InstanceLockFileManager& lock_file_manager)
84-
: command_sequence_executor_(this->request_handlers_) {
82+
InstanceLockFileManager& lock_file_manager) {
8583
request_handlers_.emplace_back(NewCvdCacheCommandHandler());
8684

8785
request_handlers_.emplace_back(NewCvdCreateCommandHandler(instance_manager));

base/cvd/cuttlefish/host/commands/cvd/cli/request_context.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
#include <vector>
2121

2222
#include "cuttlefish/host/commands/cvd/cli/command_request.h"
23-
#include "cuttlefish/host/commands/cvd/cli/command_sequence.h"
2423
#include "cuttlefish/host/commands/cvd/cli/commands/command_handler.h"
2524
#include "cuttlefish/host/commands/cvd/instances/instance_manager.h"
2625
#include "cuttlefish/host/commands/cvd/instances/lock/instance_lock.h"
@@ -36,7 +35,6 @@ class RequestContext {
3635

3736
private:
3837
std::vector<std::unique_ptr<CvdCommandHandler>> request_handlers_;
39-
CommandSequenceExecutor command_sequence_executor_;
4038
};
4139

4240
Result<CvdCommandHandler*> RequestHandler(

0 commit comments

Comments
 (0)