branch: externals/phpinspect commit 281c5e4ae63124abe1a1b11ea5b293788822704b Author: Hugo Thunnissen <de...@hugot.nl> Commit: Hugo Thunnissen <de...@hugot.nl>
Remove some overly verbose logging --- phpinspect-bmap.el | 1 - phpinspect-resolvecontext.el | 5 ----- 2 files changed, 6 deletions(-) diff --git a/phpinspect-bmap.el b/phpinspect-bmap.el index 4aa9fd32c6..de92c2567d 100644 --- a/phpinspect-bmap.el +++ b/phpinspect-bmap.el @@ -324,7 +324,6 @@ (ending)) (unless (hash-table-empty-p ends) (while (not (or (<= point 0) (setq ending (phpinspect-bmap-tokens-ending-at bmap point)))) - (phpinspect--log "Checking point %d" point) (setq point (- point 1))) (car (last ending))))) diff --git a/phpinspect-resolvecontext.el b/phpinspect-resolvecontext.el index 8073431f27..5eaded16df 100644 --- a/phpinspect-resolvecontext.el +++ b/phpinspect-resolvecontext.el @@ -56,22 +56,17 @@ (phpinspect-namespace-p token))) (defun phpinspect-find-statement-before-point (bmap meta point) - (phpinspect--log "going through %s" (phpinspect-meta-token meta)) (let ((children (reverse (cdr (phpinspect-meta-token meta))))) (let ((previous-siblings)) (catch 'return (dolist (child children) (when (phpinspect-probably-token-p child) - (phpinspect--log "probably token: %s" child) - ;; (phpinspect--log "Child: %s" child) (setq child (phpinspect-bmap-token-meta bmap child)) (when (< (phpinspect-meta-start child) point) (if (and (not previous-siblings) (phpinspect-blocklike-p (phpinspect-meta-token child))) (progn - (phpinspect--log "recursing into %s" (phpinspect-meta-token child)) (throw 'return (phpinspect-find-statement-before-point bmap child point))) (when (phpinspect-end-of-statement-p (phpinspect-meta-token child)) - (phpinspect--log "returning %s, end of statement: %s" previous-siblings (phpinspect-meta-token child)) (throw 'return previous-siblings)) (push (phpinspect-meta-token child) previous-siblings))))) previous-siblings))))