From 0f3b340da7acffba93de0618d80d6018097e98ee Mon Sep 17 00:00:00 2001 From: jsdelfino Date: Mon, 24 Oct 2011 08:45:54 +0000 Subject: Refactor and simplify edit app, and optimize app resource loading and caching. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1188045 13f79535-47bb-0310-9956-ffa450edef68 --- sca-cpp/trunk/modules/js/htdocs/util.js | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'sca-cpp/trunk/modules/js/htdocs/util.js') diff --git a/sca-cpp/trunk/modules/js/htdocs/util.js b/sca-cpp/trunk/modules/js/htdocs/util.js index fd7005e9c7..86e17c4f60 100644 --- a/sca-cpp/trunk/modules/js/htdocs/util.js +++ b/sca-cpp/trunk/modules/js/htdocs/util.js @@ -326,28 +326,6 @@ function issubdomain(host) { return host.split('.').length > 2; } -/** - * Convert a host name to a home page title. - */ -function hometitle(host) { - if (!isNil(config.hometitle)) - return config.hometitle; - var h = reverse(host.split('.')); - var d = isNil(cdr(h))? car(h) : cadr(h); - return d.substr(0, 1).toUpperCase() + d.substr(1); -} - -/** - * Convert a host name to a window title. - */ -function windowtitle(host) { - if (!isNil(config.windowtitle)) - return config.windowtitle; - var h = reverse(host.split('.')); - var d = isNil(cdr(h))? car(h) : cadr(h); - return d.substr(0, 1).toUpperCase() + d.substr(1); -} - /** * Format a string like Python format. */ -- cgit v1.2.3