DCPU16_ASM.Assembler.Parser.RemoveLineComments C# (CSharp) Method

RemoveLineComments() private method

private RemoveLineComments ( string line ) : string
line string
return string
        private string RemoveLineComments(string line)
        {
            var clearedLine = line;

            var commentIndex = line.IndexOf(";");

            if (commentIndex > 0)
            {
                clearedLine = line.Substring(0, commentIndex).Trim();
            }

            return clearedLine;
        }