From b3ec985568176b077756b66754470988436d43c1 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Fri, 12 May 2017 13:01:00 -0700 Subject: [core] Trim StyleObserver interface It doesn't need to inherit from SpriteLoaderObserver and GlyphAtlasObserver. --- test/src/mbgl/test/stub_style_observer.hpp | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'test/src') diff --git a/test/src/mbgl/test/stub_style_observer.hpp b/test/src/mbgl/test/stub_style_observer.hpp index a3a48b04c0..b97911cdb0 100644 --- a/test/src/mbgl/test/stub_style_observer.hpp +++ b/test/src/mbgl/test/stub_style_observer.hpp @@ -10,22 +10,6 @@ using namespace mbgl::style; */ class StubStyleObserver : public style::Observer { public: - void onGlyphsLoaded(const FontStack& fontStack, const GlyphRange& glyphRange) override { - if (glyphsLoaded) glyphsLoaded(fontStack, glyphRange); - } - - void onGlyphsError(const FontStack& fontStack, const GlyphRange& glyphRange, std::exception_ptr error) override { - if (glyphsError) glyphsError(fontStack, glyphRange, error); - } - - void onSpriteLoaded(Images&& images) override { - if (spriteLoaded) spriteLoaded(std::move(images)); - } - - void onSpriteError(std::exception_ptr error) override { - if (spriteError) spriteError(error); - } - void onSourceLoaded(Source& source) override { if (sourceLoaded) sourceLoaded(source); } @@ -46,10 +30,6 @@ public: if (resourceError) resourceError(error); }; - std::function glyphsLoaded; - std::function glyphsError; - std::function spriteLoaded; - std::function spriteError; std::function sourceLoaded; std::function sourceChanged; std::function sourceError; -- cgit v1.2.1