ref: c22d978f9199a3cc2ece99dd0de3c511a14b9441
parent: 8d34ed63b8fbe30ac1eead3b6e202b02b26177e5
author: uriel <uriel@engel.se.cat-v.org>
date: Mon Oct 13 21:09:12 EDT 2008
Remove deprecated code to handle old config and teomplate locations
--- a/bin/controller.rc
+++ b/bin/controller.rc
@@ -13,29 +13,8 @@
echo -n sites/$masterSite/_werc/lib/$wantedfile
if not if (test -f lib/$wantedfile)
echo -n lib/$wantedfile
-
- # DEPRECATED
- if not if (~ $#disableDeprecated 0 && test -f $sitedir/_inc/$wantedfile) {
- echo -n $sitedir/_inc/$wantedfile
- dprint DEPRECATION WARNING: Using file in depracted path: $sitedir/_inc/$wantedfile XXX
- }
- if not if(~ $#disableDeprecated 0 && ! ~ $masterSite 0 && test -f sites/$masterSite/_inc/$wantedfile) {
- echo -n sites/$masterSite/_inc/$wantedfile
- dprint DEPRECATION WARNING: Using file in depracted path: sites/$masterSite/_inc/$wantedfile XXX
- }
- if not if (~ $#disableDeprecated 0 && test -f inc/$wantedfile) {
- echo -n inc/$wantedfile
- dprint DEPRECATION WARNING: Using file in depracted path: inc/$wantedfile XXX
- }
}
-# DEPRECATED
-fn get_inc_file {
- get_lib_file $*
- dprint DEPRECATION WARNING: Called get_inc_file, should call get_lib_file
-}
-
-
# Title
fn gentitle {
echo '<h1 class="headerTitle"><a href="/">' ^ $"siteTitle ^ ' <span id="headerSubTitle">' ^ $"siteSubTitle ^ '</span></a></h1>'
@@ -354,12 +333,6 @@
# Template/body selection
master_template= `{get_lib_file $master_template}
-
-if(~ $master_template 0) {
- dprint DEPRECATION WARNING: using $sitedir/_default.tpl, should move to _werc/lib/XXX
- master_template=$sitedir/_default.tpl
-}
-
if(~ $response_format html) {
# Is awk_buffer really useful?