]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.db.services/src/org/simantics/db/services/adaption/AdaptionService2.java
Merge branch 'private/db-threads' into private/threads-testing
[simantics/platform.git] / bundles / org.simantics.db.services / src / org / simantics / db / services / adaption / AdaptionService2.java
index 859481727bfe9f701f53cbe462dc5ecb6219b83b..1690505a0b4ba6e0c6c304583e4d447b58f3b6d2 100644 (file)
@@ -39,8 +39,6 @@ import org.simantics.layer0.Layer0;
 import org.simantics.utils.datastructures.Pair;
 
 public class AdaptionService2 implements AdaptionService {
-       
-       int foobaz;
 
     THashMap<Pair<Class<?>,Class<?>>, AdapterDeclaration<?>> adapters =
         new THashMap<Pair<Class<?>,Class<?>>, AdapterDeclaration<?>>();
@@ -589,13 +587,8 @@ public class AdaptionService2 implements AdaptionService {
        if(adapter == null) return null;
        
        BlockingAsyncProcedure<T> ap = new BlockingAsyncProcedure<T>(g, null, adapter);
-       
-//             SyncReadProcedure<T> procedure = new SyncReadProcedure<T>();
        adapter.adapt(g, r, context, ap);
-       
        return ap.get();
-//             procedure.checkAndThrow();
-//             return procedure.result;
        
     }