def METHOD_NAME(directory, fileName):
    absFileName = "/".join([sourceDir, directory, fileName])
    lines = open(absFileName).read().splitlines()
    removedLines = []
    ifDefCounter = 0
    for i, line in enumerate(lines):
        ifDefCounter = checkIfDef(line, ifDefCounter)
        if ifDefCounter > 0:
            continue
        if line.startswith("#include"):
            if shouldSkipInclude(line):
                continue
            print("Try remove:", line)
            lines[i] = ""
            writeFile(lines, absFileName)
            returnCode = tryCompile(fileName)
            if returnCode == 0:
                removedLines.append(i)
            else:
                print("Restoring:", line)
                lines[i] = line
    # Write final changes to file
    lines = removeLines(lines, removedLines)
    writeFile(lines, absFileName)