Skip to content

Commit 1561e9b

Browse files
committed
Update GitMacroMetadataParser.cs
1 parent c22d04b commit 1561e9b

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

SomethingNeedDoing/Core/Github/GitMacroMetadataParser.cs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,8 @@ public bool WriteMetadata(ConfigMacro macro)
4747
{
4848
metadataBlock.AppendLine("dependencies:");
4949
foreach (var dep in macro.Metadata.Dependencies)
50-
{
5150
if (dep is GitDependency gitDep)
52-
{
5351
metadataBlock.AppendLine($" - repo: {gitDep.GitInfo.RepositoryUrl}");
54-
metadataBlock.AppendLine($" path: {gitDep.GitInfo.FilePath}");
55-
if (gitDep.GitInfo.Branch != "main")
56-
metadataBlock.AppendLine($" branch: {gitDep.GitInfo.Branch}");
57-
if (gitDep.Name != Path.GetFileNameWithoutExtension(gitDep.GitInfo.FilePath))
58-
metadataBlock.AppendLine($" name: {gitDep.Name}");
59-
}
60-
}
6152
}
6253

6354
if (macro.Metadata.TriggerEvents.Any())
@@ -69,12 +60,6 @@ public bool WriteMetadata(ConfigMacro macro)
6960
if (macro.Metadata.PluginsToDisable.Any())
7061
metadataBlock.AppendLine($"plugins_to_disable: {string.Join(", ", macro.Metadata.PluginsToDisable)}");
7162

72-
if (macro.Metadata.CraftingLoop)
73-
{
74-
metadataBlock.AppendLine($"crafting_loop: true");
75-
metadataBlock.AppendLine($"craft_loop_count: {macro.Metadata.CraftLoopCount}");
76-
}
77-
7863
if (macro.Metadata.AddonEventConfig != null)
7964
{
8065
metadataBlock.AppendLine($"addon_event:");

0 commit comments

Comments
 (0)