Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1105)

Unified Diff: ui/base/resource/resource_bundle.cc

Issue 10988002: Remove some dead code in ResourceBundle (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698