aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/lex/rust-token.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/rust/lex/rust-token.h')
-rw-r--r--gcc/rust/lex/rust-token.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/gcc/rust/lex/rust-token.h b/gcc/rust/lex/rust-token.h
index fab736a..6070244 100644
--- a/gcc/rust/lex/rust-token.h
+++ b/gcc/rust/lex/rust-token.h
@@ -318,13 +318,6 @@ public:
}
// Makes and returns a new TokenPtr of type INT_LITERAL.
- /*static TokenPtr make_int (Location locus, const std::string &str)
- {
- //return TokenPtr (new Token (INT_LITERAL, locus, str));
- return std::make_shared<Token>(INT_LITERAL, locus, str);
- }*/
-
- // Makes and returns a new TokenPtr of type INT_LITERAL.
static TokenPtr make_int (Location locus, const std::string &str,
PrimitiveCoreType type_hint = CORETYPE_UNKNOWN)
{
@@ -333,13 +326,6 @@ public:
}
// Makes and returns a new TokenPtr of type FLOAT_LITERAL.
- /*static TokenPtr make_float (Location locus, const std::string &str)
- {
- return TokenPtr (new Token (FLOAT_LITERAL, locus, str));
- return std::make_shared<Token>(FLOAT_LITERAL, locus, str);
- }*/
-
- // Makes and returns a new TokenPtr of type FLOAT_LITERAL.
static TokenPtr make_float (Location locus, const std::string &str,
PrimitiveCoreType type_hint = CORETYPE_UNKNOWN)
{