remove redundant code.
This commit is contained in:
parent
4d0eaf93c4
commit
b553bb11b8
@ -35,22 +35,12 @@
|
||||
//#define WINDOWS_LEAN_AND_MEAN
|
||||
//#include <windows.h> // TIMER
|
||||
|
||||
|
||||
struct MyOutputHandler : public nvtt::OutputHandler
|
||||
{
|
||||
MyOutputHandler(const char * name) : total(0), progress(0), percentage(0), stream(new nv::StdOutputStream(name)) {}
|
||||
virtual ~MyOutputHandler() { delete stream; }
|
||||
|
||||
bool open(const char * name)
|
||||
{
|
||||
stream = new nv::StdOutputStream(name);
|
||||
percentage = progress = 0;
|
||||
if (stream->isError()) {
|
||||
fprintf(stderr, "Error opening '%s' for writting\n", name);
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
virtual void setTotal(int t)
|
||||
{
|
||||
total = t;
|
||||
|
Loading…
Reference in New Issue
Block a user