Remove unused code by bitfury driver since current driver uses serialised scanhash.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
diff --git a/driver-bitfury.c b/driver-bitfury.c
index d56b80b..7559d7e 100644
--- a/driver-bitfury.c
+++ b/driver-bitfury.c
@@ -121,16 +121,6 @@ static void bitfury_detect(void)
usb_detect(&bitfury_drv, bitfury_detect_one);
}
-static bool bitfury_prepare(struct thr_info __maybe_unused *thr)
-{
- return true;
-}
-
-static bool bitfury_fill(struct cgpu_info __maybe_unused *bitfury)
-{
- return true;
-}
-
static uint32_t decnonce(uint32_t in)
{
uint32_t out;
@@ -171,26 +161,6 @@ static bool bitfury_checkresults(struct thr_info *thr, struct work *work, uint32
submit_nonce(thr, work, nonceoff);
return true;
}
-#if 0
- nonceoff = nonce + 0x2800000u;
- if (test_nonce(work, nonceoff)) {
- applog(LOG_ERR, "0x2800000");
- submit_nonce(thr, work, nonceoff);
- return true;
- }
- nonceoff = nonce + 0x2C00000u;
- if (test_nonce(work, nonceoff)) {
- applog(LOG_ERR, "0x2C00000");
- submit_nonce(thr, work, nonceoff);
- return true;
- }
- nonceoff = nonce + 0x400000u;
- if (test_nonce(work, nonceoff)) {
- applog(LOG_ERR, "0x400000");
- submit_nonce(thr, work, nonceoff);
- return true;
- }
-#endif
return false;
}
@@ -262,20 +232,11 @@ cascade:
return 0;
}
-static void bitfury_flush_work(struct cgpu_info __maybe_unused *bitfury)
-{
-}
-
static struct api_data *bitfury_api_stats(struct cgpu_info __maybe_unused *cgpu)
{
return NULL;
}
-static void get_bitfury_statline_before(char __maybe_unused *buf, size_t __maybe_unused bufsiz,
- struct cgpu_info __maybe_unused *bitfury)
-{
-}
-
static void bitfury_init(struct cgpu_info __maybe_unused *bitfury)
{
}
@@ -294,10 +255,7 @@ struct device_drv bitfury_drv = {
.name = "BFO",
.drv_detect = bitfury_detect,
.scanhash = bitfury_scanhash,
- .flush_work = bitfury_flush_work,
.get_api_stats = bitfury_api_stats,
- .thread_prepare = bitfury_prepare,
- .get_statline_before = get_bitfury_statline_before,
.reinit_device = bitfury_init,
.thread_shutdown = bitfury_shutdown,
.identify_device = bitfury_identify