Repository: spark
Updated Branches:
  refs/heads/master 7c61c2a1c -> cca868004


delete useless var “j”

the var “j” defined in "var j = 0" is useless for “def compress”

Author: Souljoy Zhuo <zhuoshou...@126.com>

Closes #16676 from xiaoyesoso/patch-1.


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/cca86800
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/cca86800
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/cca86800

Branch: refs/heads/master
Commit: cca8680047bb2ec312ffc296a561abd5cbc8323c
Parents: 7c61c2a
Author: Souljoy Zhuo <zhuoshou...@126.com>
Authored: Tue Jan 24 11:33:17 2017 +0000
Committer: Sean Owen <so...@cloudera.com>
Committed: Tue Jan 24 11:33:17 2017 +0000

----------------------------------------------------------------------
 mllib/src/main/scala/org/apache/spark/ml/recommendation/ALS.scala | 2 --
 1 file changed, 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/cca86800/mllib/src/main/scala/org/apache/spark/ml/recommendation/ALS.scala
----------------------------------------------------------------------
diff --git a/mllib/src/main/scala/org/apache/spark/ml/recommendation/ALS.scala 
b/mllib/src/main/scala/org/apache/spark/ml/recommendation/ALS.scala
index 995780b..97c8655 100644
--- a/mllib/src/main/scala/org/apache/spark/ml/recommendation/ALS.scala
+++ b/mllib/src/main/scala/org/apache/spark/ml/recommendation/ALS.scala
@@ -1038,14 +1038,12 @@ object ALS extends DefaultParamsReadable[ALS] with 
Logging {
       uniqueSrcIdsBuilder += preSrcId
       var curCount = 1
       var i = 1
-      var j = 0
       while (i < sz) {
         val srcId = srcIds(i)
         if (srcId != preSrcId) {
           uniqueSrcIdsBuilder += srcId
           dstCountsBuilder += curCount
           preSrcId = srcId
-          j += 1
           curCount = 0
         }
         curCount += 1


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org
For additional commands, e-mail: commits-h...@spark.apache.org

Reply via email to