Index: src/core/SkFlate.cpp |
diff --git a/src/core/SkFlate.cpp b/src/core/SkFlate.cpp |
index ff11a11ca89eecdb01ab90aa1f178c5aae49bef0..888af6b77c60972d9d385eaaca9bc4afd9f4dacf 100644 |
--- a/src/core/SkFlate.cpp |
+++ b/src/core/SkFlate.cpp |
@@ -11,18 +11,7 @@ |
#include "SkFlate.h" |
#include "SkStream.h" |
-#ifdef SK_NO_FLATE |
-bool SkFlate::HaveFlate() { return false; } |
-bool SkFlate::Deflate(SkStream*, SkWStream*) { return false; } |
-bool SkFlate::Deflate(const void*, size_t, SkWStream*) { return false; } |
-bool SkFlate::Deflate(const SkData*, SkWStream*) { return false; } |
-bool SkFlate::Inflate(SkStream*, SkWStream*) { return false; } |
-#else |
- |
-// static |
-bool SkFlate::HaveFlate() { |
- return true; |
-} |
+#ifndef SK_NO_FLATE |
namespace { |
@@ -133,4 +122,5 @@ bool SkFlate::Inflate(SkStream* src, SkWStream* dst) { |
return doFlate(false, src, dst); |
} |
-#endif |
+#endif // SK_NO_FLATE |
+ |