From d5a1249b20e6f5f796f2afa296db963c96423768 Mon Sep 17 00:00:00 2001 From: Krisjanis Rijnieks <krisjanis.rijnieks@gmail.com> Date: Sat, 24 Sep 2016 14:43:19 +0300 Subject: [PATCH] Remove ProjectionEditor::register/unregisterMouseEvents() --- src/UserInterface/ProjectionEditor.cpp | 11 ----------- src/UserInterface/ProjectionEditor.h | 2 -- 2 files changed, 13 deletions(-) diff --git a/src/UserInterface/ProjectionEditor.cpp b/src/UserInterface/ProjectionEditor.cpp index 1d6103d..4dd8290 100644 --- a/src/UserInterface/ProjectionEditor.cpp +++ b/src/UserInterface/ProjectionEditor.cpp @@ -27,23 +27,12 @@ void ProjectionEditor::unregisterAppEvents(){ &ProjectionEditor::gotMessage); } -void ProjectionEditor::registerMouseEvents(){ - ofAddListener(ofEvents().mouseDragged, this, &ProjectionEditor::mouseDragged); -} - -void ProjectionEditor::unregisterMouseEvents(){ - ofRemoveListener(ofEvents().mouseDragged, this, - &ProjectionEditor::mouseDragged); -} - void ProjectionEditor::enable(){ registerAppEvents(); - registerMouseEvents(); } void ProjectionEditor::disable(){ unregisterAppEvents(); - unregisterMouseEvents(); } void ProjectionEditor::update(){ diff --git a/src/UserInterface/ProjectionEditor.h b/src/UserInterface/ProjectionEditor.h index 98ccf91..5eb5776 100644 --- a/src/UserInterface/ProjectionEditor.h +++ b/src/UserInterface/ProjectionEditor.h @@ -14,8 +14,6 @@ class ProjectionEditor { void registerAppEvents(); void unregisterAppEvents(); - void registerMouseEvents(); - void unregisterMouseEvents(); void enable(); void disable();