Skip to content

Commit

Permalink
Remove printlns
Browse files Browse the repository at this point in the history
  • Loading branch information
markehammons committed Nov 25, 2022
1 parent b05ef87 commit 1d4faa5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions core/src/fr/hammons/slinc/Tools.scala
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ object Tools:
def sendResourceToCache(name: String): Unit =
Files.createDirectories(appDataStore)
val cacheLocation = appDataStore.resolve(s"$name.c")
println(cacheLocation)

if !Files.exists(appDataStore.resolve(s"$name.c")) then
val stream = getClass().getResourceAsStream(s"/native/$name.c")
if stream != null then Files.copy(stream, cacheLocation)
Expand All @@ -43,8 +43,6 @@ object Tools:
val cacheLocation = appDataStore.resolve(s"$name$sharedLibSuffix")
val headerLocation = appDataStore.resolve(s"$name.c")

println(headerLocation)

if !Files.exists(cacheLocation) then
val cmd = Seq(
"clang",
Expand All @@ -59,7 +57,6 @@ object Tools:

def loadCachedLibrary(name: String) =
val cacheLocation = appDataStore.resolve(s"$name$sharedLibSuffix")
println(cacheLocation)
System.load(cacheLocation.nn.toAbsolutePath().nn.toString())

end Tools

0 comments on commit 1d4faa5

Please sign in to comment.