ss: Replace AttributeNotFoundException with IOOBE for quark parameters
[deliverable/tracecompass.git] / tmf / org.eclipse.tracecompass.tmf.core / src / org / eclipse / tracecompass / tmf / core / statesystem / TmfAttributePool.java
index 309a41ff868af2dba7ba50e6e9d358d87acba778..ebc7ed76b0634d0ea42b54acdb580a8fde352d8d 100644 (file)
@@ -16,9 +16,7 @@ import java.util.Set;
 import java.util.TreeSet;
 
 import org.eclipse.jdt.annotation.Nullable;
-import org.eclipse.tracecompass.internal.tmf.core.Activator;
 import org.eclipse.tracecompass.statesystem.core.ITmfStateSystemBuilder;
-import org.eclipse.tracecompass.statesystem.core.exceptions.AttributeNotFoundException;
 
 /**
  * This class allows to recycle state system attributes. Instead of creating a
@@ -137,11 +135,7 @@ public class TmfAttributePool {
         if (!fQuarksInUse.remove(quark)) {
             throw new IllegalArgumentException();
         }
-        try {
-            fSs.removeAttribute(ts, quark);
-        } catch (AttributeNotFoundException e) {
-            Activator.logError("Error getting sub-attributes", e); //$NON-NLS-1$
-        }
+        fSs.removeAttribute(ts, quark);
         fAvailableQuarks.add(quark);
     }
 
This page took 0.024818 seconds and 5 git commands to generate.