Skip to content

Commit

Permalink
Removed commented code from settings.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Abdallah-Abdaljalil committed Aug 30, 2024
1 parent 6ff24fb commit 925a0a7
Showing 1 changed file with 1 addition and 24 deletions.
25 changes: 1 addition & 24 deletions src/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,30 +154,7 @@ Settings.prototype._getValue = function (obj, parts) {
return obj;
};

// Settings.prototype.get = function (key, def) {
// let obj = this.cfg._;
// const parts = (key || '').split('.');
// let part;
// for (let i = 0; i < parts.length; i += 1) {
// part = parts[i];
// if (part && obj != null) {
// obj = obj[part];
// }
// }
// if (obj === undefined) {
// if (def === undefined) {
// def = this.defCfg;
// for (let j = 0; j < parts.length; j += 1) {
// part = parts[j];
// if (part && def != null) {
// def = def[part];
// }
// }
// }
// return def;
// }
// return obj;
// };


/**
Returns the settings-wrapper object.
Expand Down

0 comments on commit 925a0a7

Please sign in to comment.