diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-24 22:58:35 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-24 22:58:35 +0100 |
commit | 994d80fd53bc264cef92017dba5cbab1241e5a5b (patch) | |
tree | 7d0d7e2d19148eaf30e3660892670e7597794568 /basebmp | |
parent | 22ebafe8897239696f46df6f093054d16285004a (diff) |
loplugin:unreffun
Change-Id: Ib53eb3da4810202ad60349566cdef74be89418c8
Diffstat (limited to 'basebmp')
-rw-r--r-- | basebmp/source/bitmapdevice.cxx | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/basebmp/source/bitmapdevice.cxx b/basebmp/source/bitmapdevice.cxx index 01bfe25fb146..a50f0dfd5efc 100644 --- a/basebmp/source/bitmapdevice.cxx +++ b/basebmp/source/bitmapdevice.cxx @@ -1901,29 +1901,6 @@ BitmapDeviceSharedPtr createRenderer( pDamage); } - -// TODO(Q3): consolidate with canvas/canvastools.hxx! Best move this -// to o3tl or sal/bithacks.hxx ... - -/** Compute the next highest power of 2 of a 32-bit value - - Code devised by Sean Anderson, in good ole HAKMEM - tradition. - - @return 1 << (lg(x - 1) + 1) -*/ -inline sal_uInt32 nextPow2( sal_uInt32 x ) -{ - --x; - x |= x >> 1; - x |= x >> 2; - x |= x >> 4; - x |= x >> 8; - x |= x >> 16; - - return ++x; -} - namespace { BitmapDeviceSharedPtr createBitmapDeviceImplInner( const basegfx::B2IVector& rSize, |