aboutsummaryrefslogtreecommitdiff
path: root/sx-question.el
diff options
context:
space:
mode:
authorSean Allred <code@seanallred.com>2014-11-08 15:49:17 -0500
committerSean Allred <code@seanallred.com>2014-11-08 15:49:17 -0500
commit6aa21b85ace92b01676c6da66372b409fe639920 (patch)
treefb536980c22a701ecabcdc8444504b1cae502d3c /sx-question.el
parent7c5cc6faf61f58cd1534dcab2c4dbb667c00476d (diff)
Abstract out method calls
Keeping method calls within `sx-request.el' was causing circular requirements. This commit sorts through all of the requirements for each of the files and ensures that this does not happen. Much of the content removed was for `sx-request-default-keyword-arguments-alist' and related items. It was unused, so it was pruned. If it is deemed necessary in the future, it should be included in `sx-method.el'.
Diffstat (limited to 'sx-question.el')
-rw-r--r--sx-question.el6
1 files changed, 2 insertions, 4 deletions
diff --git a/sx-question.el b/sx-question.el
index 8957e6f..20a71cc 100644
--- a/sx-question.el
+++ b/sx-question.el
@@ -27,16 +27,14 @@
(require 'sx)
(require 'sx-filter)
(require 'sx-lto)
-(require 'sx-request)
+(require 'sx-method)
-;; I don't know why this is here, but it was causing an API request on require.
(defvar sx-question-browse-filter
- ;; Remember: INCLUDE EXCLUDE BASE
'(nil (user.profile_image shallow_user.profile_image)))
(defun sx-question-get-questions (site &optional page)
"Get the page PAGE of questions from SITE."
- (sx-request-make
+ (sx-method-call
"questions"
`((site . ,site)
(page . ,page))