Browse Source

Removed unused function from kbn.js

Torkel Ödegaard 11 years ago
parent
commit
dfac87db05
1 changed files with 0 additions and 5 deletions
  1. 0 5
      src/app/components/kbn.js

+ 0 - 5
src/app/components/kbn.js

@@ -158,11 +158,6 @@ function($, _, moment) {
     return info.sec * info.count;
     return info.sec * info.count;
   };
   };
 
 
-  // This should go away, moment.js can do this
-  kbn.time_ago = function(string) {
-    return new Date(new Date().getTime() - (kbn.interval_to_ms(string)));
-  };
-
   /* This is a simplified version of elasticsearch's date parser */
   /* This is a simplified version of elasticsearch's date parser */
   kbn.parseDate = function(text) {
   kbn.parseDate = function(text) {
     if(_.isDate(text)) {
     if(_.isDate(text)) {