Permalink
Browse files

- unused imports

  • Loading branch information...
1 parent e0f556b commit 377642041ddcd90a5e9e42922193d04b4469f965 Thomas@Tirith committed Jun 26, 2012
Showing with 13 additions and 335 deletions.
  1. +1 −0 .hgignore
  2. +0 −17 app/actor/AssertionsActor.scala
  3. +1 −10 app/actor/JobActor.scala
  4. +0 −7 app/actor/JobsActor.scala
  5. +0 −18 app/actor/OrganizationActor.scala
  6. +0 −8 app/actor/OrganizationsActor.scala
  7. +0 −7 app/actor/message/RunUpdate.scala
  8. +0 −1 app/actor/message/ToRunActor.scala
  9. +0 −1 app/assertor/Assertor.scala
  10. +0 −3 app/assertor/AssertorSelector.scala
  11. +0 −4 app/assertor/CSSValidator.scala
  12. +0 −4 app/assertor/FromHttpResponseAssertor.scala
  13. +1 −4 app/assertor/FromURLAssertor.scala
  14. +0 −4 app/assertor/HTMLValidator.scala
  15. +0 −4 app/assertor/I18nChecker.scala
  16. +1 −4 app/assertor/ValidatorNu.scala
  17. +0 −14 app/controllers/Application.scala
  18. +0 −5 app/controllers/Jobs.scala
  19. +0 −7 app/controllers/controllers.scala
  20. +1 −6 app/http/AuthorityManager.scala
  21. +1 −9 app/http/Http.scala
  22. +0 −4 app/model/Assertion.scala
  23. +0 −4 app/model/AssertorResponse.scala
  24. +0 −6 app/model/Context.scala
  25. +0 −1 app/model/Filter.scala
  26. +0 −8 app/model/Job.scala
  27. +0 −7 app/model/JobData.scala
  28. +2 −7 app/model/Organization.scala
  29. +0 −5 app/model/ResourceResponse.scala
  30. +0 −12 app/model/Run.scala
  31. +0 −4 app/model/Strategy.scala
  32. +0 −5 app/model/User.scala
  33. +0 −2 app/store/Binders.scala
  34. +0 −3 app/store/LiteralBinders.scala
  35. +0 −5 app/store/Ontologies.scala
  36. +0 −2 app/store/UriBuilders.scala
  37. +0 −1 app/util/FutureVal.scala
  38. +0 −1 app/util/Headers.scala
  39. +0 −1 app/util/RequestW.scala
  40. +0 −1 app/util/VSPromise.scala
  41. +0 −1 app/util/akka/PathAware.scala
  42. +0 −2 app/util/akka/PathAwareActor.scala
  43. +0 −1 app/util/html/ExtractorHandler.scala
  44. +0 −1 app/util/html/HtmlParser.scala
  45. +1 −1 app/util/localwebsite/ResponseCache.scala
  46. +0 −11 app/view/Forms.scala
  47. +0 −1 app/view/Helper.scala
  48. +0 −5 app/view/Messages.scala
  49. +0 −1 app/view/ReportArticle.scala
  50. +0 −5 app/vs/DefaultProdConfiguration.scala
  51. +0 −1 app/vs/Exceptions.scala
  52. +0 −8 app/vs/Main.scala
  53. +0 −2 app/vs/VSConfiguration.scala
  54. +0 −1 assertor-api/src/main/scala/CriterionFinder.scala
  55. +0 −9 test/actor/JobsTest.scala
  56. +0 −2 test/assertor/CSSValidatorTest.scala
  57. +0 −1 test/assertor/HTMLValidatorTest.scala
  58. +0 −4 test/http/HttpTest.scala
  59. +0 −2 test/integration/FunctionalTest.scala
  60. +0 −2 test/model/FilterTest.scala
  61. +0 −2 test/model/StoreTest.scala
  62. +0 −10 test/observer/CyclicWebsiteTest.scala
  63. +0 −5 test/observer/FilteredTreeWebsiteTest.scala
  64. +0 −4 test/observer/MaxResourcesTest.scala
  65. +0 −6 test/observer/OneGETxHEADTest.scala
  66. +0 −7 test/observer/PendingRunTest.scala
  67. +0 −5 test/observer/SimpleInterWebsiteTest.scala
  68. +0 −4 test/observer/StopActionTest.scala
  69. +1 −2 test/org/w3/util/FutureValTest.scala
  70. +1 −3 test/org/w3/util/VSPromiseTest.scala
  71. +0 −5 test/util/ObserverTestHelper.scala
  72. +2 −5 test/util/website/Webserver.scala
