Sho SHIMIZU
Committed by Gerrit Code Review

Remove method not being used for long

Change-Id: Ie2254472c9da3ca320347be53fad383ad4db1c8d
...@@ -17,7 +17,6 @@ package org.onosproject.net.intent.impl; ...@@ -17,7 +17,6 @@ package org.onosproject.net.intent.impl;
17 17
18 import com.google.common.collect.HashMultimap; 18 import com.google.common.collect.HashMultimap;
19 import com.google.common.collect.ImmutableSet; 19 import com.google.common.collect.ImmutableSet;
20 -import com.google.common.collect.Lists;
21 import com.google.common.collect.SetMultimap; 20 import com.google.common.collect.SetMultimap;
22 import org.apache.felix.scr.annotations.Activate; 21 import org.apache.felix.scr.annotations.Activate;
23 import org.apache.felix.scr.annotations.Component; 22 import org.apache.felix.scr.annotations.Component;
...@@ -26,7 +25,6 @@ import org.apache.felix.scr.annotations.Reference; ...@@ -26,7 +25,6 @@ import org.apache.felix.scr.annotations.Reference;
26 import org.apache.felix.scr.annotations.ReferenceCardinality; 25 import org.apache.felix.scr.annotations.ReferenceCardinality;
27 import org.apache.felix.scr.annotations.ReferencePolicy; 26 import org.apache.felix.scr.annotations.ReferencePolicy;
28 import org.apache.felix.scr.annotations.Service; 27 import org.apache.felix.scr.annotations.Service;
29 -import org.onosproject.core.ApplicationId;
30 import org.onosproject.event.Event; 28 import org.onosproject.event.Event;
31 import org.onosproject.net.DeviceId; 29 import org.onosproject.net.DeviceId;
32 import org.onosproject.net.ElementId; 30 import org.onosproject.net.ElementId;
...@@ -316,27 +314,6 @@ public class ObjectiveTracker implements ObjectiveTrackerService { ...@@ -316,27 +314,6 @@ public class ObjectiveTracker implements ObjectiveTrackerService {
316 314
317 //TODO consider adding flow rule event tracking 315 //TODO consider adding flow rule event tracking
318 316
319 - private void updateTrackedResources(ApplicationId appId, boolean track) {
320 - if (intentService == null) {
321 - log.warn("Intent service is not bound yet");
322 - return;
323 - }
324 - intentService.getIntents().forEach(intent -> {
325 - if (intent.appId().equals(appId)) {
326 - Key key = intent.key();
327 - Collection<NetworkResource> resources = Lists.newArrayList();
328 - intentService.getInstallableIntents(key).stream()
329 - .map(installable -> installable.resources())
330 - .forEach(resources::addAll);
331 - if (track) {
332 - addTrackedResources(key, resources);
333 - } else {
334 - removeTrackedResources(key, resources);
335 - }
336 - }
337 - });
338 - }
339 -
340 /* 317 /*
341 * Re-dispatcher of device and host events. 318 * Re-dispatcher of device and host events.
342 */ 319 */
......