浏览代码

Remove unused method

JC Brand 7 年之前
父节点
当前提交
c12e361ebe
共有 1 个文件被更改,包括 3 次插入11 次删除
  1. 3 11
      src/converse-profile.js

+ 3 - 11
src/converse-profile.js

@@ -46,9 +46,9 @@
                 },
                 },
 
 
                 initialize () {
                 initialize () {
-                    this.model.on("change:status", this.updateStatusUI, this);
-                    this.model.on("change:status_message", this.updateStatusUI, this);
-                    this.model.on("update-status-ui", this.updateStatusUI, this);
+                    this.model.on("change:status", this.render, this);
+                    this.model.on("change:status_message", this.render, this);
+                    this.model.on("update-status-ui", this.render, this);
                 },
                 },
 
 
                 toHTML () {
                 toHTML () {
@@ -114,14 +114,6 @@
                     } else {
                     } else {
                         return __(stat) || __('online');
                         return __(stat) || __('online');
                     }
                     }
-                },
-
-                updateStatusUI (model) {
-                    const stat = model.get('status');
-                    // For translators: the %1$s part gets replaced with the status
-                    // Example, I am online
-                    const status_message = model.get('status_message') || __("I am %1$s", this.getPrettyStatus(stat));
-                    // TODO
                 }
                 }
             });
             });
         }
         }