Remove unnecessary empty object assignments in Ableton builders

This commit is contained in:
2026-07-13 05:17:39 +02:00
parent 5af7190f1f
commit d3951a2467

View File

@@ -80,7 +80,6 @@ function setLive10SampleReference(fileRef: any, sampleName: string) {
fileRef.RelativePath = { RelativePathElement: pathElements };
fileRef.Name = { '@Value': sampleName };
fileRef.Type = { '@Value': 2 };
fileRef.Data = {};
fileRef.RefersToFolder = { '@Value': 'false' };
fileRef.SearchHint = {
PathHint: { RelativePathElement: pathElements },
@@ -319,7 +318,6 @@ async function buildSimplerDevice(koTrack: AblTrack, abletonVersion: AbletonVers
const sampleRef = device.Player.MultiSampleMap.SampleParts.MultiSamplePart.SampleRef;
if (abletonVersion === '10') {
setLive10SampleReference(sampleRef.FileRef, koTrack.sampleName);
sampleRef.SourceContext = {};
} else {
sampleRef.FileRef.RelativePath['@Value'] = toNativePath(
`Samples/Imported/${koTrack.sampleName}`,