[apps/code] Inline code in console_store

This commit is contained in:
Léa Saviot
2019-01-04 16:53:47 +01:00
parent e2ac56abc6
commit 2d4d92090c
2 changed files with 3 additions and 13 deletions

View File

@@ -1,21 +1,10 @@
#include "console_store.h"
#include <assert.h>
#include <string.h>
namespace Code {
static inline int min(int x, int y) { return (x<y ? x : y); }
ConsoleStore::ConsoleStore() :
m_history{0}
{
}
void ConsoleStore::clear() {
assert(k_historySize > 0);
m_history[0] = 0;
}
void ConsoleStore::startNewSession() {
if (k_historySize < 1) {
return;