From 539403fd36892c03fbe8b1e5165f8c81b6db7705 Mon Sep 17 00:00:00 2001 From: Gleb Koval Date: Wed, 5 Feb 2025 04:49:05 +0000 Subject: [PATCH] fix: remove unused applyCon from AST --- src/main/wacc/ast.scala | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/main/wacc/ast.scala b/src/main/wacc/ast.scala index e4a9128..0076006 100644 --- a/src/main/wacc/ast.scala +++ b/src/main/wacc/ast.scala @@ -183,13 +183,6 @@ object ast { // Parser bridges case class Position(line: Int, column: Int, offset: Int) - private def applyCon[A, B]( - con: ((Int, Int), Int, Int) => A => B - )(ops: => Parsley[A]): Parsley[B] = - (pos, offset, withWidth(ops)).zipped.map { (pos, off, res) => - con(pos, off, res._2)(res._1) - } - trait ParserSingletonBridgePos[+A] extends ErrorBridge { protected def con(pos: (Int, Int), offset: Int): A infix def from(op: Parsley[?]): Parsley[A] = error((pos, offset).zipped(con) <~ op)