def clean(linesList):
    """
    Removes the blank lines from a list of strings.
    * getOldCode auxiliar method - Clean imports list.
    :param linesList: List of strings
    :return: The list without '\n' strings.
    """
    result = []
    if len(linesList) == 1 and linesList[0].strip() == '':
        # If the linesList only contains a single line jump remove it
        return result
    else:
        # If it is longer, remove all single \n appearances
        for l in linesList:
            if l.strip() != '':
                result.append(l)
        return result