Browse Source

Remove Observable.sum from core API;

bjorn 10 years ago
parent
commit
84384f3e57
2 changed files with 0 additions and 18 deletions
  1. 0 11
      doc/README.md
  2. 0 7
      rx.lua

+ 0 - 11
doc/README.md

@@ -34,7 +34,6 @@ RxLua
   - [reject](#rejectpredicate)
   - [reject](#rejectpredicate)
   - [skip](#skipn)
   - [skip](#skipn)
   - [skipUntil](#skipuntilother)
   - [skipUntil](#skipuntilother)
-  - [sum](#sum)
   - [take](#taken)
   - [take](#taken)
   - [takeUntil](#takeuntilother)
   - [takeUntil](#takeuntilother)
   - [unpack](#unpack)
   - [unpack](#unpack)
@@ -451,16 +450,6 @@ Returns:
 
 
 ---
 ---
 
 
-#### `:sum()`
-
-Returns a new Observable that produces the sum of the values of the original Observable as a single result.
-
-Returns:
-
-- `Observable`
-
----
-
 #### `:take(n)`
 #### `:take(n)`
 
 
 Returns a new Observable that only produces the first n results of the original.
 Returns a new Observable that only produces the first n results of the original.

+ 0 - 7
rx.lua

@@ -622,13 +622,6 @@ function Observable:skipUntil(other)
   end)
   end)
 end
 end
 
 
---- Returns a new Observable that produces the sum of the values of the original Observable as a
--- single result.
--- @returns {Observable}
-function Observable:sum()
-  return self:reduce(function(x, y) return x + y end, 0)
-end
-
 --- Returns a new Observable that only produces the first n results of the original.
 --- Returns a new Observable that only produces the first n results of the original.
 -- @arg {number=1} n - The number of elements to produce before completing.
 -- @arg {number=1} n - The number of elements to produce before completing.
 -- @returns {Observable}
 -- @returns {Observable}