You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2009/05/01 11:15:41 UTC
svn commit: r770594 -
/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/AttributeUtils.java
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