Skip to content
Snippets Groups Projects
Commit ac146e54 authored by Vincent Aravantinos's avatar Vincent Aravantinos
Browse files

removes now useless removeMatchingConstraints

refs 2553
parent dd86d68d
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,6 @@ import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.function.Predicate;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.common.util.URI;
......@@ -38,7 +37,7 @@ import org.fortiss.tooling.kernel.utils.LoggingUtils;
* @author aravantinos
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: 60F5E3B05ED9BEB7E58798BAE75D8E22
* @ConQAT.Rating YELLOW Hash: 1E06A3A4ED3DFC3F6DF9D4345FB29D7D
*/
public final class ConstraintVerificationService extends
EObjectAwareServiceBase<IConstraintVerifier<IConstraint>> implements
......@@ -232,11 +231,4 @@ public final class ConstraintVerificationService extends
cwc.setConstrained(constrained);
cwc.setChecksum(computeCheckSum(constrained, constraint));
}
/** {@inheritDoc} */
@Override
public void
removeMatchingConstraints(IConstrained constrained, Predicate<IConstraint> predicate) {
constrained.getConstraints().removeIf(predicate);
}
}
......@@ -2,7 +2,6 @@ package org.fortiss.tooling.kernel.service;
import java.util.List;
import java.util.function.Consumer;
import java.util.function.Predicate;
import org.fortiss.tooling.kernel.internal.ConstraintVerificationService;
import org.fortiss.tooling.kernel.model.constraints.IConstrained;
......@@ -16,7 +15,7 @@ import org.fortiss.tooling.kernel.model.constraints.IConstraintVerificationStatu
* @author aravantinos
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: D2FD355DD119687975B1D58197A4E256
* @ConQAT.Rating YELLOW Hash: 2A9D63384E528F868E36205000DFD107
*/
public interface IConstraintVerificationService {
......@@ -90,13 +89,4 @@ public interface IConstraintVerificationService {
* <code>null</code> till <code>index</code> otherwise.
*/
public void setConstrained(IConstraint constraint, IConstrained constrained, int index);
/**
* @param constrained
* @param predicate
* Removes any constraint matching <code>predicate</code> from
* <code>constrained</code>.
*/
public void
removeMatchingConstraints(IConstrained constrained, Predicate<IConstraint> predicate);
}
......@@ -26,7 +26,7 @@ import org.fortiss.tooling.kernel.model.constraints.IConstrained;
* @author aravantinos
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: 8EDF938A3F4D7945B91139A58153D7C7
* @ConQAT.Rating YELLOW Hash: EB6052B149CC1CD6CCAE56C42A7C3E3D
*/
public class ConstraintsUtils {
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment