Skip to content
This repository has been archived by the owner on May 7, 2020. It is now read-only.

Commit

Permalink
Astro: remove dead code (#6006)
Browse files Browse the repository at this point in the history
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
  • Loading branch information
lolodomo authored and kaikreuzer committed Aug 5, 2018
1 parent 2ea01f8 commit a0524d9
Showing 1 changed file with 2 additions and 6 deletions.
Expand Up @@ -121,12 +121,8 @@ protected void stopBackgroundDiscovery() {

public void createResults(PointType location) {
String propGeolocation;
if (location.getAltitude() != null) {
propGeolocation = String.format("%s,%s,%s", location.getLatitude(), location.getLongitude(),
location.getAltitude());
} else {
propGeolocation = String.format("%s,%s", location.getLatitude(), location.getLongitude());
}
propGeolocation = String.format("%s,%s,%s", location.getLatitude(), location.getLongitude(),
location.getAltitude());
thingDiscovered(DiscoveryResultBuilder.create(SUN_THING).withLabel("Local Sun")
.withProperty("geolocation", propGeolocation).withRepresentationProperty("geolocation").build());
thingDiscovered(DiscoveryResultBuilder.create(MOON_THING).withLabel("Local Moon")
Expand Down

0 comments on commit a0524d9

Please sign in to comment.