Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e43189e8 authored by Vincent Bourgmayer's avatar Vincent Bourgmayer
Browse files

remove unused method & import from ThreadFactory.java

parent 469e5a0d
Loading
Loading
Loading
Loading
+3 −23
Original line number Diff line number Diff line
@@ -16,8 +16,6 @@
 */
package ecorp.easy.installer.threads;
import ecorp.easy.installer.AppConstants;
import ecorp.easy.installer.models.Phone;
import ecorp.easy.installer.models.Process;
import java.security.InvalidParameterException;
import java.util.Map;
import java.util.Set;
@@ -34,17 +32,12 @@ import org.slf4j.LoggerFactory;
 */
public class ThreadFactory {
    private final static Logger logger = LoggerFactory.getLogger(ThreadFactory.class);
    private Process flashMould;
    private final HashMap<String, String> sourcesToDownload;
    private Phone device;
    private final String yamlFolderPath;

    /**
     * Constructor of the ThreadFactory object
     * @param yamlFolderPath 
     */
    public ThreadFactory(String yamlFolderPath){
        this.yamlFolderPath = yamlFolderPath;
    public ThreadFactory(){
        this.sourcesToDownload = new HashMap<>();
    }
   
@@ -74,17 +67,4 @@ public class ThreadFactory {
        return sourcesToDownload;
    }

    /**
     * get  the number of steps inside the current ProcessMould
     * @return 0 if processMould is null
     */
    public int getStepsCount(){
        if(flashMould == null) return 0;
        return flashMould.getSteps().size();
    }
    
    
    public Process getFlashMould() {
        return flashMould;
    }
}
 No newline at end of file