remove obsolete closeStream() method -- the caller just unref's the stream when they're done
git-svn-id: http://skia.googlecode.com/svn/trunk@554 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
f244f1b19f
commit
51709c748e
@ -266,7 +266,6 @@ public:
|
||||
FamilyRec* getFamily() const { return fFamilyRec; }
|
||||
// openStream returns a SkStream that has been ref-ed
|
||||
virtual SkStream* openStream() = 0;
|
||||
virtual void closeStream(SkStream*) = 0;
|
||||
virtual const char* getUniqueString() const = 0;
|
||||
|
||||
private:
|
||||
@ -288,7 +287,6 @@ public:
|
||||
|
||||
// overrides
|
||||
virtual SkStream* openStream() { return NULL; }
|
||||
virtual void closeStream(SkStream*) {}
|
||||
virtual const char* getUniqueString() const { return NULL; }
|
||||
|
||||
private:
|
||||
@ -314,7 +312,6 @@ public:
|
||||
fStream->ref();
|
||||
return fStream;
|
||||
}
|
||||
virtual void closeStream(SkStream*) {}
|
||||
virtual const char* getUniqueString() const { return NULL; }
|
||||
|
||||
private:
|
||||
@ -348,10 +345,7 @@ public:
|
||||
}
|
||||
return stream;
|
||||
}
|
||||
virtual void closeStream(SkStream* stream)
|
||||
{
|
||||
SkDELETE(stream);
|
||||
}
|
||||
|
||||
virtual const char* getUniqueString() const {
|
||||
const char* str = strrchr(fPath.c_str(), '/');
|
||||
if (str) {
|
||||
|
Loading…
Reference in New Issue
Block a user