You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by li...@apache.org on 2015/01/31 12:59:56 UTC

[02/11] incubator-kylin git commit: rm kylinconfig in front

rm kylinconfig in front


Project: http://git-wip-us.apache.org/repos/asf/incubator-kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-kylin/commit/c048ba19
Tree: http://git-wip-us.apache.org/repos/asf/incubator-kylin/tree/c048ba19
Diff: http://git-wip-us.apache.org/repos/asf/incubator-kylin/diff/c048ba19

Branch: refs/heads/staging
Commit: c048ba19d3c96da038f101855961c02b35193a38
Parents: 88dff35
Author: jiazhong <ji...@ebay.com>
Authored: Thu Jan 22 21:54:22 2015 -0800
Committer: jiazhong <ji...@ebay.com>
Committed: Thu Jan 22 21:54:22 2015 -0800

----------------------------------------------------------------------
 webapp/app/js/services/kylinProperties.js | 23 -----------------------
 1 file changed, 23 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/c048ba19/webapp/app/js/services/kylinProperties.js
----------------------------------------------------------------------
diff --git a/webapp/app/js/services/kylinProperties.js b/webapp/app/js/services/kylinProperties.js
deleted file mode 100644
index f1142b7..0000000
--- a/webapp/app/js/services/kylinProperties.js
+++ /dev/null
@@ -1,23 +0,0 @@
-/**
- * Created by jiazhong on 2015/1/15.
- */
-KylinApp.service('kylinConfig', function(AdminService,$log) {
-    var _config;
-    this.init = function (){
-        AdminService.config({}, function(config){
-            _config = config.config;
-        },function(e){
-            $log.error("failed to load kylin.properties"+e);
-        });
-    };
-
-    this.getProperty = function(name){
-        var keyIndex = _config.indexOf(name);
-        var keyLength = name.length;
-        var partialResult = _config.substr(keyIndex+keyLength);
-        var preValueIndex = partialResult.indexOf("=");
-        var sufValueIndex = partialResult.indexOf("\r\n");
-        return partialResult.substr(preValueIndex+1,sufValueIndex);
-
-    }
-});
\ No newline at end of file