shithub: werc

Download patch

ref: fc6cf885e3280aa017d25af2931c545cb8e60e02
parent: 6b816eeabe2893e0851d71061dd7672d57f9eeb9
author: uriel <uriel@engel.se.cat-v.org>
date: Thu Jan 8 21:03:36 EST 2009

Delete some debug code in a function that is not used yet.

--- a/bin/cgilib.rc
+++ b/bin/cgilib.rc
@@ -267,13 +267,8 @@
 ##################################
 # Meta-data extract
 
-fn get_var {
-    if(! ~ $#* 2) {
-         status='ERROR: wrong get_var args >>' $* '<< instead of: get_var file-name var-name'
-         dprint $status
-    }
-    if not
-        sed -n '/^\* '$2': /p; /^\* '$2': /q; /^$/q' < $1
+fn get_md_file_attr {
+    sed -n '/^\* '$2': /p; /^\* '$2': /q; /^$/q' < $1
 }
 
 #app_blog_methods = ( _post index.rss )