python/semanage: Remove redundant and broken moduleRecords.modify()

moduleRecords.modify() calls nonexistent function
semanage_module_update_file (maybe it should have been
semanage_module_upgrade_file which is now obsolete and calls
semanage_module_install_file) and the job of updating a module is done
by moduleRecords.add().

Signed-off-by: Vit Mojzis <vmojzis@redhat.com>
This commit is contained in:
Vit Mojzis 2018-01-11 18:44:27 +01:00 committed by Stephen Smalley
parent 653b393f42
commit 2f26c1db5d
1 changed files with 0 additions and 5 deletions

View File

@ -426,11 +426,6 @@ class moduleRecords(semanageRecords):
raise ValueError(_("Could not disable module %s") % m)
self.commit()
def modify(self, file):
rc = semanage_module_update_file(self.sh, file)
if rc >= 0:
self.commit()
def delete(self, module, priority):
rc = semanage_set_default_priority(self.sh, priority)
if rc < 0: