| Index: ui/base/resource/resource_bundle.cc
|
| diff --git a/ui/base/resource/resource_bundle.cc b/ui/base/resource/resource_bundle.cc
|
| index 0f2ce22a8585e7532a3d57afab77cefc47655850..f8d214fe81f4509781175a1cebe6a0a4498ba46f 100644
|
| --- a/ui/base/resource/resource_bundle.cc
|
| +++ b/ui/base/resource/resource_bundle.cc
|
| @@ -42,20 +42,6 @@ const int kLargeFontSizeDelta = 8;
|
|
|
| ResourceBundle* g_shared_instance_ = NULL;
|
|
|
| -// Returns the actual scale factor of |bitmap| given the image representations
|
| -// which have already been added to |image|.
|
| -// TODO(pkotwicz): Remove this once we are no longer loading 1x resources
|
| -// as part of non 1x data packs.
|
| -ui::ScaleFactor GetActualScaleFactor(const gfx::ImageSkia& image,
|
| - const SkBitmap& bitmap,
|
| - ui::ScaleFactor data_pack_scale_factor) {
|
| - if (image.isNull())
|
| - return data_pack_scale_factor;
|
| -
|
| - return ui::GetScaleFactorFromScale(
|
| - static_cast<float>(bitmap.width()) / image.width());
|
| -}
|
| -
|
| bool ShouldHighlightMissingScaledResources() {
|
| return CommandLine::ForCurrentProcess()->HasSwitch(
|
| switches::kHighlightMissingScaledResources);
|
|
|