| 2821 | |
| 2822 | |
| 2823 | Future<Response> Master::Http::__teardown(const FrameworkID& id) const |
| 2824 | { |
| 2825 | Framework* framework = master->getFramework(id); |
| 2826 | |
| 2827 | if (framework == nullptr) { |
| 2828 | return BadRequest("No framework found with ID " + stringify(id)); |
| 2829 | } |
| 2830 | |
| 2831 | // TODO(ijimenez): Do 'removeFramework' asynchronously. |
| 2832 | master->removeFramework(framework); |
| 2833 | |
| 2834 | return OK(); |
| 2835 | } |
| 2836 | |
| 2837 | |
| 2838 | Future<Response> Master::Http::teardown( |
nothing calls this directly
no test coverage detected