Skip to content
This repository was archived by the owner on Aug 17, 2019. It is now read-only.

Commit 2158a36

Browse files
committed
Remove unused parameter
1 parent 0b5e2b8 commit 2158a36

5 files changed

+9
-9
lines changed

src/main/scala/com/ckkloverdos/resource/ClassLoaderStreamResourceContext.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ final class ClassLoaderStreamResourceContext private(
3636

3737
def /(child: String) = new ClassLoaderStreamResourceContext(cl, parent, concatResourcePaths(this.extraPath, child))
3838

39-
def getLocalResource(path: String, normalized: Boolean = true) = {
39+
def getLocalResource(path: String) = {
4040
val actualPath = concatResourcePaths(extraPath, path)
4141
logger.debug("Searching for local resource %s (actual: %s) in %s".format(path, actualPath, this))
4242
cl.getResource(actualPath) match {

src/main/scala/com/ckkloverdos/resource/CompositeStreamResourceContext.scala

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ final class CompositeStreamResourceContext(
3030

3131
def /(child: String) = new CompositeStreamResourceContext(parent, others.map(_./(child)): _*)
3232

33-
def getLocalResource(path: String, normalized: Boolean = true): Maybe[StreamResource] =
34-
others find { rc => rc.getResource(path, normalized).isJust } map { _.getResource(path, normalized) } getOrElse NoVal
33+
def getLocalResource(path: String): Maybe[StreamResource] =
34+
others find { rc => rc.getResource(path).isJust } map { _.getResource(path) } getOrElse NoVal
3535

3636
override def toString = "CompositeStreamResourceContext(%s, %s)".format(parent, others)
3737
}

src/main/scala/com/ckkloverdos/resource/FileStreamResourceContext.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ final class FileStreamResourceContext(
5050

5151
def /(child: String) = new FileStreamResourceContext(new File(this.root, child), parent.map(_./(child)))
5252

53-
def getLocalResource(path: String, normalized: Boolean = true) = {
53+
def getLocalResource(path: String) = {
5454
new File(root, path) match {
5555
case file if file.exists => Maybe(new FileStreamResource(file))
5656
case _ => NoVal

src/main/scala/com/ckkloverdos/resource/StreamResourceContext.scala

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ trait StreamResourceContext {
2929

3030
def parent: Maybe[StreamResourceContext]
3131

32-
def getResource(path: String, normalized: Boolean = true): Maybe[StreamResource]
32+
def getResource(path: String): Maybe[StreamResource]
3333

34-
def getLocalResource(path: String, normalized: Boolean = true): Maybe[StreamResource]
34+
def getLocalResource(path: String): Maybe[StreamResource]
3535
}
3636

3737
object StreamResourceContext {

src/main/scala/com/ckkloverdos/resource/StreamResourceContextSkeleton.scala

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,16 @@ abstract class StreamResourceContextSkeleton(_parent: Maybe[StreamResourceContex
2828

2929
def parent = _parent
3030

31-
def getResource(path: String, normalized: Boolean = true) = {
32-
getLocalResource(path, normalized) match {
31+
def getResource(path: String) = {
32+
getLocalResource(path) match {
3333
case j@Just(rc) =>
3434
logger.debug(" Found %s".format(rc))
3535
j
3636
case NoVal =>
3737
logger.debug(" ==> Not found")
3838
if(parent.isJust) {
3939
logger.debug(" Trying parent %s".format(parent))
40-
parent.flatMap(_.getResource(path, normalized))
40+
parent.flatMap(_.getResource(path))
4141
} else {
4242
NoVal
4343
}

0 commit comments

Comments
 (0)