Skip to content

Commit

Permalink
Remove unused JPEG reading functionality from the Tachyon example (#1360
Browse files Browse the repository at this point in the history
)

Signed-off-by: Dmitri Mokhov <[email protected]>
  • Loading branch information
dnmokhov authored Apr 25, 2024
1 parent c1a0e74 commit 0da79a8
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 183 deletions.
3 changes: 1 addition & 2 deletions examples/parallel_for/tachyon/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2020-2023 Intel Corporation
# Copyright (c) 2020-2024 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -39,7 +39,6 @@ add_executable(
src/imageio.cpp
src/imap.cpp
src/intersect.cpp
src/jpeg.cpp
src/light.cpp
src/objbound.cpp
src/parse.cpp
Expand Down
5 changes: 2 additions & 3 deletions examples/parallel_for/tachyon/src/imageio.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2005-2023 Intel Corporation
Copyright (c) 2005-2024 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -59,7 +59,6 @@
#include "imageio.hpp"
#include "ppm.hpp" /* PPM files */
#include "tgafile.hpp" /* Truevision Targa files */
#include "jpeg.hpp" /* JPEG files */

static int fakeimage(char *name, int *xres, int *yres, unsigned char **imgdata) {
int i, imgsize;
Expand Down Expand Up @@ -90,7 +89,7 @@ int readimage(rawimage *img) {
rc = readtga(name, &xres, &yres, &imgdata);
}
else if (strstr(name, ".jpg")) {
rc = readjpeg(name, &xres, &yres, &imgdata);
rc = IMAGEUNSUP;
}
else if (strstr(name, ".gif")) {
rc = IMAGEUNSUP;
Expand Down
126 changes: 0 additions & 126 deletions examples/parallel_for/tachyon/src/jpeg.cpp

This file was deleted.

52 changes: 0 additions & 52 deletions examples/parallel_for/tachyon/src/jpeg.hpp

This file was deleted.

0 comments on commit 0da79a8

Please sign in to comment.