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();