mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/code] Remove unneeded arguments
This commit is contained in:
@@ -55,12 +55,12 @@ int ConsoleStore::numberOfLines() const {
|
||||
return 0;
|
||||
}
|
||||
|
||||
const char * ConsoleStore::pushCommand(const char * text, size_t length) {
|
||||
return push(CurrentSessionCommandMarker, text, length);
|
||||
const char * ConsoleStore::pushCommand(const char * text) {
|
||||
return push(CurrentSessionCommandMarker, text);
|
||||
}
|
||||
|
||||
void ConsoleStore::pushResult(const char * text, size_t length) {
|
||||
push(CurrentSessionResultMarker, text, length);
|
||||
void ConsoleStore::pushResult(const char * text) {
|
||||
push(CurrentSessionResultMarker, text);
|
||||
}
|
||||
|
||||
void ConsoleStore::deleteLastLineIfEmpty() {
|
||||
@@ -91,9 +91,9 @@ int ConsoleStore::deleteCommandAndResultsAtIndex(int index) {
|
||||
return indexOfLineToDelete;
|
||||
}
|
||||
|
||||
const char * ConsoleStore::push(const char marker, const char * text, size_t length) {
|
||||
size_t textLength = length;
|
||||
if (ConsoleLine::sizeOfConsoleLine(length) > k_historySize - 1) {
|
||||
const char * ConsoleStore::push(const char marker, const char * text) {
|
||||
size_t textLength = strlen(text);
|
||||
if (ConsoleLine::sizeOfConsoleLine(textLength) > k_historySize - 1) {
|
||||
textLength = k_historySize - 1 - 1 - 1; // Marker, null termination and null marker.
|
||||
}
|
||||
int i = indexOfNullMarker();
|
||||
|
||||
Reference in New Issue
Block a user