Commits

dannas  committed d14cd7e

Remove unused code.

  • Participants
  • Parent commits 0857775

Comments (0)

Files changed (1)

File src/main/java/webcrawler/commands/Command.java

-package webcrawler.commands;
-
-import java.util.List;
-
-import webcrawler.crawlers.Crawler;
-import webcrawler.models.parsers.HtmlParser;
-import webcrawler.storage.Storage;
-import webcrawler.crawlers.impl.WorkQueue;
-
-/**
- *
- * @author dannas
- */
-public abstract class Command implements Runnable {
-	protected final HtmlParser parser;
-    protected final Storage storage;
-    protected final WorkQueue workQueue;
-    protected final Crawler crawler;
-    protected int depth;
-    protected String url;
-
-    public Command(HtmlParser parser, Storage storage, WorkQueue workQueue,
-                   Crawler crawler, int depth, String url)
-    {
-        this.parser = parser;
-        this.storage = storage;
-        this.workQueue = workQueue;
-        this.crawler = crawler;
-        this.depth = depth;
-        this.url = url;
-    }
-
-    @Override
-    public void run() {
-        crawler.start();
-    }
-
-	public abstract List<String> parse();
-}