usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snoopd...@apache.org
Subject [32/50] [abbrv] git commit: Remove unnecessary method
Date Mon, 07 Jul 2014 18:16:49 GMT
Remove unnecessary method


Project: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/commit/94c9a1ee
Tree: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/tree/94c9a1ee
Diff: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/diff/94c9a1ee

Branch: refs/heads/two-dot-o
Commit: 94c9a1ee3ea63661da52e9f65f074ed3b232542c
Parents: a735c5f
Author: Furkan Bicak <bicak.cs@safehaus.org>
Authored: Sat Jun 28 19:59:51 2014 +0300
Committer: Furkan Bicak <bicak.cs@safehaus.org>
Committed: Sat Jun 28 19:59:51 2014 +0300

----------------------------------------------------------------------
 .../coordinator/rest/TestableResource.java      | 38 --------------------
 1 file changed, 38 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/94c9a1ee/chop/webapp/src/main/java/org/apache/usergrid/chop/webapp/coordinator/rest/TestableResource.java
----------------------------------------------------------------------
diff --git a/chop/webapp/src/main/java/org/apache/usergrid/chop/webapp/coordinator/rest/TestableResource.java
b/chop/webapp/src/main/java/org/apache/usergrid/chop/webapp/coordinator/rest/TestableResource.java
index ccac1c3..1592122 100644
--- a/chop/webapp/src/main/java/org/apache/usergrid/chop/webapp/coordinator/rest/TestableResource.java
+++ b/chop/webapp/src/main/java/org/apache/usergrid/chop/webapp/coordinator/rest/TestableResource.java
@@ -65,42 +65,4 @@ public abstract class TestableResource {
         return testMode != null &&
                 (testMode.equals(TestMode.INTEG.toString()) || testMode.equals(TestMode.UNIT.toString()));
     }
-
-    public CoordinatedStack getCoordinatedStack( CommitDao commitDao, ModuleDao moduleDao,
UserDao userDao,
-                                                  StackCoordinator stackCoordinator, String
artifactId,
-                                                  String commitId, String md5, String username,
-                                                  String groupId, String version, String
vcsRepoUrl,
-                                                  String testPackage, File runnerJar )
-            throws IOException {
-        Commit commit = null;
-        Module module = null;
-
-        List<Commit> commits = commitDao.getByModule( artifactId );
-        for ( Commit returnedCommit : commits ) {
-            Module commitModule = moduleDao.get( returnedCommit.getModuleId() );
-            if ( commitModule.getArtifactId().equals( artifactId ) &&
-                    commitModule.getGroupId().equals( groupId ) &&
-                    commitModule.getVersion().equals( version ) )
-            {
-                commit = returnedCommit;
-                module = commitModule;
-            }
-        }
-
-        if ( module == null ) {
-            module = new BasicModule( groupId, artifactId, version, vcsRepoUrl, testPackage
);
-            moduleDao.save( module );
-        }
-
-        if ( commit == null ) {
-            commit = new BasicCommit( commitId, module.getId(), md5, new Date(), runnerJar.getAbsolutePath()
);
-            commitDao.save( commit );
-        }
-
-        // Send DEPLOY signal to coordinatedStack
-        Stack stack = CoordinatorUtils.getStackFromRunnerJar( runnerJar );
-        User chopUser = userDao.get( username );
-        CoordinatedStack coordinatedStack =  stackCoordinator.getCoordinatedStack( stack,
chopUser, commit, module );
-        return coordinatedStack;
-    }
 }


Mime
View raw message