From c8ef25857d3ea4ee55e4dc337ce6710164bc586f Mon Sep 17 00:00:00 2001 From: Krisjanis Rijnieks Date: Wed, 21 Sep 2016 10:38:52 +0200 Subject: [PATCH] Remove TextureEditor::register and unregisterAppEvents() --- src/UserInterface/TextureEditor.cpp | 10 ---------- src/UserInterface/TextureEditor.h | 2 -- 2 files changed, 12 deletions(-) diff --git a/src/UserInterface/TextureEditor.cpp b/src/UserInterface/TextureEditor.cpp index d5ab581..9e2b608 100644 --- a/src/UserInterface/TextureEditor.cpp +++ b/src/UserInterface/TextureEditor.cpp @@ -13,14 +13,6 @@ TextureEditor::~TextureEditor(){ disable(); } -void TextureEditor::registerAppEvents(){ - //ofAddListener(ofEvents().update, this, &TextureEditor::update); -} - -void TextureEditor::unregisterAppEvents(){ - //ofRemoveListener(ofEvents().update, this, &TextureEditor::update); -} - void TextureEditor::registerKeyEvents(){ ofAddListener(ofEvents().keyPressed, this, &TextureEditor::keyPressed); ofAddListener(ofEvents().keyReleased, this, &TextureEditor::keyReleased); @@ -32,13 +24,11 @@ void TextureEditor::unregisterKeyEvents(){ } void TextureEditor::enable(){ - registerAppEvents(); registerKeyEvents(); bShiftKeyDown = false; } void TextureEditor::disable(){ - unregisterAppEvents(); unregisterKeyEvents(); } diff --git a/src/UserInterface/TextureEditor.h b/src/UserInterface/TextureEditor.h index 8b5a433..41bbfd3 100644 --- a/src/UserInterface/TextureEditor.h +++ b/src/UserInterface/TextureEditor.h @@ -16,8 +16,6 @@ class TextureEditor { TextureEditor(); ~TextureEditor(); - void registerAppEvents(); - void unregisterAppEvents(); void registerKeyEvents(); void unregisterKeyEvents(); void enable();