Skip to content

Commit

Permalink
Removing retriveall methods unused.
Browse files Browse the repository at this point in the history
  • Loading branch information
gudipatiharitha committed Dec 24, 2018
1 parent a4a1fe7 commit eb27e9b
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ Subscription createSubscription(Subscriber subscriber, long callingNumber, Langu

List<Subscription> getActiveSubscriptionBySubscriber(Subscriber subscriber);

List<SubscriptionPack> getSubscriptionPacks();
//List<SubscriptionPack> getSubscriptionPacks();

/**
* Create the specified subscription in the database. To be used only by test code.
Expand Down Expand Up @@ -207,7 +207,7 @@ Subscription createSubscription(Subscriber subscriber, long callingNumber, Langu
* Retrieves all subscriptions in the database
*
*/
List<Subscription> retrieveAll();
//List<Subscription> retrieveAll();

/**
* Helper method that determines the subscription based on its origin and packType
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ public List<Subscription> execute(Query query, InstanceSecurityRestriction restr
}



@Override
public void completePastDueSubscriptions() {

Expand Down Expand Up @@ -927,10 +928,10 @@ public SubscriptionPack getSubscriptionPack(String name) {
}


@Override
public List<SubscriptionPack> getSubscriptionPacks() {
return subscriptionPackDataService.retrieveAll();
}
// @Override
// public List<SubscriptionPack> getSubscriptionPacks() {
// return subscriptionPackDataService.retrieveAll();
// }


public Subscription create(Subscription subscription) {
Expand Down Expand Up @@ -1010,10 +1011,10 @@ public void toggleActiveSubscriptionCapping(MotechEvent event) {
LOGGER.info("Set allow new mcts subscriptions to {}", value);
}

@Override
public List<Subscription> retrieveAll() {
return subscriptionDataService.retrieveAll();
}
// @Override
// public List<Subscription> retrieveAll() {
// return subscriptionDataService.retrieveAll();
// }

@Override
public Subscription getIVRSubscription(Set<Subscription> subscriptions, SubscriptionPackType packType) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

public interface CircleService {
Circle getByName(String name);
List<Circle> getAll();
//List<Circle> getAll();
Set<Circle> getAllInState(final State state);
boolean circleNameExists(String circleName);
}
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ public Circle getByName(String name) {
*
* @return all the circles in the database
*/
@Override
public List<Circle> getAll() {
return circleDataService.retrieveAll();
}
// @Override
// public List<Circle> getAll() {
// return circleDataService.retrieveAll();
// }

@Override
public Set<Circle> getAllInState(final State state) {
Expand Down

0 comments on commit eb27e9b

Please sign in to comment.