directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r770594 - /directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/AttributeUtils.java
Date Fri, 01 May 2009 09:15:41 GMT
Author: elecharny
Date: Fri May  1 09:15:38 2009
New Revision: 770594

URL: http://svn.apache.org/viewvc?rev=770594&view=rev
Log:
Removed a useless method

Modified:
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/AttributeUtils.java

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/AttributeUtils.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/AttributeUtils.java?rev=770594&r1=770593&r2=770594&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/AttributeUtils.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/AttributeUtils.java
Fri May  1 09:15:38 2009
@@ -1217,35 +1217,6 @@
 
 
     /**
-     * Converts an {@link Entry} to an {@link Attributes}.
-     *
-     * @param entry
-     *      the {@link Entry} to convert
-     * @return
-     *      the equivalent {@link Attributes}
-     */
-    public static Attributes toAttributes( Entry entry )
-    {
-        if ( entry != null )
-        {
-            Attributes attributes = new BasicAttributes();
-
-            // Looping on attributes
-            for ( Iterator<EntryAttribute> attributeIterator = entry.iterator(); attributeIterator.hasNext();
)
-            {
-                EntryAttribute entryAttribute = ( EntryAttribute ) attributeIterator.next();
-
-                attributes.put( toAttribute( entryAttribute ) );
-            }
-
-            return attributes;
-        }
-
-        return null;
-    }
-
-
-    /**
      * Converts an {@link EntryAttribute} to an {@link Attribute}.
      *
      * @param entryAttribute



Mime
View raw message