1. trikitrok
  2. RefactoringMovingExercise

Commits

trikitrok  committed c37c0c8 Draft

Renamed validateDNI and removed dead code

  • Participants
  • Parent commits 8497bb5
  • Branches default

Comments (0)

Files changed (1)

File src/ExtractClass.js

View file
  • Ignore whitespace
 
   this.DNI='';
 
-	this.validateDNI=function(aDNI) {
+	this.validate=function(aDNI) {
 	  var lastCharacter = aDNI[aDNI.length -1];
 	
 		if (lastCharacter !== 'a') {
 		}
 	};
 	
-	this.validateDNI(aDNI);
+	this.validate(aDNI);
 	
 	this.DNI = aDNI;
 
 	this.looseWeight=function(someKilos){};
 
 	this.changeWork=function(newWork){};
-	
-	this.validateDNI=function(aDNI){
-		return aDNI[aDNI.length -1]==='a';
-	};
-	
+		
 	this.newMeasure=function(aHeight){};
 
 }