diff --git a/MAVProxy/tools/mavpicviewer/mavpicviewer_mosaic.py b/MAVProxy/tools/mavpicviewer/mavpicviewer_mosaic.py index 96a006f2a4..56821e2504 100644 --- a/MAVProxy/tools/mavpicviewer/mavpicviewer_mosaic.py +++ b/MAVProxy/tools/mavpicviewer/mavpicviewer_mosaic.py @@ -320,10 +320,6 @@ def on_key(self, event): wx.CallAfter(self.set_filenunmber, self.filenumber-5) elif keycode == wx.WXK_DOWN: wx.CallAfter(self.set_filenunmber, self.filenumber+5) - elif keycode == ord('p') or keycode == ord('P'): - wx.CallAfter(self.add_poi, self.filenumber) - elif keycode == ord('c') or keycode == ord('C'): - wx.CallAfter(self.clear_poi, self.filenumber) # process window events def on_image_click(self, event): @@ -358,32 +354,6 @@ def set_filenunmber(self, filenumber, notify_image_viewer=True): # notify image viewer self.send_comm_object(mpv.SetFilenumber(self.filenumber)) - # add POI to image - def add_poi(self, filenumber): - """add POI to image""" - # return immediately if filenumber is invalid - if filenumber < 0 or filenumber >= len(self.filelist): - return - - # update POI dictionary -- FIXME! - self.poi_dict[filenumber] = True - - # update highlighting - self.update_highlighting(filenumber) - - # clear POI from image - def clear_poi(self, filenumber): - """clear POI from image""" - # return immediately if filenumber is invalid - if filenumber < 0 or filenumber >= len(self.filelist): - return - - # update POI dictionary -- FIXME! - self.poi_dict[filenumber] = False - - # update highlighting and scroll into view - self.update_highlighting(filenumber) - # update highlighting for an image def update_highlighting(self, filenumber): """update highlighting for an image""" diff --git a/MAVProxy/tools/mavpicviewer/mavpicviewer_shared.py b/MAVProxy/tools/mavpicviewer/mavpicviewer_shared.py index 1654cb5c37..005a8e9522 100644 --- a/MAVProxy/tools/mavpicviewer/mavpicviewer_shared.py +++ b/MAVProxy/tools/mavpicviewer/mavpicviewer_shared.py @@ -96,7 +96,6 @@ def __init__(self, filenumber, loc): # set POI for the given filenumber -# if poi is None then the entire image should be used class SetPOI: def __init__(self, filenumber, poi): self.filenumber = filenumber