Just dropping tiny piece of no longer used code.

--
David Kupka
From c493fd213690e10960b805900c62504a63740d43 Mon Sep 17 00:00:00 2001
From: David Kupka <dku...@redhat.com>
Date: Fri, 17 Jun 2016 15:12:29 +0200
Subject: [PATCH] Remove unused locking "context manager"

Class ods_db_lock is unused since August 2015.
---
 daemons/dnssec/ipa-ods-exporter | 13 -------------
 1 file changed, 13 deletions(-)

diff --git a/daemons/dnssec/ipa-ods-exporter b/daemons/dnssec/ipa-ods-exporter
index 02e6b054abdd96dbeef82fc39339f5f6e98685af..9d610021a1fc56f8466e7b30d5dccc59b7c0e88a 100755
--- a/daemons/dnssec/ipa-ods-exporter
+++ b/daemons/dnssec/ipa-ods-exporter
@@ -19,7 +19,6 @@ from binascii import hexlify
 from datetime import datetime
 import dateutil.tz
 import dns.dnssec
-import fcntl
 from krbV import Krb5Error
 import logging
 import os
@@ -200,18 +199,6 @@ def ods2bind_timestamps(key_state, key_type, ods_times):
 
     return bind_times
 
-class ods_db_lock(object):
-    def __enter__(self):
-        self.f = open(ODS_DB_LOCK_PATH, 'w')
-        log.debug('waiting for lock %r', self.f)
-        fcntl.lockf(self.f, fcntl.LOCK_EX)
-        log.debug('acquired lock %r', self.f)
-
-    def __exit__(self, *args):
-        fcntl.lockf(self.f, fcntl.LOCK_UN)
-        log.debug('released lock %r', self.f)
-        self.f.close()
-
 def get_ldap_zone(ldap, dns_base, name):
     zone_names = ["%s." % name, name]
 
-- 
2.5.5

From e2276e08a52f979131a155436a78fad7ee7fc56d Mon Sep 17 00:00:00 2001
From: David Kupka <dku...@redhat.com>
Date: Fri, 17 Jun 2016 15:12:29 +0200
Subject: [PATCH] Remove unused locking "context manager"

Class ods_db_lock is unused since August 2015.
---
 daemons/dnssec/ipa-ods-exporter | 13 -------------
 1 file changed, 13 deletions(-)

diff --git a/daemons/dnssec/ipa-ods-exporter b/daemons/dnssec/ipa-ods-exporter
index 2aa936040c373e366e7e15539ed6e3413aac7d55..385764a6d087f04f5a4efe64cd7be72877f71f1e 100755
--- a/daemons/dnssec/ipa-ods-exporter
+++ b/daemons/dnssec/ipa-ods-exporter
@@ -20,7 +20,6 @@ from binascii import hexlify
 from datetime import datetime
 import dateutil.tz
 import dns.dnssec
-import fcntl
 from gssapi.exceptions import GSSError
 import logging
 import os
@@ -197,18 +196,6 @@ def ods2bind_timestamps(key_state, key_type, ods_times):
 
     return bind_times
 
-class ods_db_lock(object):
-    def __enter__(self):
-        self.f = open(ODS_DB_LOCK_PATH, 'w')
-        log.debug('waiting for lock %r', self.f)
-        fcntl.lockf(self.f, fcntl.LOCK_EX)
-        log.debug('acquired lock %r', self.f)
-
-    def __exit__(self, *args):
-        fcntl.lockf(self.f, fcntl.LOCK_UN)
-        log.debug('released lock %r', self.f)
-        self.f.close()
-
 def get_ldap_zone(ldap, dns_base, name):
     zone_names = ["%s." % name, name]
 
-- 
2.7.4

-- 
Manage your subscription for the Freeipa-devel mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-devel
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code

Reply via email to