               (spacemacs/helm-do-ack dir)
             (message "error: Not in a project."))))
 
-      (defun spacemacs/helm-do-ack-region-or-symbol ()
-        "Search with ack using `helm-ag' using a default input."
-        (interactive)
-        (spacemacs//helm-do-ag-region-or-symbol 'spacemacs/helm-do-ack))
-
       (defun spacemacs/helm-project-do-ack-region-or-symbol ()
         "Search with ack using `helm-ag' using a default input in project."
         (interactive)

              (helm-do-ag dir)
            (message "error: Not in a project."))))

      (defun spacemacs/helm-do-ag-region-or-symbol ()
        "Search with `ag' with a default input."
        (interactive)
        (spacemacs//helm-do-ag-region-or-symbol 'helm-do-ag))

      (defun spacemacs/helm-project-do-ag-region-or-symbol ()
        "Search with `ag' with a default input in project."
        (interactive)

              (spacemacs//helm-do-ag-region-or-symbol 'helm-do-ag dir)
            (message "error: Not in a project."))))

      (defun spacemacs/helm-project-do-ack ()
        "Search with ack using `helm-ag' in project"
        (interactive)
