Skip to content

Commit

Permalink
MINOR - removing unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
jiminoc committed Nov 19, 2011
1 parent c18e0bc commit c2cd557
Showing 1 changed file with 1 addition and 10 deletions.
Expand Up @@ -24,19 +24,10 @@ class UpgradedImageIExtractor(httpClient: HttpClient, article: Article, config:

loadCustomSiteMapping()

/**
* holds the document that we're extracting the image from
*/
private var doc: Document = null

/**
* What's the minimum bytes for an image we'd accept is
*/
private val minBytesForImages: Int = 4000
/**
* location to store temporary image files if need be
*/
private var tempStoragePath: String = null

/**
* the webpage url that we're extracting content from
Expand Down Expand Up @@ -341,7 +332,7 @@ class UpgradedImageIExtractor(httpClient: HttpClient, article: Article, config:
images.foreach(image => {
try {
if (cnt > 30) {
trace("Abort! they have over 30 images near the top node: " + this.doc.baseUri)
trace("Abort! they have over 30 images near the top node: ")
return Some(goodImages)
}
val imageSrc = image.attr("src")
Expand Down

0 comments on commit c2cd557

Please sign in to comment.