Skip to content
Permalink
Browse files
Remove unused imports.
This diff was automatically generated by a work-in-progress scalafix
rewrite, with no manual edits.
  • Loading branch information
olafurpg committed May 27, 2017
1 parent 3e7b771 commit 65a59491fdf238bb0af581fefd80447bfd2540f9
Show file tree
Hide file tree
Showing 90 changed files with 48 additions and 161 deletions.
@@ -2,7 +2,6 @@ package slick.codegen
import java.io.File
import java.io.BufferedWriter
import java.io.FileWriter
import slick.SlickException

/** Output-related code-generation utilities. */
trait OutputHelpers{
@@ -4,7 +4,6 @@ import java.net.URI

import scala.concurrent.{ExecutionContext, Await}
import scala.concurrent.duration.Duration
import scala.util.Try

import slick.basic.DatabaseConfig
import slick.{model => m}
@@ -1,14 +1,10 @@
package slick.jdbc.hikaricp

import java.sql.{Connection, Driver}
import java.util.concurrent.atomic.AtomicInteger
import java.util.concurrent.locks.ReentrantLock

import com.typesafe.config.Config
import slick.SlickException
import slick.jdbc.{JdbcDataSource, JdbcDataSourceFactory}
import slick.util.ConfigExtensionMethods._
import slick.util.Logging

/** A JdbcDataSource for a HikariCP connection pool.
* See `slick.jdbc.JdbcBackend#Database.forConfig` for documentation on the config parameters. */
@@ -1,10 +1,7 @@
package com.typesafe.slick.testkit.tests

import com.typesafe.slick.testkit.util.{AsyncTest, RelationalTestDB, StandardTestDBs}
import slick.dbio.DBIOAction
import slick.dbio.Effect.Read

import scala.collection.mutable.ArrayBuffer
import scala.concurrent.Future

class ActionTest extends AsyncTest[RelationalTestDB] {
@@ -5,11 +5,9 @@ import java.util.concurrent.{CountDownLatch, LinkedBlockingQueue, TimeUnit, Thre
import com.typesafe.slick.testkit.util.{TestkitConfig, AsyncTest, JdbcTestDB}
import org.junit.Assert
import slick.dbio.DBIOAction
import slick.jdbc.{SQLServerProfile, TransactionIsolation}
import slick.util.Logging

import scala.concurrent.duration.Duration
import scala.concurrent.{Await, ExecutionContext, Future}
import scala.concurrent.Await
import scala.util.Failure


@@ -1,6 +1,5 @@
package com.typesafe.slick.testkit.tests

import org.junit.Assert._

import com.typesafe.slick.testkit.util.{JdbcTestDB, AsyncTest}
import scala.reflect.ClassTag
@@ -78,7 +77,6 @@ class JdbcMapperTest extends AsyncTest[JdbcTestDB] {

def testWideMappedEntity = {
import slick.collection.heterogeneous._
import slick.collection.heterogeneous.syntax._

case class Part(i1: Int, i2: Int, i3: Int, i4: Int, i5: Int, i6: Int)
case class Whole(id: Int, p1: Part, p2: Part, p3: Part, p4: Part)
@@ -1,9 +1,7 @@
package com.typesafe.slick.testkit.tests

import org.junit.{Test, Assert}
import org.junit.Assert._
import slick.jdbc.meta._
import com.typesafe.slick.testkit.util.{TestDB, JdbcTestDB, AsyncTest}
import com.typesafe.slick.testkit.util.{JdbcTestDB, AsyncTest}

class JdbcMetaTest extends AsyncTest[JdbcTestDB] {
import tdb.profile.api._
@@ -5,7 +5,6 @@ import java.io.{ObjectInputStream, ObjectOutputStream, ByteArrayOutputStream}
import java.sql.{Blob, Date, Time, Timestamp}
import java.util.UUID
import javax.sql.rowset.serial.SerialBlob
import org.junit.Assert._

import scala.concurrent.Future

@@ -1,6 +1,5 @@
package com.typesafe.slick.testkit.tests

import org.junit.Assert._
import com.typesafe.slick.testkit.util.{RelationalTestDB, AsyncTest}

class JoinTest extends AsyncTest[RelationalTestDB] {
@@ -4,12 +4,10 @@ import com.typesafe.slick.testkit.util.{AsyncTest, JdbcTestDB}

import org.junit.Assert._

import scala.concurrent.{ExecutionContext, Await}
import scala.concurrent.duration.Duration

import slick.ast.ColumnOption
import slick.model._
import slick.jdbc.{SQLiteProfile, meta}
import slick.jdbc.SQLiteProfile
import slick.jdbc.meta.MTable
import slick.relational.RelationalProfile
import slick.sql.SqlProfile
@@ -1,6 +1,5 @@
package com.typesafe.slick.testkit.tests

import org.junit.Assert._
import com.typesafe.slick.testkit.util.{JdbcTestDB, AsyncTest}

class MutateTest extends AsyncTest[JdbcTestDB] {
@@ -1,7 +1,5 @@
package com.typesafe.slick.testkit.tests

import org.junit.Assert
import org.junit.Assert._
import slick.jdbc.GetResult
import com.typesafe.slick.testkit.util.{JdbcTestDB, AsyncTest}

@@ -58,7 +58,7 @@ class RelationalMiscTest extends AsyncTest[RelationalTestDB] {
}

def testSorting = {
import slick.lifted.{Shape, ShapeLevel, Ordered}
import slick.lifted.{Shape, Ordered}

class T1(tag: Tag) extends Table[(String, String, String)](tag, "t1_3") {
def a = column[String]("a")
@@ -1,9 +1,9 @@
package com.typesafe.slick.testkit.util

import java.io.{PrintWriter, OutputStreamWriter, BufferedWriter, FileOutputStream, FileWriter}
import java.io.{PrintWriter, OutputStreamWriter, BufferedWriter, FileOutputStream}

import slick.basic.BasicProfile
import slick.jdbc.{JdbcCapabilities, JdbcProfile}
import slick.jdbc.JdbcCapabilities
import slick.relational.RelationalCapabilities
import slick.sql.SqlCapabilities

@@ -3,7 +3,6 @@ package com.typesafe.slick.testkit.util
import scala.language.experimental.macros
import scala.reflect.macros.blackbox.Context
import scala.reflect.macros.TypecheckException
import scala.util.control.NonFatal
import java.util.regex.Pattern

/**
@@ -1,11 +1,9 @@
package com.typesafe.slick.testkit.util

import java.io.File
import java.util.logging.{Level, Logger}
import java.sql.SQLException
import slick.compiler.Phase
import slick.dbio._
import slick.driver.JdbcProfile
import slick.memory.MemoryProfile
import slick.jdbc._
import slick.jdbc.GetResult._
@@ -1,10 +1,8 @@
package com.typesafe.slick.testkit.util

import java.lang.reflect.Method

import com.typesafe.config.Config

import org.junit.Assert

import java.io._
import java.net.{URL, URLClassLoader}
@@ -16,10 +14,9 @@ import java.util.zip.GZIPInputStream
import scala.collection.mutable
import scala.concurrent.{Await, Future, ExecutionContext}

import slick.SlickException
import slick.basic.{BasicProfile, Capability}
import slick.dbio.{NoStream, DBIOAction, DBIO}
import slick.jdbc.{JdbcProfile, ResultSetAction, JdbcDataSource, SimpleJdbcAction}
import slick.jdbc.{JdbcProfile, ResultSetAction, JdbcDataSource}
import slick.jdbc.GetResult._
import slick.relational.RelationalProfile
import slick.sql.SqlProfile
@@ -6,7 +6,7 @@ import java.lang.reflect.Method
import java.util.concurrent.{LinkedBlockingQueue, ThreadPoolExecutor, ExecutionException, TimeUnit}
import java.util.concurrent.atomic.AtomicInteger

import scala.concurrent.{Promise, ExecutionContext, Await, Future, blocking}
import scala.concurrent.{Promise, ExecutionContext, Await, Future}
import scala.concurrent.duration.Duration
import scala.reflect.ClassTag
import scala.util.{Failure, Success}
@@ -15,11 +15,11 @@ import scala.util.control.NonFatal
import slick.SlickTreeException
import slick.basic.Capability
import slick.dbio._
import slick.jdbc.{JdbcProfile, JdbcCapabilities, JdbcBackend}
import slick.jdbc.{JdbcCapabilities, JdbcBackend}
import slick.lifted.Rep
import slick.util.DumpInfo
import slick.relational.{RelationalProfile, RelationalCapabilities}
import slick.sql.{SqlProfile, SqlCapabilities}
import slick.relational.RelationalCapabilities
import slick.sql.SqlCapabilities

import org.junit.runner.Description
import org.junit.runner.notification.RunNotifier
@@ -3,8 +3,7 @@ package com.typesafe.slick.testkit.util
import java.util.concurrent.TimeUnit

import com.typesafe.config.{ConfigValueFactory, Config, ConfigFactory}
import java.io.{FileInputStream, File}
import java.util.Properties
import java.io.File
import scala.collection.JavaConverters._
import scala.concurrent.duration.Duration
import slick.SlickException
@@ -10,7 +10,6 @@ import scala.concurrent.ExecutionContext.Implicits.global
object CodeGeneratorRoundTripTest extends DBTestObject(H2Mem, SQLiteMem, Postgres, MySQL, DerbyMem, HsqldbMem)

class CodeGeneratorRoundTripTest(val tdb: JdbcTestDB) extends DBTest {
import tdb.profile.api._
import tdb.profile.quoteIdentifier

@Test def test: Unit = runBlocking {
@@ -2,10 +2,9 @@ package slick.test.codegen

import scala.concurrent.ExecutionContext.Implicits.global
import slick.ast.{FieldSymbol, Node, Select}
import slick.jdbc.JdbcProfile
import slick.jdbc.meta.MTable
import slick.test.codegen.generated._
import com.typesafe.slick.testkit.util.{TestCodeRunner, JdbcTestDB}
import com.typesafe.slick.testkit.util.TestCodeRunner
import org.junit.Assert._

/** Test files generated by CodeGeneratorTest */
@@ -2,7 +2,7 @@ package slick.test.compile

import com.typesafe.slick.testkit.util.ShouldNotTypecheck
import slick.jdbc.H2Profile.api._
import slick.lifted.{Shape, ShapeLevel}
import slick.lifted.Shape

class NestedShapesTest {
def legal = {
@@ -1,10 +1,8 @@
package slick.test.jdbc

import java.io.PrintWriter
import java.sql.{Connection, Driver, DriverPropertyInfo, SQLException}
import java.util.Properties
import java.util.logging.Logger
import javax.sql.DataSource

import com.typesafe.config.ConfigFactory
import org.junit.Test
@@ -5,7 +5,6 @@ import org.junit.Assert._
import scala.concurrent.Await
import scala.concurrent.ExecutionContext.Implicits.global
import scala.concurrent.duration.Duration
import slick.testutil._
import com.typesafe.slick.testkit.util.{DBTest, DBTestObject, JdbcTestDB}
import com.typesafe.slick.testkit.util.StandardTestDBs._

@@ -5,7 +5,7 @@ import java.util.concurrent.TimeUnit
import javax.sql.rowset.serial.SerialBlob

import com.typesafe.slick.testkit.util.{AsyncTest, JdbcTestDB}
import org.junit.{After, Before, Ignore, Test}
import org.junit.{After, Before, Test}
import slick.jdbc.H2Profile.api._
import slick.lifted.{ProvenShape, TableQuery}

@@ -2,7 +2,6 @@ package slick.test.memory

import org.junit.Test
import org.junit.Assert._
import com.typesafe.slick.testkit.util.StandardTestDBs
import slick.basic.DatabaseConfig
import slick.jdbc.JdbcProfile
import slick.memory.{DistributedBackend, DistributedProfile}
@@ -1,7 +1,6 @@
package slick.test.model

import org.junit.Test
import org.junit.Assert._
import slick.model._

/** Test case for the SQL schema support in table definitions */
@@ -1,6 +1,5 @@
package slick.ast

import slick.ast.Util._
import slick.ast.TypeUtil._
import slick.SlickException
import slick.util.ConstArray
@@ -4,8 +4,7 @@ import scala.collection.mutable.ListBuffer
import scala.language.existentials
import scala.reflect.ClassTag
import slick.SlickException
import slick.util.{Logging, Dumpable, DumpInfo, GlobalConfig, ConstArray}
import Util._
import slick.util.{Dumpable, DumpInfo, GlobalConfig, ConstArray}
import TypeUtil._

/** A node in the Slick AST.
@@ -1,6 +1,5 @@
package slick.ast

import Util._
import slick.util.ConstArray
import scala.collection.mutable.HashMap
import scala.reflect.ClassTag
@@ -5,8 +5,6 @@ import slick.SlickException
import scala.collection.generic.CanBuild
import scala.collection.mutable.{Builder, ArrayBuilder}
import scala.reflect.{ClassTag, classTag => mkClassTag}
import Util._
import scala.collection.mutable.ArrayBuffer
import scala.annotation.implicitNotFound
import slick.util.{DumpInfo, Dumpable, TupleSupport, ConstArray}

@@ -1,12 +1,9 @@
package slick.ast

import slick.ast.TypeUtil.:@
import slick.util.ConstArray

import scala.collection
import scala.collection.mutable
import scala.language.implicitConversions
import scala.collection.mutable.ArrayBuffer

/**