Browse Source

Remove SourcesEditor::register/unregisterAppEvents()

master
Krisjanis Rijnieks 9 years ago
parent
commit
5ded9fa70d
  1. 9
      src/UserInterface/SourcesEditor.cpp
  2. 3
      src/UserInterface/SourcesEditor.h

9
src/UserInterface/SourcesEditor.cpp

@ -19,7 +19,6 @@ SourcesEditor::SourcesEditor(){
void SourcesEditor::init(){
mediaServer = 0; // Pointers to 0 pointer so we can check later
isMediaServerExternal = false;
registerAppEvents();
}
SourcesEditor::SourcesEditor(MediaServer * externalMediaServer){
@ -39,14 +38,6 @@ SourcesEditor::~SourcesEditor(){
clearMediaServer();
}
void SourcesEditor::registerAppEvents(){
//ofAddListener(ofEvents().setup, this, &SourcesEditor::setup);
}
void SourcesEditor::unregisterAppEvents(){
//ofRemoveListener(ofEvents().setup, this, &SourcesEditor::setup);
}
void SourcesEditor::setup(){
// Get media count
int numImages = mediaServer->getNumImages();

3
src/UserInterface/SourcesEditor.h

@ -21,9 +21,6 @@ class SourcesEditor {
SourcesEditor(MediaServer * externalMediaServer);
~SourcesEditor();
void registerAppEvents();
void unregisterAppEvents();
void setup();
void draw();
void loadImage(string name, string path);

Loading…
Cancel
Save