Remove SD card statuc handler in ReceiverView.

Wasn't doing anything useful, and probably won't.
This commit is contained in:
Jared Boone 2015-12-01 21:27:14 -08:00
parent e9bf500bfc
commit eb10532931
2 changed files with 0 additions and 25 deletions

View File

@ -29,7 +29,6 @@ using namespace portapack;
#include "ais_baseband.hpp"
#include "sd_card.hpp"
#include "ff.h"
namespace ui {
@ -498,16 +497,6 @@ ReceiverView::~ReceiverView() {
receiver_model.disable();
}
void ReceiverView::on_show() {
sd_card_status_signal_token = sd_card::status_signal += [this](const sd_card::Status status) {
this->on_sd_card_status(status);
};
}
void ReceiverView::on_hide() {
sd_card::status_signal -= sd_card_status_signal_token;
}
class ManchesterDecoder {
public:
struct DecodedSymbol {
@ -832,14 +821,6 @@ private:
SpectrumAnalysisModel model;
};
void ReceiverView::on_sd_card_status(const sd_card::Status status) {
if( status == sd_card::Status::Mounted ) {
// TODO: Something?
} else {
// TODO: Indicate unmounted.
}
}
void ReceiverView::focus() {
button_done.focus();
}

View File

@ -364,9 +364,6 @@ public:
void focus() override;
void on_show() override;
void on_hide() override;
private:
ReceiverModel& receiver_model;
@ -476,9 +473,6 @@ private:
void on_packet_ais(const AISPacketMessage& message);
void on_packet_tpms(const TPMSPacketMessage& message);
void on_packet_ert(const ERTPacketMessage& message);
void on_sd_card_status(const sd_card::Status status);
SignalToken sd_card_status_signal_token;
};
} /* namespace ui */