Remove dead code from DeviceFlowRegistryImpl 78/82578/4
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 20 Jun 2019 10:03:06 +0000 (12:03 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 27 Jun 2019 12:58:23 +0000 (14:58 +0200)
commit40acf4cc0816424078c700f5d58d9391fff70a56
tree0e45924b979bd5dfca970f9acd47928aa12ec1ca
parent1418a3290766faa650d02f151ae9600f1e86882c
Remove dead code from DeviceFlowRegistryImpl

newReadOnlyTransaction() and read() do not return nulls, hence
the code checking for them is dead. Remove it and refactor the
code to close the transaction immediately after issuing the read.

Change-Id: I9f02a19358c2bb0019b66a5778e489d52159499f
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/registry/flow/DeviceFlowRegistryImpl.java