mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Removing the unused component usage
This commit is contained in:
parent
338880f72c
commit
2d6b336ea5
@ -35,7 +35,6 @@ import org.wso2.carbon.analytics.api.AnalyticsDataAPI;
|
|||||||
import org.wso2.carbon.context.CarbonContext;
|
import org.wso2.carbon.context.CarbonContext;
|
||||||
import org.wso2.carbon.context.PrivilegedCarbonContext;
|
import org.wso2.carbon.context.PrivilegedCarbonContext;
|
||||||
import org.wso2.carbon.core.util.Utils;
|
import org.wso2.carbon.core.util.Utils;
|
||||||
import org.wso2.carbon.device.mgt.analytics.dashboard.GadgetDataService;
|
|
||||||
import org.wso2.carbon.device.mgt.analytics.data.publisher.service.EventsPublisherService;
|
import org.wso2.carbon.device.mgt.analytics.data.publisher.service.EventsPublisherService;
|
||||||
import org.wso2.carbon.device.mgt.common.Device;
|
import org.wso2.carbon.device.mgt.common.Device;
|
||||||
import org.wso2.carbon.device.mgt.common.DeviceIdentifier;
|
import org.wso2.carbon.device.mgt.common.DeviceIdentifier;
|
||||||
@ -438,15 +437,6 @@ public class DeviceMgtAPIUtils {
|
|||||||
return searchManagerService;
|
return searchManagerService;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static GadgetDataService getGadgetDataService() {
|
|
||||||
PrivilegedCarbonContext ctx = PrivilegedCarbonContext.getThreadLocalCarbonContext();
|
|
||||||
GadgetDataService gadgetDataService = (GadgetDataService) ctx.getOSGiService(GadgetDataService.class, null);
|
|
||||||
if (gadgetDataService == null) {
|
|
||||||
throw new IllegalStateException("Gadget Data Service has not been initialized.");
|
|
||||||
}
|
|
||||||
return gadgetDataService;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static GeoLocationProviderService getGeoService() {
|
public static GeoLocationProviderService getGeoService() {
|
||||||
PrivilegedCarbonContext ctx = PrivilegedCarbonContext.getThreadLocalCarbonContext();
|
PrivilegedCarbonContext ctx = PrivilegedCarbonContext.getThreadLocalCarbonContext();
|
||||||
GeoLocationProviderService
|
GeoLocationProviderService
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user