util: Replace util.set_message_topic().

Replace `util.set_message_topic(message, topic)` with `message.topic =
topic`.

Fixes #13931
This commit is contained in:
shubhamgupta2956
2020-02-19 07:14:17 +05:30
committed by showell
parent efda2684ea
commit a05f633fc1
7 changed files with 7 additions and 13 deletions

View File

@@ -252,10 +252,6 @@ exports.get_reload_topic = function (obj) {
return obj.topic || obj.subject || '';
};
exports.set_message_topic = function (obj, topic) {
obj.topic = topic;
};
exports.get_edit_event_topic = function (obj) {
if (obj.topic === undefined) {
return obj.subject;