diff --git a/runtime/Go/antlr/v4/common_token_factory.go b/runtime/Go/antlr/v4/common_token_factory.go index 1bb0314ea0..6405c0dc08 100644 --- a/runtime/Go/antlr/v4/common_token_factory.go +++ b/runtime/Go/antlr/v4/common_token_factory.go @@ -47,10 +47,3 @@ func (c *CommonTokenFactory) Create(source *TokenSourceCharStreamPair, ttype int return t } - -func (c *CommonTokenFactory) createThin(ttype int, text string) Token { - t := NewCommonToken(nil, ttype, TokenDefaultChannel, -1, -1) - t.SetText(text) - - return t -} diff --git a/runtime/JavaScript/src/antlr4/CommonTokenFactory.js b/runtime/JavaScript/src/antlr4/CommonTokenFactory.js index 987999c525..b1cae3c379 100644 --- a/runtime/JavaScript/src/antlr4/CommonTokenFactory.js +++ b/runtime/JavaScript/src/antlr4/CommonTokenFactory.js @@ -43,12 +43,6 @@ export default class CommonTokenFactory extends TokenFactory { } return t; } - - createThin(type, text) { - const t = new CommonToken(null, type); - t.text = text; - return t; - } } /** diff --git a/runtime/Python3/src/antlr4/CommonTokenFactory.py b/runtime/Python3/src/antlr4/CommonTokenFactory.py index 0d09ad7859..f4f50edcb7 100644 --- a/runtime/Python3/src/antlr4/CommonTokenFactory.py +++ b/runtime/Python3/src/antlr4/CommonTokenFactory.py @@ -53,9 +53,4 @@ def create(self, source, type:int, text:str, channel:int, start:int, stop:int, l t.text = source[1].getText(start,stop) return t - def createThin(self, type:int, text:str): - t = CommonToken(type=type) - t.text = text - return t - CommonTokenFactory.DEFAULT = CommonTokenFactory()