diff options
| author | Dmitry Gutov <dgutov@yandex.ru> | 2016-12-13 13:59:59 +0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-12-13 13:59:59 +0400 |
| commit | 36d9692da9172c3ad1e1a46d66ffa9346a44b212 (patch) | |
| tree | 83d2730e818160a0f90e7d66f27870d423d82196 | |
| parent | 906d8137224c1a5bd1dc913940e0d32ffecf5523 (diff) | |
| parent | f781d4276c5511aabbe20be6b78ed0022001acb6 (diff) | |
Merge pull request #10 from syohex/unused-vars
Fix byte-compile warnings about unused variable
| -rw-r--r-- | company-statistics.el | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/company-statistics.el b/company-statistics.el index 62c3c1d..668f88c 100644 --- a/company-statistics.el +++ b/company-statistics.el @@ -113,7 +113,7 @@ number)." (defun company-statistics--initialized-p () (hash-table-p company-statistics--scores)) -(defun company-statistics--log-resize (option new-size) +(defun company-statistics--log-resize (_option new-size) (when (company-statistics--initialized-p) ;; hash scoresheet auto-resizes, but log does not (let ((new-hist (make-vector new-size nil)) @@ -162,7 +162,7 @@ number)." ;; score calculation for insert/retrieval --- can be changed on-the-fly -(defun company-statistics-score-change-light (cand) +(defun company-statistics-score-change-light (_cand) "Count for global score and mode context." (list (cons nil 1) (cons major-mode 1))) ;major-mode is never nil @@ -212,7 +212,7 @@ May be separated by punctuation, but not by whitespace." (when buffer-file-name (list :file buffer-file-name))) -(defun company-statistics-capture-context-heavy (manual) +(defun company-statistics-capture-context-heavy (_manual) "Calculate some context, once for the whole completion run." (save-excursion (backward-char (length company-prefix)) @@ -222,7 +222,7 @@ May be separated by punctuation, but not by whitespace." (company-statistics--parent-symbol) (company-statistics--file-name)))))) -(defun company-statistics-score-change-heavy (cand) +(defun company-statistics-score-change-heavy (_cand) "Count for global score, mode context, last keyword, parent symbol, buffer file name." (let ((last-kwd (assoc :keyword company-statistics--context)) |
