Honza's recent LDAP refactoring left some unused helper functions around. This patch removes them.

--
PetrĀ³
From 1c3afda399eb5af6c7d87b0687c677e6e1bf6138 Mon Sep 17 00:00:00 2001
From: Petr Viktorin <pvikt...@redhat.com>
Date: Wed, 23 Jan 2013 04:34:14 -0500
Subject: [PATCH] Remove unused utf8_encode_value functions

The utf8_encode_value/_values functions from ipautil are no longer used.
Remove them.
---
 ipapython/ipautil.py | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/ipapython/ipautil.py b/ipapython/ipautil.py
index 13d242792273321cd9efc7c25b4b02b097b0c5ca..fb07f0612713bdc61f8cf3b4d016fb14898aff6c 100644
--- a/ipapython/ipautil.py
+++ b/ipapython/ipautil.py
@@ -1112,18 +1112,6 @@ def backup_config_and_replace_variables(
     return old_values
 
 
-def utf8_encode_value(value):
-    if isinstance(value, unicode):
-        return value.encode('utf-8')
-    return value
-
-
-def utf8_encode_values(values):
-    if isinstance(values, list) or isinstance(values, tuple):
-        return map(utf8_encode_value, values)
-    else:
-        return utf8_encode_value(values)
-
 def wait_for_open_ports(host, ports, timeout=0):
     """
     Wait until the specified port(s) on the remote host are open. Timeout
-- 
1.8.3.1

_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to