Skip to content

Commit

Permalink
chore: Remove unused imports from TWIRL templates and silence false p…
Browse files Browse the repository at this point in the history
…ositives (#3351)
  • Loading branch information
mpro7 authored Sep 2, 2024
1 parent 61e65b8 commit 34f6ce8
Show file tree
Hide file tree
Showing 20 changed files with 1 addition and 25 deletions.
1 change: 1 addition & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ val customScalacOptions = Seq(
"-unchecked",
"-deprecation",
"-Yresolve-term-conflict:package",
"-Wconf:src=target/.*:s", // silence TWIRL templates unused imports warnings
"-Wunused:imports",
"-Wunused:privates",
"-Wunused:locals",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
*@

@import org.knora.webapi._
@import org.knora.webapi.messages.SmartIri

@*
* Constructs a Gravsearch query that returns all the knora-api:StillImageRepresentation resources
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
*@

@import org.knora.webapi.IRI
@import org.knora.webapi.messages.store.triplestoremessages.StringLiteralV2

@**
* Changes the parent node of an existing node.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
* SPDX-License-Identifier: Apache-2.0
*@

@import org.knora.webapi.IRI

@**
* Checks if a list node exists.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
*@

@import org.knora.webapi.IRI
@import org.knora.webapi.messages.store.triplestoremessages.StringLiteralV2

@**
* Delete a node (root or child). If a child node is deleted, remove it from the list of its parent's sublist nodes.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
*@

@import org.knora.webapi.IRI
@import org.knora.webapi.messages.store.triplestoremessages.StringLiteralV2

@**
* Delete an existing permission.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
* SPDX-License-Identifier: Apache-2.0
*@

@import org.knora.webapi.IRI

@**
* Given a knora:base:internalFilename, retrieves the file value and information
* attached to it using SPARQL w/o inference.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
*@

@import org.knora.webapi.IRI
@import org.knora.webapi.messages.util.KnoraSystemInstances

@**
* Gets the project an entity (resource or value) is attached to.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
*@

@import org.knora.webapi.IRI
@import org.knora.webapi.messages.store.triplestoremessages.StringLiteralV2

@**
* Updates an existing node's position.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
*@

@import org.knora.webapi.IRI
@import org.knora.webapi.messages.store.triplestoremessages.StringLiteralV2

@**
* Updates an existing permission's properties.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
* SPDX-License-Identifier: Apache-2.0
*@

@import dsp.errors.SparqlGenerationException
@import org.knora.webapi.messages.SmartIri
@import org.knora.webapi.messages.store.triplestoremessages.StringLiteralV2
@import java.time.Instant

@*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
@import org.knora.webapi._
@import org.knora.webapi.messages.SmartIri
@import org.knora.webapi.messages.v2.responder.ontologymessages._
@import org.knora.webapi.messages.StringFormatter
@import org.knora.webapi.messages.store.triplestoremessages._
@import java.time.Instant

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

@import org.knora.webapi._
@import org.knora.webapi.messages.SmartIri
@import org.knora.webapi.messages.v2.responder.ontologymessages._
@import java.time.Instant

@*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

@import org.knora.webapi._
@import org.knora.webapi.messages.SmartIri
@import org.knora.webapi.messages.v2.responder.ontologymessages._
@import java.time.Instant

@*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
*@

@import java.time.Instant
@import java.util.UUID
@import dsp.valueobjects.UuidUtil
@import org.knora.webapi._
@import dsp.errors.SparqlGenerationException
@import org.knora.webapi.messages.SmartIri
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
* SPDX-License-Identifier: Apache-2.0
*@

@import java.time.Instant
@import org.knora.webapi._

@**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
* SPDX-License-Identifier: Apache-2.0
*@

@import org.knora.webapi.IRI

@*
* Gets the predicates and objects of an ontology IRI.
*@
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
*@

@import org.knora.webapi._
@import org.knora.webapi.messages.SmartIri

@*
* Constructs a prequery that gets all resources from the specified project
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
@import java.util.UUID
@import dsp.valueobjects.UuidUtil
@import org.knora.webapi.IRI
@import dsp.errors.SparqlGenerationException
@import org.knora.webapi.messages.SmartIri

@*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
* SPDX-License-Identifier: Apache-2.0
*@

@import org.knora.webapi.messages.SmartIri

@*
* Checks whether an entity is used (i.e. is the object of any statements).
*
Expand Down

0 comments on commit 34f6ce8

Please sign in to comment.