Skip to content

Commit

Permalink
Remove unused code in FontCacheSkia (flutter#2805)
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-simmons authored Jul 19, 2016
1 parent 3a4e0a0 commit 6e92a5e
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions sky/engine/platform/fonts/skia/FontCacheSkia.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,24 +49,6 @@
#include "third_party/skia/include/ports/SkFontConfigInterface.h"
#endif

#if !OS(WIN) && !OS(ANDROID) && !OS(IOS) && !OS(MACOSX)
// TODO(bungeman) remove this temporary code ASAP.
// This namespace exists to ease transition of SkTypeface from using SkStream to SkStreamAsset.
namespace tmp {
// Like std::declval but only returns lvalue references, ok since it isn't used on rvalue references.
template<typename T> T& declvall();
// The return type of SkFontConfigInterface::openStream(const SkFontConfigInterface::FontIdentity&).
using StreamType = decltype(tmp::declvall<SkFontConfigInterface>().openStream(tmp::declvall<const SkFontConfigInterface::FontIdentity&>()));
}
static tmp::StreamType streamForFontconfigInterfaceId(int fontconfigInterfaceId)
{
SkAutoTUnref<SkFontConfigInterface> fci(SkFontConfigInterface::RefGlobal());
SkFontConfigInterface::FontIdentity fontIdentity;
fontIdentity.fID = fontconfigInterfaceId;
return fci->openStream(fontIdentity);
}
#endif

namespace blink {

static int toSkiaWeight(FontWeight weight)
Expand Down

0 comments on commit 6e92a5e

Please sign in to comment.