[shared] Clean unused classes

This commit is contained in:
Émilie Feral
2019-03-11 17:19:06 +01:00
parent 15a4072fdc
commit ad8fea46c3
39 changed files with 5 additions and 2600 deletions

View File

@@ -1,57 +0,0 @@
#include "values_function_parameter_controller.h"
#include <assert.h>
namespace Shared {
ValuesFunctionParameterController::ValuesFunctionParameterController(char symbol) :
ViewController(nullptr),
m_copyColumn(I18n::Message::CopyColumnInList),
m_selectableTableView(this, this, this),
m_function(nullptr),
m_symbol(symbol)
{
}
const char * ValuesFunctionParameterController::title() {
strlcpy(m_pageTitle, I18n::translate(I18n::Message::FunctionColumn), k_maxNumberOfCharsInTitle);
char * parenthesis = const_cast<char *>(UTF8Helper::CodePointSearch(m_pageTitle, '('));
if (UTF8Helper::CodePointIs(parenthesis, '(') && parenthesis > m_pageTitle && parenthesis < m_pageTitle + k_maxNumberOfCharsInTitle) {
*(m_pageTitle - 1) = *m_function->name();
*(m_pageTitle + 1) = m_symbol;
}
return m_pageTitle;
}
View * ValuesFunctionParameterController::view() {
return &m_selectableTableView;
}
void ValuesFunctionParameterController::setFunction(Function * function) {
m_function = function;
}
void ValuesFunctionParameterController::didBecomeFirstResponder() {
m_selectableTableView.reloadData();
selectCellAtLocation(0, 0);
app()->setFirstResponder(&m_selectableTableView);
}
int ValuesFunctionParameterController::numberOfRows() {
return 1;
};
HighlightCell * ValuesFunctionParameterController::reusableCell(int index) {
assert(index == 0);
return &m_copyColumn;
}
int ValuesFunctionParameterController::reusableCellCount() {
return 1;
}
KDCoordinate ValuesFunctionParameterController::cellHeight() {
return Metric::ParameterCellHeight;
}
}