From 026391907a44161fcc139859c6042cacfed154d3 Mon Sep 17 00:00:00 2001 From: catborise Date: Sun, 4 Oct 2026 19:41:56 +0300 Subject: [PATCH] chore(computes): remove the unrouted video models view computes.views.get_compute_video_models had no URL and no caller, and ComputeManager.get_video_models was used only by it. The video models of the create page and the VM settings come from wvmConnect directly. --- computes/views.py | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/computes/views.py b/computes/views.py index d7951302..4195bf20 100644 --- a/computes/views.py +++ b/computes/views.py @@ -164,18 +164,6 @@ def get_compute_machine_types(request, compute_id, arch): return HttpResponse(comp_mgr.get_machine_types(arch), content_type="application/json") -def get_compute_video_models(request, compute_id, arch, machine): - """ - :param request: - :param compute_id: - :param arch: - :param machine: - :return: - """ - comp_mgr = ComputeManager(compute_id) - return HttpResponse(comp_mgr.get_video_models(arch, machine), content_type="application/json") - - def get_dom_capabilities(request, compute_id, arch, machine): """ :param request: @@ -198,15 +186,6 @@ class ComputeManager: self.compute.type, ) - def get_video_models(self, arch, machine): - data = dict() - try: - data["videos"] = self.conn.get_video_models(arch, machine) - except libvirtError: - pass - - return json.dumps(data) - def get_dom_capabilities(self, arch, machine): data = dict() try: