diff --git a/apps/graph/app.cpp b/apps/graph/app.cpp index 709e9f5ee..33c97a8ff 100644 --- a/apps/graph/app.cpp +++ b/apps/graph/app.cpp @@ -16,18 +16,6 @@ App::App(::Context * context) : m_tabViewController(&m_inputViewController, &m_listStackViewController, &m_graphController, &m_valuesStackViewController), m_inputViewController(this, &m_tabViewController) { - Function * function = m_functionStore.addEmptyFunction(); - function->setContent("(x-1)*(x+1)*x"); - function = m_functionStore.addEmptyFunction(); - function->setContent("x*x"); - function = m_functionStore.addEmptyFunction(); - function->setContent("3"); - function = m_functionStore.addEmptyFunction(); - function->setContent("x*x*x"); - function = m_functionStore.addEmptyFunction(); - function->setContent("1/(1+1/x)"); - function = m_functionStore.addEmptyFunction(); - function->setContent("1/(1+1/(1/x))"); } ViewController * App::rootViewController() { diff --git a/apps/graph/function_store.cpp b/apps/graph/function_store.cpp index c51203d28..ad389d7f1 100644 --- a/apps/graph/function_store.cpp +++ b/apps/graph/function_store.cpp @@ -12,6 +12,7 @@ constexpr const char * FunctionStore::k_functionNames[k_maxNumberOfFunctions]; FunctionStore::FunctionStore() : m_numberOfFunctions(0) { + addEmptyFunction(); } Function * FunctionStore::functionAtIndex(int i) {