Skip to content

Commit

Permalink
minor cleanup
Browse files Browse the repository at this point in the history
removed redundant comments, added some more comments
  • Loading branch information
neowit committed Mar 31, 2014
1 parent 56540a3 commit c4b8427
Showing 1 changed file with 6 additions and 18 deletions.
24 changes: 6 additions & 18 deletions src/main/scala/com/neowit/apex/actions/tooling/SaveModified.scala
Original file line number Diff line number Diff line change
Expand Up @@ -187,18 +187,12 @@ class SaveModified(session: Session) extends DeployModified(session: Session) {

}

/*
override protected def hasConflicts(files: List[File]): Boolean = {
if (!files.isEmpty) {
logger.info("Check Conflicts with Remote")
//!conflictingFiles.isEmpty
None != getFilesNewerOnRemote(files)
} else {
logger.debug("File list is empty, nothing to check for Conflicts with Remote")
false
}
}
*/
/**
* when using Tooling try to avoid Metadata.retrieve() as it may be quite slow
* this method will override its parent in ApexDeploy and uses simple query() calls to load LastModifiedDate
* @param files - list of files to check for conflicts
* @return
*/
override def getFilesNewerOnRemote(files: List[File]): Option[List[Map[String, Any]]] = {
val modificationDataByFile = getFilesModificationData(files)

Expand Down Expand Up @@ -350,12 +344,6 @@ class SaveModified(session: Session) extends DeployModified(session: Session) {
val problemType = "CompileError"
responseWriter.println("ERROR", Map("type" -> problemType, "line" -> line, "column" -> column, "filePath" -> filePath, "text" -> problem))
responseWriter.println(new MessageDetail(componentFailureMessage, Map("type" -> problemType, "filePath" -> filePath, "text" -> problem)))
/*
val helper = TypeHelpers.getHelper(err.asInstanceOf[JSONObject])
val directory = helper.directoryName
*/
}
case Some(x) if x.isInstanceOf[JSONObject] =>
logger.debug(x)
Expand Down

0 comments on commit c4b8427

Please sign in to comment.