Skip to content

Commit 24ebb5b

Browse files
committed
idl: Remove unused vm_lacks_feature_* errors
Most of these have been unused for almost 10 years since c4ccc56 ("CA-217842: Replace instances of vm_lacks_feature_x with vm_lacks_feature") Drop them. Signed-off-by: Andrii Sultanov <andriy.sultanov@vates.tech>
1 parent ee85085 commit 24ebb5b

File tree

2 files changed

+0
-29
lines changed

2 files changed

+0
-29
lines changed

ocaml/idl/datamodel_errors.ml

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -532,26 +532,6 @@ let _ =
532532
"You attempted an operation on a VM which requires a more recent version \
533533
of the PV drivers. Please upgrade your PV drivers."
534534
() ;
535-
error Api_errors.vm_lacks_feature_shutdown ["vm"]
536-
~doc:
537-
"You attempted an operation which needs the cooperative shutdown feature \
538-
on a VM which lacks it."
539-
() ;
540-
error Api_errors.vm_lacks_feature_vcpu_hotplug ["vm"]
541-
~doc:
542-
"You attempted an operation which needs the VM hotplug-vcpu feature on a \
543-
VM which lacks it."
544-
() ;
545-
error Api_errors.vm_lacks_feature_suspend ["vm"]
546-
~doc:
547-
"You attempted an operation which needs the VM cooperative suspend \
548-
feature on a VM which lacks it."
549-
() ;
550-
error Api_errors.vm_lacks_feature_static_ip_setting ["vm"]
551-
~doc:
552-
"You attempted an operation which needs the VM static-ip-setting feature \
553-
on a VM which lacks it."
554-
() ;
555535
error Api_errors.vm_lacks_feature ["vm"]
556536
~doc:"You attempted an operation on a VM which lacks the feature." () ;
557537
error Api_errors.vm_is_template ["vm"]

ocaml/xapi-consts/api_errors.ml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -440,15 +440,6 @@ let vm_old_pv_drivers = add_error "VM_OLD_PV_DRIVERS"
440440

441441
let vm_lacks_feature = add_error "VM_LACKS_FEATURE"
442442

443-
let vm_lacks_feature_shutdown = add_error "VM_LACKS_FEATURE_SHUTDOWN"
444-
445-
let vm_lacks_feature_suspend = add_error "VM_LACKS_FEATURE_SUSPEND"
446-
447-
let vm_lacks_feature_vcpu_hotplug = add_error "VM_LACKS_FEATURE_VCPU_HOTPLUG"
448-
449-
let vm_lacks_feature_static_ip_setting =
450-
add_error "VM_LACKS_FEATURE_STATIC_IP_SETTING"
451-
452443
let vm_cannot_delete_default_template =
453444
add_error "VM_CANNOT_DELETE_DEFAULT_TEMPLATE"
454445

0 commit comments

Comments
 (0)