mirror of
https://github.com/ml-explore/mlx.git
synced 2025-12-16 01:49:05 +08:00
Remove unused destructor
This commit is contained in:
@@ -189,8 +189,6 @@ CommandEncoder::CommandEncoder(Device& d)
|
|||||||
CHECK_CUDA_ERROR(cudaGraphCreate(&graph_, 0));
|
CHECK_CUDA_ERROR(cudaGraphCreate(&graph_, 0));
|
||||||
}
|
}
|
||||||
|
|
||||||
CommandEncoder::~CommandEncoder() = default;
|
|
||||||
|
|
||||||
void CommandEncoder::add_completed_handler(std::function<void()> task) {
|
void CommandEncoder::add_completed_handler(std::function<void()> task) {
|
||||||
worker_.add_task(std::move(task));
|
worker_.add_task(std::move(task));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,7 +32,6 @@ class CommandEncoder {
|
|||||||
};
|
};
|
||||||
|
|
||||||
explicit CommandEncoder(Device& d);
|
explicit CommandEncoder(Device& d);
|
||||||
~CommandEncoder();
|
|
||||||
|
|
||||||
CommandEncoder(const CommandEncoder&) = delete;
|
CommandEncoder(const CommandEncoder&) = delete;
|
||||||
CommandEncoder& operator=(const CommandEncoder&) = delete;
|
CommandEncoder& operator=(const CommandEncoder&) = delete;
|
||||||
|
|||||||
Reference in New Issue
Block a user