View
@@ -27,6 +27,7 @@ test/resources
test/observer/TempTest.scala
*.egp
.idea
+.idea_modules
.ensime
.externalToolBuilders
*.orig
@@ -2,26 +2,10 @@ package org.w3.vs.actor
import org.w3.vs._
import org.w3.vs.model._
-import org.w3.util._
import org.w3.vs.assertor._
-import akka.dispatch._
import akka.actor._
-import java.util.concurrent.ThreadPoolExecutor.CallerRunsPolicy
-import java.util.concurrent.TimeUnit.MILLISECONDS
-import play.Logger
import System.{ currentTimeMillis => now }
-import org.w3.vs.http._
-import akka.util.duration._
-import akka.util.Duration
-import scala.collection.mutable.LinkedList
-import scala.collection.mutable.LinkedHashMap
-import play.api.libs.iteratee.PushEnumerator
-import org.w3.util.Headers.wrapHeaders
-import akka.pattern.pipe
import scalaz._
-import Scalaz._
-import org.joda.time.DateTime
-import org.w3.util.akkaext._
import scala.collection.mutable.Queue
import org.w3.vs.actor.message.Stop
import scala.concurrent.stm._
@@ -38,7 +22,6 @@ import AssertionsActor._
class AssertionsActor(job: Job)(implicit val configuration: VSConfiguration) extends Actor {
- import configuration.assertorExecutionContext
var pendingAssertions: Ref[Int] = Ref(0)
@@ -5,23 +5,15 @@ import org.w3.vs.model._
import org.w3.util._
import org.w3.vs.assertor._
import org.w3.vs.actor.message._
-import akka.dispatch._
import akka.actor._
-import java.util.concurrent.ThreadPoolExecutor.CallerRunsPolicy
-import java.util.concurrent.TimeUnit.MILLISECONDS
import play.api.libs.iteratee._
import play.Logger
import System.{ currentTimeMillis => now }
import org.w3.vs.http._
import akka.util.duration._
-import akka.util.Duration
-import scala.collection.mutable.LinkedList
-import scala.collection.mutable.LinkedHashMap
import org.w3.util.Headers.wrapHeaders
-import akka.pattern.pipe
-import scalaz._
import scalaz.Scalaz._
-import org.joda.time.{ DateTime, DateTimeZone }
+import org.joda.time.DateTime
import org.w3.util.akkaext._
import org.joda.time.DateTimeZone
@@ -34,7 +26,6 @@ extends Actor with FSM[(RunActivity, ExplorationMode), Run] with Listeners {
val assertionsActorRef = context.actorOf(Props(new AssertionsActor(job)), "assertions")
// TODO is it really what we want? I don't think so
- import TypedActor.dispatcher
val logger = Logger.of(classOf[JobActor])
@@ -1,17 +1,10 @@
package org.w3.vs.actor
import akka.actor._
-import akka.dispatch._
-import akka.pattern.ask
-import org.w3.vs.http._
import org.w3.vs.model._
-import org.w3.vs.assertor._
import org.w3.vs.VSConfiguration
import scalaz._
import Scalaz._
-import akka.util.Timeout
-import akka.util.duration._
-import message._
import scalaz._
import org.w3.util.akkaext._
@@ -2,26 +2,8 @@ package org.w3.vs.actor
import org.w3.vs._
import org.w3.vs.model._
-import org.w3.util._
-import org.w3.vs.assertor._
-import org.w3.vs.actor.message._
-import akka.dispatch._
import akka.actor._
-import java.util.concurrent.ThreadPoolExecutor.CallerRunsPolicy
-import java.util.concurrent.TimeUnit.MILLISECONDS
-import play.Logger
-import play.api.libs.iteratee._
import System.{ currentTimeMillis => now }
-import org.w3.vs.http._
-import akka.util.duration._
-import akka.util.Duration
-import scala.collection.mutable.LinkedList
-import scala.collection.mutable.LinkedHashMap
-import org.w3.util.Headers.wrapHeaders
-import akka.pattern.pipe
-import scalaz._
-import Scalaz._
-import org.joda.time.DateTime
import org.w3.vs.actor.message._
import org.w3.util.akkaext._
@@ -1,18 +1,10 @@
package org.w3.vs.actor
import akka.actor._
-import akka.dispatch._
-import akka.pattern.ask
-import org.w3.vs.http._
import org.w3.vs.model._
-import org.w3.util._
-import org.w3.vs.assertor._
import org.w3.vs.VSConfiguration
import scalaz._
import Scalaz._
-import akka.util.Timeout
-import akka.util.duration._
-import message._
import org.w3.util.akkaext._
case class CreateOrganizationAndForward(organization: Organization, tell: Tell)
@@ -1,13 +1,6 @@
package org.w3.vs.actor.message
-import org.w3.util.URL
-import org.w3.vs.assertor._
import org.w3.vs.model._
-import org.w3.vs.actor._
-import play.api.libs.json._
-import org.w3.vs.model._
-import scalaz._
-import org.joda.time._
/**
* An update that happened on an Observation.
@@ -1,6 +1,5 @@
package org.w3.vs.actor.message
-import akka.actor.ActorRef
// Could be Run/Cancel to be consistent with the ui?
case object Refresh
@@ -1,6 +1,5 @@
package org.w3.vs.assertor
-import org.w3.vs._
import org.w3.vs.model.AssertorId
/**
@@ -1,8 +1,5 @@
package org.w3.vs.model
-import org.w3.util.Headers._
-import org.w3.vs.model._
-import scalaz.Scalaz._
case class AssertorSelector(
name: String,
@@ -1,10 +1,6 @@
package org.w3.vs.assertor
import org.w3.util._
-import org.w3.vs.model._
-import scala.io.Source
-import scalaz._
-import Validation._
import org.w3.cssvalidator.{ CSSValidator => CSSVal }
/** An instance of the CSSValidator
@@ -2,10 +2,6 @@ package org.w3.vs.assertor
import org.w3.util._
import org.w3.vs.model._
-import scalaz._
-import Validation._
-import scala.io.Source
-import akka.dispatch.ExecutionContext
trait FromHttpResponseAssertor extends FromURLAssertor {
@@ -2,12 +2,9 @@ package org.w3.vs.assertor
import org.w3.util._
import org.w3.vs.model._
-import scalaz._
-import Validation._
import scala.io.Source
-import akka.dispatch.ExecutionContext
-/**
+/**
* An assertor that returns assertions about a document pointed by a URL
*/
trait FromURLAssertor extends FromSourceAssertor {
@@ -1,10 +1,6 @@
package org.w3.vs.assertor
import org.w3.util._
-import org.w3.vs.model._
-import scala.io.Source
-import scalaz._
-import Validation._
/** An instance of the HTMLValidator
*
@@ -1,10 +1,6 @@
package org.w3.vs.assertor
import org.w3.util._
-import org.w3.vs.model._
-import scala.io.Source
-import scalaz._
-import Validation._
/** An instance of the HTMLValidator
*
@@ -3,14 +3,11 @@ package org.w3.vs.assertor
import org.w3.util._
import org.w3.vs.model._
import scala.io.Source
-import scalaz._
-import Validation._
import play.api.libs.json._
import play.api.templates.HtmlFormat
-import Json._
-/**
+/**
* Validator.nu
*
* http://wiki.whatwg.org/wiki/Validator.nu_Web_Service_Interface
@@ -1,30 +1,16 @@
package controllers
-import play.api._
import play.api.mvc._
import play.api.i18n._
-import play.api.data.Form
-import play.api.libs.json._
-import play.api.libs.iteratee._
-import play.api.libs.concurrent._
import play.api.Play.current
-import akka.dispatch.Future
import org.w3.util._
import org.w3.util.FutureVal._
import org.w3.vs.controllers._
import org.w3.vs.exception._
import org.w3.vs.model._
-import org.w3.vs.actor._
-import org.w3.vs.actor.message._
import org.w3.vs.view._
import scalaz._
import Scalaz._
-import Validation._
-import akka.util.Duration
-import akka.util.duration._
-import akka.dispatch.Await
-import akka.dispatch.Future
-import java.util.concurrent.TimeUnit._
import play.api.cache.Cache
object Application extends Controller {
@@ -1,6 +1,5 @@
package controllers
-import java.util.concurrent.TimeUnit.SECONDS
import org.w3.util._
import org.w3.vs.controllers._
@@ -9,9 +8,6 @@ import org.w3.vs.model._
import org.w3.vs.view._
import org.w3.vs.actor.message._
-import Application._
-import akka.dispatch.Future
-import akka.util.duration._
import play.api.i18n.Messages
import play.api.libs.concurrent.Promise
import play.api.libs.iteratee.Enumeratee
@@ -20,7 +16,6 @@ import play.api.libs.iteratee.Iteratee
import play.api.libs.json.JsValue
import play.api.mvc._
import scalaz.Scalaz._
-import scalaz._
object Jobs extends Controller {
@@ -3,20 +3,13 @@ package org.w3.vs
import org.w3.util._
import org.w3.vs.Prod.configuration
import org.w3.vs.model._
-import org.w3.vs.exception._
-import play.api.data.Forms._
import play.api.data.format.Formats._
import play.api.data.format.Formatter
-import play.api.data._
import play.api.data.FormError
import play.api.libs.iteratee._
import play.api.libs.json.JsValue
-import play.api.mvc.Results._
import play.api.mvc._
import play.api.mvc.PathBindable
-import play.api._
-import scalaz._
-import play.api.i18n.Messages
import java.net.URLDecoder
import java.net.URLEncoder
@@ -2,17 +2,13 @@ package org.w3.vs.http
import com.ning.http.client._
import akka.actor._
-import akka.dispatch._
import org.w3.util._
-import org.w3.vs.actor._
-import akka.util.Duration
import akka.util.duration._
import java.lang.System.currentTimeMillis
import play.Logger
import org.w3.vs.model._
import org.w3.vs.VSConfiguration
import scala.collection.mutable.Queue
-import org.w3.util.akkaext._
object AuthorityManager {
@@ -142,8 +138,7 @@ final class AuthorityManager(authority: Authority)(implicit configuration: VSCon
}
def onCompleted(): Unit = {
- import scala.collection.JavaConverters._
-
+
finish {
val response = builder.build()
import java.util.{Map => jMap, List => jList}
View
@@ -1,15 +1,8 @@
package org.w3.vs.http
-import java.util.concurrent.{Executors, TimeUnit}
-import java.util.concurrent.ThreadPoolExecutor.CallerRunsPolicy
-import com.ning.http.client._
import akka.actor._
-import akka.dispatch._
import org.w3.util._
-import akka.util.Duration
-import akka.util.duration._
import play.Logger
-import org.w3.vs.actor._
import org.w3.vs.model._
import org.w3.vs.VSConfiguration
import scalaz.Scalaz._
@@ -28,8 +21,7 @@ class Http()(implicit configuration: VSConfiguration) extends Actor with PathAwa
val httpClient = configuration.httpClient
// TODO really???
- import TypedActor.dispatcher
-
+
val logger = Logger.of(classOf[Http])
def getAuthorityManagerRefOrCreate(authority: Authority): ActorRef = {
Oops, something went wrong.

0 comments on commit 3776420

Please sign in to comment.