Skip to content

Commit

Permalink
Remove unnecessary Darwin helpers. (project-chip#1455)
Browse files Browse the repository at this point in the history
These were just added, but it turns out they are not actually needed.
  • Loading branch information
bzbarsky-apple authored Oct 15, 2024
1 parent d841578 commit 82dcb19
Showing 1 changed file with 0 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1259,25 +1259,6 @@ async function async_not(value) {
return !toBeNegated;
}

function isLessThan(value1, value2) {
return value1 < value2;
}

function stripPrefix(value, prefix) {
if (value.startsWith(prefix)) {
return value.substring(prefix.length);
}

return value;
}

function cleanDeviceName(deviceName) {
deviceName = stripPrefix.call(this, deviceName, 'Matter ');
return appHelper.asUpperCamelCase.call(this, deviceName, {
hash: { preserveAcronyms: true }
});
}

//
// Module exports
//
Expand Down Expand Up @@ -1312,9 +1293,6 @@ exports.async_not = async_not;
exports.oldName = oldName;
exports.hasOldName = hasOldName;
exports.hasRenamedFields = hasRenamedFields;
exports.isLessThan = isLessThan;
exports.stripPrefix = stripPrefix;
exports.cleanDeviceName = cleanDeviceName;

exports.meta = {
category: dbEnum.helperCategory.matter,
Expand Down

0 comments on commit 82dcb19

Please sign in to comment.