]> gerrit.simantics Code Review - simantics/3d.git/commitdiff
git-svn-id: https://www.simantics.org/svn/simantics/3d/branches/dev@7969 ac1ea38d...
authorluukkainen <luukkainen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Tue, 25 Nov 2008 08:24:39 +0000 (08:24 +0000)
committerluukkainen <luukkainen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Tue, 25 Nov 2008 08:24:39 +0000 (08:24 +0000)
org.simantics.proconf.g3d/src/org/simantics/proconf/g3d/base/ScenegraphAdapterImpl.java

index eb243735d45826d9f3d8057815f78e9fb894592e..c7ba95dbc80bca818789d4abe98dbefd9922b8e6 100644 (file)
@@ -17,7 +17,6 @@ import java.util.HashSet;
 import java.util.List;\r
 import java.util.Queue;\r
 import java.util.Set;\r
-import java.util.Stack;\r
 import java.util.concurrent.ConcurrentLinkedQueue;\r
 \r
 import org.simantics.db.AbstractQuery;\r
@@ -473,14 +472,10 @@ public abstract class ScenegraphAdapterImpl implements ScenegraphAdapter {
     public abstract class NodeQuery extends AbstractQuery<Object>{\r
         protected Resource nodeResource;\r
         private boolean disposed = false;\r
-        private IQueryListener listener;\r
-        //private OverridingTransactionRunner runner;\r
         \r
        \r
        public NodeQuery(Resource r) {\r
                this.nodeResource = r;\r
-               //runner = new OverridingTransactionRunner(session,true);\r
-               \r
        }\r
        \r
        protected abstract Object compute2(Graph graph);\r
@@ -508,7 +503,6 @@ public abstract class ScenegraphAdapterImpl implements ScenegraphAdapter {
                if (disposed)\r
                        throw new RuntimeException("Updating disposed query"); //return;\r
                transactionRunner.run(new GraphRequestAdapter() {\r
-               //session.asyncWrite(new GraphRequestAdapter() {\r
                        @Override\r
                        public GraphRequestStatus perform(Graph g) throws Exception {\r
                                if (!disposed) {\r
@@ -543,32 +537,10 @@ public abstract class ScenegraphAdapterImpl implements ScenegraphAdapter {
                if (DEBUG) System.out.println("NodeQuery " +  nodeResource +  " disposed()" + " " + this.getClass());\r
        }\r
        \r
-       //public abstract NodeQuery instantiateQuery(Resource node);\r
-       //public abstract void attach();\r
-       \r
         @Override\r
         public boolean isDisposed() {\r
             return disposed;\r
         }\r
-        \r
-        @Override\r
-        public IQueryListener getListener() {\r
-               if (listener == null) {\r
-                       listener = new IQueryListener() {\r
-                               @Override\r
-                               public boolean isDisposed() {\r
-                                       return NodeQuery.this.disposed;\r
-                               }\r
-                               \r
-                               @Override\r
-                               public void resultChangedRaw(Object oldResult, Object newResult) {\r
-                                       NodeQuery.this.resultChangedRaw(oldResult, newResult);\r
-                               }\r
-                       };\r
-               }\r
-               return listener;\r
-        }\r
-       \r
     }\r
     \r
     /**\r