def removeComments(f):
    """
    removes // style comments from a file, num of lines stays the same
  """
    sansComments = ''
    inQuotes = False
    for l in f:
        i = 0
        for c in l:
            if c == '"':
                inQuotes = not inQuotes
            elif c == '/' and l[i + 1] == '/' and not inQuotes:
                sansComments += '\n'
                break
            i += 1
            sansComments += c
    return sansComments
