Remove unused code from GerritHookFilter

Change-Id: I70beaece8673714bcc71fa5fbfc8693a01f85aac
diff --git a/hooks-its/src/main/java/com/googlesource/gerrit/plugins/hooks/workflow/GerritHookFilter.java b/hooks-its/src/main/java/com/googlesource/gerrit/plugins/hooks/workflow/GerritHookFilter.java
index b89d1b3..da27a0c 100644
--- a/hooks-its/src/main/java/com/googlesource/gerrit/plugins/hooks/workflow/GerritHookFilter.java
+++ b/hooks-its/src/main/java/com/googlesource/gerrit/plugins/hooks/workflow/GerritHookFilter.java
@@ -91,40 +91,6 @@
     return issues.toArray(new String[issues.size()]);
   }
 
-  protected Long[] getWorkItems(String gitComment) {
-    List<Pattern> commentRegexList = getCommentRegexList();
-    if (commentRegexList == null) return new Long[] {};
-
-    log.debug("Matching '" + gitComment + "' against " + commentRegexList);
-
-    ArrayList<Long> workItems = new ArrayList<Long>();
-
-    for (Pattern pattern : commentRegexList) {
-      Matcher matcher = pattern.matcher(gitComment);
-
-      while (matcher.find()) {
-        addMatchedWorkItems(workItems, matcher);
-      }
-    }
-
-    return workItems.toArray(new Long[workItems.size()]);
-  }
-
-  private void addMatchedWorkItems(ArrayList<Long> workItems, Matcher matcher) {
-    int groupCount = matcher.groupCount();
-    for (int i = 1; i <= groupCount; i++) {
-
-      String group = matcher.group(i);
-      try {
-        Long workItem = new Long(group);
-        workItems.add(workItem);
-      } catch (NumberFormatException e) {
-        log.debug("matched string '" + group
-            + "' is not a work item > skipping");
-      }
-    }
-  }
-
   private List<Pattern> getCommentRegexList() {
     ArrayList<Pattern> regexList = new ArrayList<Pattern>();