jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1397040 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/nodetype/TypeValidator.java
Date Thu, 11 Oct 2012 13:30:26 GMT
Author: mduerig
Date: Thu Oct 11 13:30:26 2012
New Revision: 1397040

URL: http://svn.apache.org/viewvc?rev=1397040&view=rev
Log:
OAK-350: Unify PropertyState and CoreValue
- Remove unused methods

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/nodetype/TypeValidator.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/nodetype/TypeValidator.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/nodetype/TypeValidator.java?rev=1397040&r1=1397039&r2=1397040&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/nodetype/TypeValidator.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/nodetype/TypeValidator.java
Thu Oct 11 13:30:26 2012
@@ -31,7 +31,6 @@ import javax.jcr.nodetype.PropertyDefini
 import com.google.common.collect.Iterables;
 import com.google.common.collect.Lists;
 import org.apache.jackrabbit.oak.api.CommitFailedException;
-import org.apache.jackrabbit.oak.api.CoreValue;
 import org.apache.jackrabbit.oak.api.PropertyState;
 import org.apache.jackrabbit.oak.api.Tree;
 import org.apache.jackrabbit.oak.core.ReadOnlyTree;
@@ -39,7 +38,6 @@ import org.apache.jackrabbit.oak.namepat
 import org.apache.jackrabbit.oak.spi.commit.Validator;
 import org.apache.jackrabbit.oak.spi.state.NodeState;
 import org.apache.jackrabbit.oak.value.ValueFactoryImpl;
-import org.apache.jackrabbit.oak.value.ValueImpl;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
@@ -346,21 +344,6 @@ class TypeValidator implements Validator
             return false;
         }
 
-        private Value[] jcrValues(List<CoreValue> values) {
-            Value[] jcrValues = new  Value[values.size()];
-
-            int k = 0;
-            for (CoreValue value : values) {
-                jcrValues[k++] = jcrValue(value);
-            }
-
-            return jcrValues;
-        }
-
-        private Value jcrValue(CoreValue value) {
-            return new ValueImpl(value, mapper);
-        }
-
     }
 
 }



Mime
View raw message