Skip to content

Commit

Permalink
Merge pull request #23 from rohitcube/branch-AddAPIClass
Browse files Browse the repository at this point in the history
Remove API Class
  • Loading branch information
rohitcube authored Oct 19, 2023
2 parents 94d07e6 + 048fcd3 commit fde33ba
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 118 deletions.
3 changes: 3 additions & 0 deletions META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Manifest-Version: 1.0
Main-Class: seedu.duke.Duke

15 changes: 0 additions & 15 deletions src/main/java/seedu/duke/controllers/ModulePlannerController.java
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
package seedu.duke.controllers;

import org.json.simple.JSONObject;
import seedu.duke.CompletePreqs;
import seedu.duke.ModuleList;
import seedu.duke.models.Major;
import seedu.duke.models.Student;
import seedu.duke.views.CommandLineView;
import seedu.duke.utils.Parser;
import seedu.duke.models.Api;
import seedu.duke.views.ModuleInfo;

import java.net.URISyntaxException;

import java.io.InvalidObjectException;
import java.util.ArrayList;
Expand Down Expand Up @@ -91,16 +86,6 @@ public void start() {
computePace(words, creditsLeft);
break;
}
case "info": {
String moduleCode = words[1];
try {
JSONObject moduleInfo = Api.getModuleInfo(moduleCode);
ModuleInfo.printModule(moduleInfo);
} catch (URISyntaxException e) {
throw new RuntimeException(e);
}
break;
}
case "major": {
updateMajor(words[1]);
break;
Expand Down
48 changes: 0 additions & 48 deletions src/main/java/seedu/duke/models/Api.java

This file was deleted.

39 changes: 0 additions & 39 deletions src/main/java/seedu/duke/models/JsonFormatter.java

This file was deleted.

16 changes: 0 additions & 16 deletions src/test/java/seedu/duke/ApiTest.java

This file was deleted.

0 comments on commit fde33ba

Please sign in to comment.