mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/code] Remove TODOs
This commit is contained in:
@@ -47,20 +47,12 @@ ConsoleController::ConsoleController(Responder * parentResponder, App * pythonDe
|
||||
}
|
||||
|
||||
bool ConsoleController::loadPythonEnvironment() {
|
||||
if (m_pythonDelegate->isPythonUser(this)) {
|
||||
return true;
|
||||
if (!m_pythonDelegate->isPythonUser(this)) {
|
||||
emptyOutputAccumulationBuffer();
|
||||
m_pythonDelegate->initPythonWithUser(this);
|
||||
MicroPython::registerScriptProvider(m_scriptStore);
|
||||
m_importScriptsWhenViewAppears = m_autoImportScripts;
|
||||
}
|
||||
emptyOutputAccumulationBuffer();
|
||||
m_pythonDelegate->initPythonWithUser(this);
|
||||
MicroPython::registerScriptProvider(m_scriptStore);
|
||||
m_importScriptsWhenViewAppears = m_autoImportScripts;
|
||||
#if 0
|
||||
//TODO LEA
|
||||
/* We load functions and variables names in the variable box before running
|
||||
* any other python code to avoid failling to load functions and variables
|
||||
* due to memory exhaustion. */
|
||||
App::app()->variableBoxController()->loadFunctionsAndVariables(-1, nullptr, -1);
|
||||
#endif
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -375,6 +375,7 @@ bool VariableBoxController::selectLeaf(int rowIndex) {
|
||||
|
||||
void VariableBoxController::insertTextInCaller(const char * text, int textLength) {
|
||||
int textLen = textLength < 0 ? strlen(text) : textLength;
|
||||
constexpr int k_maxScriptObjectNameSize = 100; // Ad hoc value
|
||||
int commandBufferMaxSize = std::min(k_maxScriptObjectNameSize, textLen + 1);
|
||||
char commandBuffer[k_maxScriptObjectNameSize];
|
||||
Shared::ToolboxHelpers::TextToInsertForCommandText(text, textLen, commandBuffer, commandBufferMaxSize, true);
|
||||
|
||||
@@ -42,7 +42,6 @@ public:
|
||||
|
||||
private:
|
||||
//TODO LEA use size_t
|
||||
constexpr static int k_maxScriptObjectNameSize = 100; //TODO LEA
|
||||
constexpr static int k_maxNumberOfDisplayedRows = 8; // (240 - titlebar - margin)/27 //TODO LEA
|
||||
constexpr static int k_maxScriptNodesCount = 32; //TODO LEA
|
||||
constexpr static int k_totalBuiltinNodesCount = 107;
|
||||
|
||||
Reference in New Issue
Block a user