import re


def _removeLineComments(s, execute=True):
    """
    removes comments (`//` to end of line)
    """
    if not execute: return s
    return re.subn("^[\s]*//.*$", "", s, flags=re.MULTILINE)[0]