Skip to content

Commit 82dcb19

Browse files
Remove unnecessary Darwin helpers. (#1455)
These were just added, but it turns out they are not actually needed.
1 parent d841578 commit 82dcb19

File tree

1 file changed

+0
-22
lines changed
  • src-electron/generator/matter/darwin/Framework/CHIP/templates

1 file changed

+0
-22
lines changed

src-electron/generator/matter/darwin/Framework/CHIP/templates/helper.js

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1259,25 +1259,6 @@ async function async_not(value) {
12591259
return !toBeNegated;
12601260
}
12611261

1262-
function isLessThan(value1, value2) {
1263-
return value1 < value2;
1264-
}
1265-
1266-
function stripPrefix(value, prefix) {
1267-
if (value.startsWith(prefix)) {
1268-
return value.substring(prefix.length);
1269-
}
1270-
1271-
return value;
1272-
}
1273-
1274-
function cleanDeviceName(deviceName) {
1275-
deviceName = stripPrefix.call(this, deviceName, 'Matter ');
1276-
return appHelper.asUpperCamelCase.call(this, deviceName, {
1277-
hash: { preserveAcronyms: true }
1278-
});
1279-
}
1280-
12811262
//
12821263
// Module exports
12831264
//
@@ -1312,9 +1293,6 @@ exports.async_not = async_not;
13121293
exports.oldName = oldName;
13131294
exports.hasOldName = hasOldName;
13141295
exports.hasRenamedFields = hasRenamedFields;
1315-
exports.isLessThan = isLessThan;
1316-
exports.stripPrefix = stripPrefix;
1317-
exports.cleanDeviceName = cleanDeviceName;
13181296

13191297
exports.meta = {
13201298
category: dbEnum.helperCategory.matter,

0 commit comments

Comments
 (0)