Skip to content

Commit

Permalink
Removing unused code and simplifying few dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
JaroslavTulach committed Jun 18, 2023
1 parent 512bb3b commit 1432e13
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 119 deletions.
10 changes: 1 addition & 9 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -506,15 +506,7 @@ lazy val logger = (project in file("lib/scala/logger"))
)

lazy val `syntax-definition` =
(project in file("lib/scala/syntax/definition"))
.dependsOn(logger)
.settings(
scalacOptions ++= Seq("-Ypatmat-exhaust-depth", "off"),
libraryDependencies ++= monocle ++ scalaCompiler ++ Seq(
"org.typelevel" %% "cats-core" % catsVersion,
"org.typelevel" %% "kittens" % kittensVersion
)
)
project in file("lib/scala/syntax/definition")

lazy val syntax = (project in file("lib/scala/syntax/specialization"))
.dependsOn(`syntax-definition`)
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package org.enso.syntax.text

import cats.Monoid

////////////////////////////////////////////////////////////////////////////////
//// AbsolutePosition //////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
Expand All @@ -15,24 +13,3 @@ import cats.Monoid
case class Location(start: Int, end: Int) {
def length: Int = end - start
}

object Location {
implicit val optionSpanMonoid: Monoid[Option[Location]] =
new Monoid[Option[Location]] {
def empty: Option[Location] = None

def combine(
x: Option[Location],
y: Option[Location]
): Option[Location] =
x match {
case None => y
case Some(lSpan @ Location(lStart, _)) =>
y match {
case None => Some(lSpan)
case Some(Location(_, rEnd)) =>
Some(Location(lStart, rEnd))
}
}
}
}

0 comments on commit 1432e13

Please sign in to comment.