Removed comment

Former-commit-id: 353bbff1b8
This commit is contained in:
Jonas Kamsker 2022-03-20 19:34:01 +01:00
parent 6be9690527
commit 59e5ceb455

View file

@ -22,25 +22,6 @@ private FFMpegArguments() { }
private string GetText() private string GetText()
{ {
//var sb = new StringBuilder();
//var appendSpace = false;
//foreach (var arg in _globalArguments.Arguments.Concat(Arguments))
//{
// if (appendSpace)
// {
// sb.Append(' ');
// }
// else
// {
// appendSpace = true;
// }
// sb.Append(arg is IDynamicArgument dynArg ? dynArg.GetText(sb) : arg.Text);
//}
//return sb.ToString();
var allArguments = _globalArguments.Arguments.Concat(Arguments).ToArray(); var allArguments = _globalArguments.Arguments.Concat(Arguments).ToArray();
return string.Join(" ", allArguments.Select(arg => arg is IDynamicArgument dynArg ? dynArg.GetText(allArguments) : arg.Text)); return string.Join(" ", allArguments.Select(arg => arg is IDynamicArgument dynArg ? dynArg.GetText(allArguments) : arg.Text));
} }