Skip to content

Commit

Permalink
removes unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
gosom committed May 14, 2023
1 parent 96d8007 commit 1affb17
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
12 changes: 0 additions & 12 deletions scrapemate.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,17 +154,6 @@ func WithCache(cache Cacher) func(*ScrapeMate) error {
}
}

// WithSession sets the session for the scrapemate
// At the moment this only works when you use the WithJS option
// for the html fetcher it has not effect
func WithSession() func(*ScrapeMate) error {
return func(s *ScrapeMate) error {
s.useSession = true

return nil
}
}

// Scrapemate contains unexporter fields
type ScrapeMate struct {
log logging.Logger
Expand All @@ -177,7 +166,6 @@ type ScrapeMate struct {
cache Cacher
results chan Result
failedJobs chan IJob
useSession bool
}

// Start starts the scraper
Expand Down
1 change: 0 additions & 1 deletion scrapemate/writer.go

This file was deleted.

0 comments on commit 1affb17

Please sign in to comment.