summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/OutputImage.H23
-rw-r--r--src/OutputImage.cxx87
2 files changed, 0 insertions, 110 deletions
diff --git a/src/OutputImage.H b/src/OutputImage.H
index a7f01f5..8792eb6 100644
--- a/src/OutputImage.H
+++ b/src/OutputImage.H
@@ -50,27 +50,4 @@ class OutputImage {
virtual int done_internal();
};
-class OutputImages {
- private:
- OutputImage **imgs;
- int max_imgs;
-
- public:
- OutputImages();
-
- ~OutputImages();
-
- int add(OutputImage *img);
-
- int remove(OutputImage *img);
-
- int init(int w, int h);
-
- int set_pixel(int x, char r, char g, char b);
-
- int next_line();
-
- int done();
-};
-
#endif
diff --git a/src/OutputImage.cxx b/src/OutputImage.cxx
index 52af058..f2e7296 100644
--- a/src/OutputImage.cxx
+++ b/src/OutputImage.cxx
@@ -90,90 +90,3 @@ OutputImage::done_internal() {
return 0;
}
-#define MAX_OUTPUT_IMAGES 16
-OutputImages::OutputImages() {
- imgs = (OutputImage **) calloc(MAX_OUTPUT_IMAGES, sizeof(OutputImage *));
- max_imgs = MAX_OUTPUT_IMAGES;
-}
-
-OutputImages::~OutputImages() {
- free(imgs);
-}
-
-int
-OutputImages::add(OutputImage *img) {
- for (int i=0; i<max_imgs;i++) {
- if (imgs[i] == NULL) {
- imgs[i] = img;
- return 0;
- }
- }
-
- return 1;
-}
-
-
-int
-OutputImages::remove(OutputImage *img) {
- for (int i=0; i<max_imgs;i++) {
- if (imgs[i] == img) {
- imgs[i] = NULL;
- return 0;
- }
- }
-
- return 1;
-}
-
-int
-OutputImages::init(int w, int h) {
- int ret = 0;
-
- for (int i=0; i<max_imgs;i++) {
- if (imgs[i]) {
- ret += imgs[i]->init(w, h);
- }
- }
-
- return ret;
-}
-
-int
-OutputImages::set_pixel(int x, char r, char g, char b) {
- int ret = 0;
-
- for (int i=0; i<max_imgs;i++) {
- if (imgs[i]) {
- ret += imgs[i]->set_pixel(x, r, g, b);
- }
- }
-
- return ret;
-}
-
-int
-OutputImages::next_line() {
- int ret = 0;
-
- for (int i=0; i<max_imgs;i++) {
- if (imgs[i]) {
- ret += imgs[i]->next_line();
- }
- }
-
- return ret;
-}
-
-int
-OutputImages::done() {
- int ret = 0;
-
- for (int i=0; i<max_imgs;i++) {
- if (imgs[i]) {
- ret += imgs[i]->done();
- }
- }
-
- return ret;
-}
-