summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2006-08-03 20:53:10 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2006-08-03 20:53:10 +0200
commitb289453edc8c3f83824b2e2964779de0bad148a7 (patch)
treec49ec9d4caac00f173f2babe2f5ac7bcfbe0ac00
parent641efabfea98270beef8b7f8a472b8d9e6f0c3aa (diff)
remove OutputImages
-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;
-}
-