org-element: Remove an unused argument

* contrib/lisp/org-element.el (org-element-parse-secondary-string):
  Remove unused optional argument.
This commit is contained in:
Nicolas Goaziou 2012-03-22 18:26:34 +01:00
parent d6ab0f534b
commit 5e950a9e56
1 changed files with 2 additions and 8 deletions

View File

@ -2972,17 +2972,11 @@ Assume buffer is in Org mode."
;; belongs to a section.
'section nil granularity visible-only nil))))
(defun org-element-parse-secondary-string (string restriction &optional buffer)
(defun org-element-parse-secondary-string (string restriction)
"Recursively parse objects in STRING and return structure.
RESTRICTION, when non-nil, is a symbol limiting the object types
that will be looked after.
Optional argument BUFFER indicates the buffer from where the
secondary string was extracted. It is used to determine where to
get extraneous information for an object \(i.e. when resolving
a link or looking for a footnote definition\). It defaults to
the current buffer."
that will be looked after."
(with-temp-buffer
(insert string)
(org-element-parse-objects (point-min) (point-max) nil restriction)))