diff options
author | Tom Willemsen | 2012-10-01 00:36:22 +0200 |
---|---|---|
committer | Tom Willemsen | 2012-10-01 00:36:22 +0200 |
commit | 5e4c1f54f4157b29d032cb9f055f6943a969988c (patch) | |
tree | 57599709ce856268e0864febdea0d0d3b190d489 | |
parent | ffcd87e06fd830aef5bbd9a2bd8877db8b98501d (diff) | |
download | undone-5e4c1f54f4157b29d032cb9f055f6943a969988c.tar.gz undone-5e4c1f54f4157b29d032cb9f055f6943a969988c.zip |
Remove <todo-view> definition
This was only there for testing purposes, it has been moved to my rc file.
-rw-r--r-- | undone/main.scm | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/undone/main.scm b/undone/main.scm index 508a8f2..2fa47f7 100644 --- a/undone/main.scm +++ b/undone/main.scm @@ -160,21 +160,6 @@ (string->number (car args))))) todo-list))) -(define-class <todo-view> (<view>)) - -(define-method (sort-view (v <todo-view>) l) - (reverse l)) - -(define-method (filter-view (v <todo-view>)) - (lambda (elm) - (let ((state (assq 'state elm))) - (and state (not (string= (cdr state) "done")))))) - -(define-method (print-item (v <todo-view>) item) - (format #t "~a ~a~%" - (cdr (assq 'state item)) - (cdr (assq 'content item)))) - (define (view args) "Show a list of todo items." (let* ((view-name (or (and (pair? args) (car args)) |