Skip to content

Commit ac08b37

Browse files
committed
fix: deleted methods that I was not using in my test
1 parent 3c47acf commit ac08b37

File tree

1 file changed

+0
-14
lines changed
  • lesson_16/objects/objects_app/src/main/java/com/codedifferently/lesson16/SmartPhone

1 file changed

+0
-14
lines changed

lesson_16/objects/objects_app/src/main/java/com/codedifferently/lesson16/SmartPhone/SmartPhone.java

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -29,23 +29,13 @@ public int getBatteryPercentage() {
2929
return batteryPercentage;
3030
}
3131

32-
public void setSmartPhoneBatteryIncrease(int chargeBatteryAmount) {
33-
// loop
34-
}
35-
36-
public void chargeSmartPhone() {}
37-
38-
public void setSmartPhonePower() {}
39-
4032
public void setSmartPhoneBatteryPercentage(int currentBatteryPercentage) {
4133
if (currentBatteryPercentage < 0 || currentBatteryPercentage > 100) {
4234
throw new IllegalArgumentException("Battery percentage must be in between 0 and 100.");
4335
}
4436
this.batteryPercentage = currentBatteryPercentage;
4537
}
4638

47-
public void addSmartPhoneApps(String App) {}
48-
4939
public String getSmartPhoneApps() {
5040
var smartPhoneApps = "";
5141
for (String s : apps) {
@@ -58,10 +48,6 @@ public void removeSmartPhoneApps(String App) {
5848
apps.remove(App);
5949
}
6050

61-
public void currentSmartPhoneVolume() {}
62-
63-
public void addSmartPhoneVolume() {}
64-
6551
public int getSmartPhoneVolume() {
6652
return 5;
6753
}

0 commit comments

Comments
 (0)