diff --git a/apps/sequence/sequence.cpp b/apps/sequence/sequence.cpp index b9f77327a..3f0a86a29 100644 --- a/apps/sequence/sequence.cpp +++ b/apps/sequence/sequence.cpp @@ -126,7 +126,7 @@ T Sequence::approximateToNextRank(int n, SequenceContext * sqctx) const { constexpr int bufferSize = CodePoint::MaxCodePointCharLength + 1; char unknownN[bufferSize]; - Poincare::SerializationHelper::CodePoint(unknownN, bufferSize, UCodePointUnknownN); + Poincare::SerializationHelper::CodePoint(unknownN, bufferSize, UCodePointUnknownX); CacheContext ctx = CacheContext(sqctx); // Hold values u(n), u(n-1), u(n-2), v(n), v(n-1), v(n-2)... diff --git a/apps/sequence/sequence.h b/apps/sequence/sequence.h index 7a904dd9a..db28a2db6 100644 --- a/apps/sequence/sequence.h +++ b/apps/sequence/sequence.h @@ -27,7 +27,7 @@ public: Function(record), m_nameLayout() {} CodePoint symbol() const override { return 'n'; } - CodePoint unknownSymbol() const override { return UCodePointUnknownN; } + CodePoint unknownSymbol() const override { return UCodePointUnknownX; } void tidy() override; // MetaData getters Type type() const; diff --git a/ion/include/ion/unicode/code_point.h b/ion/include/ion/unicode/code_point.h index a736160d0..b60b800e8 100644 --- a/ion/include/ion/unicode/code_point.h +++ b/ion/include/ion/unicode/code_point.h @@ -21,7 +21,6 @@ static constexpr CodePoint UCodePointNull = 0x0; /* 0x1 and 0x2 represent soh and stx. They are not used, so we can use them for * another purpose */ static constexpr CodePoint UCodePointUnknownX = 0x1; -static constexpr CodePoint UCodePointUnknownN = 0x2; static constexpr CodePoint UCodePointTabulation = 0x9; static constexpr CodePoint UCodePointLineFeed = 0xa; diff --git a/poincare/include/poincare/symbol.h b/poincare/include/poincare/symbol.h index 0678ec726..5d6e5e290 100644 --- a/poincare/include/poincare/symbol.h +++ b/poincare/include/poincare/symbol.h @@ -62,7 +62,7 @@ public: static Symbol Ans() { return Symbol::Builder(k_ans, k_ansLength); } // Symbol properties - bool isSystemSymbol() const { return node()->isUnknown(UCodePointUnknownX) || node()->isUnknown(UCodePointUnknownN); } + bool isSystemSymbol() const { return node()->isUnknown(UCodePointUnknownX); } const char * name() const { return node()->name(); } static bool isSeriesSymbol(const char * c); static bool isRegressionSymbol(const char * c); diff --git a/poincare/src/symbol.cpp b/poincare/src/symbol.cpp index 020c7e108..4f3e18856 100644 --- a/poincare/src/symbol.cpp +++ b/poincare/src/symbol.cpp @@ -75,7 +75,7 @@ float SymbolNode::characteristicXRange(Context * context, Preferences::AngleUnit } Layout SymbolNode::createLayout(Preferences::PrintFloatMode floatDisplayMode, int numberOfSignificantDigits) const { - assert(!isUnknown(UCodePointUnknownX) && !isUnknown(UCodePointUnknownN)); + assert(!isUnknown(UCodePointUnknownX)); // TODO return Parse(m_name).createLayout() ? // Special case for the symbol names: u(n), u(n+1), v(n), v(n+1), w(n), w(n+1) const char * sequenceIndex[] = {"n", "n+1"};