Shohei Yasutake / Mbed 2 deprecated koibumi2000

Dependencies:   fll mbed-rtos mbed

Revision:
29:2f3d6d09eaac
Parent:
6:d0348b7a2f05
diff -r d0348b7a2f05 -r 2f3d6d09eaac fll.cpp
--- a/fll.cpp	Sat Feb 14 08:02:21 2015 +0000
+++ b/fll.cpp	Sat Feb 14 08:14:07 2015 +0000
@@ -4,50 +4,10 @@
 #include "mbed.h"
 #include "rtos.h"
 #include <stdint.h>
-#include <vector>
 #include "fll.h"
 
 Serial pc(USBTX, USBRX);
 
-// ------
-// RepeaterSource
-// ------
-RepeaterSource::RepeaterSource(button_t *bs, int s)
-{
-    button_seq = bs;
-    size = s;
-    i = 0;
-}
-
-button_t RepeaterSource::await()
-{
-    if(size == 0) {
-        return 0;
-    } else if(size <= i) {
-        i = 0;
-    }
-    return button_seq[i++];
-}
-
-// ----
-// FoldFlow
-// ----
-FoldFlow::FoldFlow(Producer **srcs, int srcs_size) {
-    sources = srcs;
-    sources_size = srcs_size;
-}
-
-button_t FoldFlow::await()
-{
-    button_t *bs = (button_t*) malloc(sizeof(button_t) * sources_size);
-    for (int i = 0; i < sources_size; i++) {
-        bs[i] = sources[i]->await();
-    }
-    button_t b = fold(bs, sources_size);
-    free(bs);
-    return b;
-}
-
 
 // ----
 // Sink