]> git.eshelyaron.com Git - emacs.git/commitdiff
Tweak python-hideshow-forward-sexp-function warning avoidance
authorLars Ingebrigtsen <larsi@gnus.org>
Wed, 15 Sep 2021 13:53:53 +0000 (15:53 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Wed, 15 Sep 2021 13:53:53 +0000 (15:53 +0200)
* lisp/progmodes/python.el
(python-hideshow-forward-sexp-function): Avoid compilation warning
in a more standard way.  Problem reported in
https://thedailywtf.com/articles/the-programmer-s-motto-and-other-comments

lisp/progmodes/python.el

index fae350dea24e747f597c590ddc515b07e16acf3a..19b79b6919788197536fe4df7cb9938815fd53c0 100644 (file)
@@ -4775,10 +4775,9 @@ Interactively, prompt for symbol."
 \f
 ;;; Hideshow
 
-(defun python-hideshow-forward-sexp-function (arg)
+(defun python-hideshow-forward-sexp-function (_arg)
   "Python specific `forward-sexp' function for `hs-minor-mode'.
 Argument ARG is ignored."
-  arg  ; Shut up, byte compiler.
   (python-nav-end-of-defun)
   (unless (python-info-current-line-empty-p)
     (backward-char)))